function ExplorerFix() 
	{ 
		for (a in document.links) document.links[a].onfocus = document.links[a].blur; 
	} 
		if (document.all) document.onmousedown = ExplorerFix;
		
function Opengroot(sPicURL) 
{ 
	window.open( "../opengroot.html?"+sPicURL, "",  "resizable=1,height=400,width=400"); 
}

function Opengroter(sPicURL) 
{ 
	window.open( "./opengroot.html?"+sPicURL, "",  "resizable=1,height=400,width=400"); 
}

// check of het emailadres wel juist is opgebouwd
function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Vul alstjeblieft een GELDIG emailadres in.")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Vul alstublieft een GELDIG emailadres in.")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Vul alstublieft een GELDIG emailadres in.")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Vul alstublieft een GELDIG emailadres in.")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Vul alstublieft een GELDIG emailadres in.")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Vul alstublieft een GELDIG emailadres in.")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Vul alstublieft een GELDIG emailadres in.")
		    return false
		 }

 		 return true					
	}

// Check informatie formulier
 function checkinfoformulier(fm)
{
  
   if (fm.bedrijf.value == "") 
  {
    alert("Vul alstublieft uw bedrijf in.");
    fm.bedrijf.focus();
    return false;
  }
  
   if (fm.volnaam.value == "") 
  {
    alert("Vul alstublieft uw naam in.");
    fm.volnaam.focus();
    return false;
  }
  
   if (fm.telefoon.value == "") 
  {
    alert("Vul alstublieft uw telefoonnummer in.");
    fm.telefoon.focus();
    return false;
  }
  
   if (fm.emailadres.value == "" || fm.emailadres.value == "Uw naam") 
  {
    alert("Vul alstublieft uw emailadres in.");
    fm.emailadres.focus();
    return false;
  }
  
  if (echeck(fm.emailadres.value)==false)
	{
		fm.emailadres.focus();
		return false
	}

return true;

}
