function swapImgRestore() { //v3.0
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function findObj(n) { 
var x; 
var ns6 = document.getElementById ? 1 : 0 
var ie = document.all ? 1 : 0 
var ns = document.layers ? 1 : 0 
if(ns6){x = document.getElementById(n) } 
if(ie){x = document.all[n] } 
if(ns){x = document[n] } 
return x; 
} 

function showHideLayers() { //v3.0
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function swapImage() { //v3.0
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

timedlayer = setTimeout("", 1)
clearTimeout(timedlayer)
function timedrestore() { //v3.0
	timedlayer = setTimeout("showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5','','hide')", 800)
}

function stoptime() { //v3.0
	clearTimeout(timedlayer)
}








function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
	}
function resetText(thefield){
	if (thefield.value=="")
	thefield.value = thefield.defaultValue
	}
function Submitform(){
	if  (document.sub.addr.value=='') alert("Ongeldig e-mail adres");
	else 
	{
if ( ((document.sub.addr.value.indexOf('@',1))==-1)||(document.sub.addr.value.indexOf('.',1))==-1 )
	alert("Ongeldig e-mail adres");
	else 	document.sub.submit();
 	}
}
function PopUp(URL) {
window.open(URL, "NIEUW", "scrollbars,resizable,width=500,height=460");
}







function selectAll(formObj, isInverse) 
{
   for (var i=0;i < formObj.length;i++) 
   {
      fldObj = formObj.elements[i];
      if (fldObj.type == 'checkbox' && fldObj.name != 'domsug' && fldObj.name != 'aanvinken')
      { 
         if(isInverse.checked)
            fldObj.checked = true;
         else fldObj.checked = false; 
       }
   }
}











function rowcolor(row,trow,color){
var theCells = null;
theCells = row.getElementsByTagName('td');
var rowCellsCnt  = theCells.length;
for (c = 0; c < rowCellsCnt; c++) {
theCells[c].style.backgroundColor = color;
}
return true;
}



