function callwin (url,w,h)
	{
		width=w; height=h;
		LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-height)/2 : 0;
		win = window.open(url, "", "height="+height+", width="+width+", left="+LeftPosition+",top="+TopPosition+", toolbar=0, location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1");
		win.focus();
	}

function callprice (url,w,h)
	{
		width=w; height=h;
		LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-height)/2 : 0;
		win = window.open(url, "", "height="+height+", width="+width+", left="+LeftPosition+",top="+TopPosition+", toolbar=0, location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0");
		win.focus();
	}
function verifyform()
	{
		var result = true
			
		if (form2.realname.value == "")
		{
			alert('Please enter your Name.');
			form2.realname.focus();
			result = false;
			return;
		}
		
		if (form2.username.value == "")
		{
			alert('Please enter Email Address.');
			form2.username.focus();
			result = false;
			return;
		}

		if (form2.realname.value == "")
		{
			alert('Please enter your Name.');
			form2.realname.focus();
			result = false;
			return;
		}
		
		if (form2.comments.value == "")
		{
			alert('Please enter the information you require.');
			form2.comments.focus();
			result = false;
			return;
		}
				
		if(checkEmailAddress(form2.username)!=true)
			{
				alert("Email address is not recognised, please re-enter.");
				form2.username.focus();
				result = false;
				return;
			}
		
		if (result==true)
		{
			form2.submit();
		}
	}
	
	function checkEmailAddress(field) 
		{
			var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2})|(\..{3,3}))$)\b/gi);
			if (goodEmail)
			{
			   return true;
			} 
			else 
			{
				return false;
			}	
		}

