<script type="text/javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i>a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// parent pagina refreshen 
function RefreshParent(){
	window.opener.document.location.reload()
}

function RePostParent(){
	window.opener.document.forms[0].submit();
}

// Redirecten van de parent 
function RedirectParent(StrUrl){
  window.opener.document.location.reload(StrUrl);
}

// pagina afdrukken 
function printpage()
{
window.print()
}

// Decimale punt omzetten naar komma
function CheckDecimalPoint(){
	if (window.event.keyCode == 46) window.event.keyCode = 44; 
}
 
//enkel cijfers mogen in een textbox komen, ook alle ascii tekens <32 (oa carriage return en zo) mogen erin komen
function OnlyNumberInTextBox(){
	if (((window.event.keyCode >=32)&&(window.event.keyCode<=42))||(window.event.keyCode == 47)||(window.event.keyCode >= 58))			
			window.event.keyCode = 0; 
	CheckDecimalPoint();
}

function OnlyIntegerInTextBox(){
//	alert(window.event.keyCode);
	if (((window.event.keyCode >=32)&&(window.event.keyCode<=42))||(window.event.keyCode >= 58))			{
			window.event.keyCode = 0; 
	}
}

// Close window
function CloseWindow(){
self.close()
}

// Label open / sluiten
function expandIt(idval){
 var sElementID = document.getElementById(idval);
        if (sElementID.style.display=="") 
            sElementID.style.display="none";
        else 
            sElementID.style.display="";
				
}	


// Show Hide Hints
function DisplayHintPopUp(idval){
	var sElementID = document.getElementById(idval);
	/* get the mouse left position */
	/* display the pop-up */
	sElementID.style.display="block";
	/* set the pop-up's left */
	sElementID.style.left = 8;
	/* set the pop-up's top */
	sElementID.style.top = 45;
}

function DisplayHintPopUp3(idval){
	var sElementID = document.getElementById(idval);
	/* get the mouse left position */
	/* display the pop-up */
	sElementID.style.display="block";
	/* set the pop-up's left */
	x = event.clientX + document.body.scrollLeft;
	sElementID.style.left = x;
	/* set the pop-up's top */
	y = event.clientY + document.body.scrollTop + 20;
	sElementID.style.top = y;
}

function DisplayHintPopUpAfpunten(idval){
	var sElementID = document.getElementById(idval);
	/* get the mouse left position */
	/* display the pop-up */
	sElementID.style.display="block";
	/* set the pop-up's left */
	/* set the pop-up's top */
}


// Show Hide Hints
function OLDDisplayHintPopUp(idval){
	var sElementID = document.getElementById(idval);
	/* get the mouse left position */
	x = event.clientX + document.body.scrollLeft;
	/* get the mouse top position  */
	y = event.clientY + document.body.scrollTop + 20 - 250;
	/* display the pop-up */
	sElementID.style.display="block";
	/* set the pop-up's left */
	sElementID.style.left = x;
	/* set the pop-up's top */
	sElementID.style.top = y;
}


/* this function hides the pop-up when
 user moves the mouse out of the link */
function HideHintPopUp(idval){
	 var sElementID = document.getElementById(idval);
	/* hide the pop-up */
	sElementID.style.display="none";
}

function clearForm(formIdent) 
{ 
  var form, elements, i, elm; 
  form = document.getElementById 
    ? document.getElementById(formIdent) 
    : document.forms[formIdent]; 

	if (document.getElementsByTagName)
	{

		elements = form.getElementsByTagName('input');
		for( i=0, elm; elm=elements.item(i++); )
		{
			if (elm.getAttribute('type') == "text")
			{
				elm.value = '';
			} else if (elm.getAttribute('type') == "checkbox")
			{
				elm.checked= false;
			}
		}
		elements = form.getElementsByTagName('select');
		for( i=0, elm; elm=elements.item(i++); )
		{
				elm.value = 0;
		}
	}

	// Actually looking through more elements here
	// but the result is the same.
	else
	{
		elements = form.elements;
		for( i=0, elm; elm=elements[i++]; )
		{
			if (elm.type == "text")
			{
				elm.value ='';
			}
		}
	}
	document.forms[formIdent].submit();
}

function SetFullScreen(){
	window.moveTo(0,0);
	window.resizeTo(screen.width,screen.height);
}


//-->
</script>

