function openAdvert(pageName,windowName, windowHeight, windowWidth) {
	newWindow = open(pageName,windowName,"dependent=yes,location=no,resizable=yes,menubar=no,scrollbars=yes,width=" + windowWidth + ",height=" + windowHeight + ",screenX=" +((screen.width / 2) - windowWidth) + ",screenY=20,left=15" + ((screen.width /2) - windowWidth) + ",top=45" );
}


function PopupPic(sPicURL) { 
     window.open( "bergerpop.php?"+sPicURL, "",  
     "resizable=0,HEIGHT=200,WIDTH=200"); 
   } 
   
   function PopupVideo(sPicURL) { 
     window.open( "videopop.php?"+sPicURL, "",  
     "resizable=0,HEIGHT=350,WIDTH=300"); 
   } 
   
   
function checkform ( form )
{   
if (form.comment_name.value == "") {
    alert( "Please enter a valid name for security purposes.");
    form.comment_name.focus();
    return false;
  } 
  if (form.comment_email.value == "") {
    alert( "Please enter a valid email address for security purposes.");
    form.comment_email.focus();
    return false;
  } 
  if (form.comment_tel.value == "") {
    alert( "Please enter a valid telephone number for security purposes.");
    form.comment_tel.focus();
    return false;
  } 
  if (form.comment_address.value == "") {
    alert( "Please enter a valid postal address for security purposes.");
    form.comment_address.focus();
    return false;
  } 
 return true ;
}
