function OpenPics(id, iwidth, iheight, salt){
//	window.open ('/image.asp?id='+ id +'&alt='+ salt, 'pics', 'height='+iheight+', width='+ iwidth +', left=125,top=100')
	newWindow = window.open("","newWindow","width="+iwidth+",height="+iheight+",left=125,top=100");
	newWindow.document.open();
	newWindow.document.write('<html><title>'+salt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	newWindow.document.write('<img  src="/image.aspx?id='+id+'" alt="'+salt+'">');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}


function ValZoek(zoeken, errormelding)
{
  var err = "";
   if (zoeken.zoekwoorden.value == "") { err += "- zoekwoorden.\n"; }
 
  if (err != "") { 
    window.alert(errormelding); 
    return false;
  }
  return true;
}


function ValLogin(inloggen, errormelding)
{
  var err = "";
   if (inloggen.inloggen_email.value == "") { err += "- gebruikersnaam.\n"; }
 if (inloggen.inloggen_wachtwoord.value == "") { err += "- wachtwoord.\n"; }
 
 
  if (err != "") { 
    window.alert(errormelding); 
    return false;
  }
  return true;
}

function Venster(URL) {
venster = window.open(URL, 'popupvenster', 'width=320, height=300,left=300, resizable=no, menubar=no, scrollbars=no, status=no, toolbar=no');
}

function ShowHide(elm,styleElmC) {
		styleElm = document.getElementById(elm).style;
			if (styleElm.display == 'none') {
				styleElm.display='block';
				styleElmC.style.backgroundColor='#E5EAEF';
			}
			else {
				styleElm.display='none';
				styleElmC.style.backgroundColor='white';
			}
		}
		
function checkstate(elm, elmC){
	styleElm = document.getElementById(elm).style;
	if (styleElm.display == 'none') {
				elmC.style.backgroundColor='white';
				
			}
			else {
				elmC.style.backgroundColor='#E5EAEF';
			}
}
	
