function ShowHide(divId) {
	var id = document.getElementById(divId); 
	if (id.style.display == "none") {
		eval("id.style.display = 'block'"); 
	}
	else {
		eval("id.style.display = 'none'"); 
	}
}

function ChkFormular()
{

 if(document.commentform.name.value == "") {
   alert("No name provided. Please fill it in.");
   document.commentform.name.focus();
   return false;
  }
 if(document.commentform.email.value == "") {
   alert("Please enter your email address! The address will NOT be shown on the website or used for other purposes than me maybe wanting to get in touch with you!");
   document.commentform.email.focus();
   return false;
  }
 if(document.commentform.email.value.indexOf('@') == -1) {
   alert("Invalid email address! The @ sign is missing!");
   document.commentform.email.focus();
   return false;
  }
 if(document.commentform.email.value.indexOf('.') == -1) {
   alert("Invalid email address! There is a dot missing, pointing to an incorrect domain name!");
   document.commentform.email.focus();
   return false;
  }
  if(document.commentform.email.value.indexOf(' ') != -1) {
   alert("Invalid email address! There should be no spaces in the address.");
   document.commentform.email.focus();
   return false;
  }

 if(document.commentform.comments.value == "") {
   alert("No comment provided. You should really write _something_! :-)");
   document.commentform.comments.focus();
   return false;
  }
}

function ShowPhoto (winName, width, height)
{
var scrolling= 1;
var resizable= 1;

if (width < 550 && height < 450)
{
		scrolling= 0;
		resizable= 0;
}
var w= open (winName, "001", "top=45,left=45,width=724,height=860,resizable=" + resizable + ",scrollbars=yes" + scrolling);
return;
}//fotovenster001

function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

