	function openWin(url, width, height)
	{
		var left = (window.screen.width / 2) - (width / 2);
		var top = (window.screen.height / 2) - (height/2);
		var gameWindow = window.open(url, "", "height = " + height + ", width = " + width +", left = " + left + ", top = " + top + ", screenX = " + left + ", screenY = " + top + ", toolbar = no, menubar = no, location = no, scrollbars = no, resizable = no");
		gameWindow.focus();
	}

function switchImages(imageSrc,imageName) {
		document[imageName].src=imageSrc;  
}

function sendForm( fm ){
	   if ( fm.cname.value == '' ){
		   alert('Contact Name not specified !');
			 fm.cname.focus();
			 return false;
		 }
     if ( fm.email.value == '' ){
       alert('E-mail address not specified !');
			 fm.email.focus();
	     return false;
     } else {
		   temp = fm.email.value
		   sob = temp.indexOf('@');
			 if ( sob != -1 ){
			    pix = temp.indexOf('.', sob );
			 }
  	   if ( sob < 1 || pix < ( sob + 2 ) || pix == temp.length - 1 ){
	       alert('The e-mail address you have specified is incorrect !');
				 fm.email.focus();
	       return false;
	     }
       if ( fm.message.value == '' ){
         alert('Message not specified !');
				 fm.message.focus();
	       return false;
       }
		 }
     return true;
   }