// JavaScript Document
function goTo(selected){
	window.location.href="#"+selected;
}
function getcurryear(){
   var year = new Date().getYear(); 
   if(parseInt(year) < 1900){ 
       year = parseInt(year) + 1900; 
   }
   return year;
}

function gopopUp(url,title)
{ 
	   var aw = window.screen.availWidth;
		var ah = window.screen.availHeight;
		var leftmargin = (aw/2) - (315);
		var topmargin = (ah/2) - (335);
		var attributes = "width=1000,height=665,status=yes,resizable=yes,scrollbars=yes,left=" + leftmargin + ",top=" + topmargin;
		newwindow=window.open(url,"newwindow",attributes);
        
		if (window.focus) {
			newwindow.focus()
		}	
}
function checkSubmit(check){

	if (check.name.value.length == 0) 
	{	
		alert("Please enter your name!");
		check.name.focus();
		return false;
	}	
	if (check.email.value.length == 0) 
	{	
		alert("Please enter your email!");
		check.email.focus();
		return false;
	}	

	if (check.phone.value.length == 0) 

	{	
		alert("Please enter your phone number!");
		check.phone.focus();
		return false;

	}	
}
