//Service Request

function checkformServiceRequest (form)
{

	var FirstName = ServiceRequest.FirstName.value ;
	if (FirstName == "")
		{
			alert ("Please enter your first name.") ;
			ServiceRequest.FirstName.focus();
			return ;
		}
	
	var LastName = ServiceRequest.LastName.value ;
		if (LastName == "")
			{
				alert ("Please enter your last name.") ;
				ServiceRequest.LastName.focus();
				return ;
		}	

	var Address = ServiceRequest.Address.value ;
		if (Address == "")
			{
				alert ("Please enter your Address.") ;
				ServiceRequest.Address.focus();
				return ;
		}
	var City = ServiceRequest.City.value ;
			if (City == "")
				{
					alert ("Please enter your City.") ;
					ServiceRequest.City.focus();
					return ;
			}		
	
	
	var Zipcode = ServiceRequest.Zipcode.value ;
		if (Zipcode == "")
			{
				alert ("Please enter your Zipcode.") ;
				ServiceRequest.Zipcode.focus();
				return ;
		}

	var HomePhone = ServiceRequest.HomePhone.value ;
	if (HomePhone == "")
		{
			alert ("Please enter your home phone number.") ;
			ServiceRequest.HomePhone.focus();
			return ;
		}
		
	var WorkPhone = ServiceRequest.WorkPhone.value ;
		if (WorkPhone == "")
			{
				alert ("Please enter your work phone number.") ;
				ServiceRequest.WorkPhone.focus();
				return ;
		}
	
	var Email = ServiceRequest.Email.value ;
	if (Email == "")
		{
			alert ("Please enter your Email address.") ;
			ServiceRequest.Email.focus();
			return ;
		}

ServiceRequest.submit() ;

}




var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

function countup(yr,m,d){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var paststring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1/365)
var thisYear =(Math.round(difference))
document.write (thisYear)
}

function open_fad(url) {
mywin = window.open(url,"window",'scrollbars=yes,resizable=yes,width=575,height=525');
}

function open_nbc(url) {
mywin = window.open(url,"window",'scrollbars=yes,resizable=yes,width=1010,height=600');
}



function open_comm(url) {
mywin = window.open(url,"window",'scrollbars=yes,resizable=yes,width=300,height=320');
}
