//Service Request

function checkformServiceRequest (form)
{

	var Name = ServiceRequest.Name.value ;
	if (Name == "")
		{
			alert ("Please enter your name.") ;
			ServiceRequest.Name.focus();
			return ;
		}
	var Address1 = ServiceRequest.Address1.value ;
			if (Address1 == "")
				{
					alert ("Please enter your Address.") ;
					ServiceRequest.Address1.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 Zip Code.") ;
					ServiceRequest.ZipCode.focus();
					return ;
		}

	var HomePhone = ServiceRequest.HomePhone.value ;
	if (HomePhone == "")
		{
			alert ("Please enter your Phone Number.") ;
			ServiceRequest.HomePhone.focus();
			return ;
		}	


ServiceRequest.submit() ;

}


//Contact

function checkformContact (form)
{

	var Name = Contact.Name.value ;
	if (Name == "")
		{
			alert ("Please enter your name.") ;
			Contact.Name.focus();
			return ;
		}

	var Phone = Contact.Phone.value ;
		if (Phone == "")
			{
				alert ("Please enter your phone number.") ;
				Contact.Phone.focus();
				return ;
			}
	
Contact.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');
}
