	function VerifyZipCode()
	{
		if (document.broadbandform.ZIP_CODE.value == "" || allSpace(document.broadbandform.ZIP_CODE.value))
		{
			alert("Please enter a zip code");
			document.broadbandform.ZIP_CODE.value = "";
			document.broadbandform.ZIP_CODE.focus();
		}else if (document.broadbandform.STREET_ADDRESS.value == "" || allSpace(document.broadbandform.STREET_ADDRESS.value))
		{
			alert("Please enter a street address.");
			document.broadbandform.STREET_ADDRESS.value = "";
			document.broadbandform.STREET_ADDRESS.focus();
		}
		/*else if (document.broadbandform.ZIP_CODE.value == " ")
		{
			alert("Please enter a zip code");
			document.broadbandform.ZIP_CODE.focus();
		}*/
		else if (isNaN(document.broadbandform.ZIP_CODE.value))
		{
			alert("Invalid zip code.  Enter digits only.");
			document.broadbandform.ZIP_CODE.select();
		}
	/*
		else if (document.broadbandform.ADDR_PRIMARY_NO.value == "" || allSpace(document.broadbandform.ADDR_PRIMARY_NO.value))
		{
			alert("Please enter a street number.");
			document.broadbandform.ADDR_PRIMARY_NO.value = "";
			document.broadbandform.ADDR_PRIMARY_NO.focus();
		}*/
		/*else if (document.broadbandform.ADDR_PRIMARY_NO.value == " ")
		{
			alert("Please enter a street number.");
			document.broadbandform.ADDR_PRIMARY_NO.focus();
		}*/
		/*
		else if (isNaN(document.broadbandform.ADDR_PRIMARY_NO.value))
		{
			alert("Invalid street number.  Enter numbers only.");
			document.broadbandform.ADDR_PRIMARY_NO.select();
		}
		else if (document.broadbandform.STREET_NAME.value == "" || allSpace(document.broadbandform.STREET_NAME.value))
		{
			alert("Please enter a street name.");
			document.broadbandform.STREET_NAME.value = "";
			document.broadbandform.STREET_NAME.focus();
		}
	*/
		/*else if (document.broadbandform.STREET_NAME.value == " ")
		{
			alert("Please enter a street name.");
			document.broadbandform.STREET_NAME.focus();
		}*/
		else
		{
			document.broadbandform.submit();
		}
	}

	function VerifyEmail()
	{
		if (document.theform.EmailAddress.value == "" || allSpace(document.theform.EmailAddress.value))
		{
			alert("Please enter an e-mail address.");
			document.theform.EmailAddress.value = "";
			document.theform.EmailAddress.focus();
			return false;
		}
		else
		{
			return true;
		}
	}
	
	function GoToSatelliteProviders()
	{
		location = "satellite_providers.jhtml";
	}
	
	function VerifyInterestedForm()
	{
		if (document.InterestedForm.customer_name.value == "" || allSpace(document.InterestedForm.customer_name.value))
		{
			alert("Please enter your name.");
			document.InterestedForm.customer_name.value = "";
			document.InterestedForm.customer_name.focus();
		}
		/*else if (document.InterestedForm.customer_name.value == " ")
		{
			alert("Please enter your name.");
			document.InterestedForm.customer_name.focus();
		}*/
		else if (document.InterestedForm.customer_home_phone.value == "" || allSpace(document.InterestedForm.customer_home_phone.value))
		{
			alert("Please enter your home phone.");
			document.InterestedForm.customer_home_phone.value = "";
			document.InterestedForm.customer_home_phone.focus();
		}
		/*else if (document.InterestedForm.customer_home_phone.value == " ")
		{
			alert("Please enter your home phone.");
			document.InterestedForm.customer_home_phone.focus();
		}*/
		else
		{
			if ( submitScript() != false ) {
				document.InterestedForm.submit();
			}
		}
	}
	
	function allSpace(daField){
		counter = 0;
		for(i=0; i<daField.length; i++){
			if(daField.charAt(i)==" ")counter++;
		}
		if(counter == daField.length) return true;
		else return false;
	}

	function set2minCookie(){
			cookieTime = new Date();
			cookieTime.setMinutes(cookieTime.getMinutes() + 2); 
			document.cookie = "cookieType=ageTimeOut_get_broadband; expires=" + cookieTime.toGMTString();
	}

	function dateCheck(){
			age_min = "13";
			age_max = "99";
			usertime = new Date();
			oktime_min = new Date();
			oktime_max = new Date();

			usertime.setYear(parseInt(document.InterestedForm.year.value));
			usertime.setMonth(parseInt(document.InterestedForm.month.options[document.InterestedForm.month.options.selectedIndex].value) - 1);
			usertime.setDate(parseInt(document.InterestedForm.day.options[document.InterestedForm.day.options.selectedIndex].value));
			okyear_min = oktime_min.getYear();
			okyear_max = oktime_max.getYear();
			if(okyear_min < 1000) okyear_min += 1900;
			okyear_min -= age_min;
			oktime_min.setYear(okyear_min);
			if(isNaN(age_max)){
					if(oktime_min.getTime() >= usertime.getTime()) allright = 2;
					else allright = 1;
			}
			else{
					if(age_max > age_min){
							if(okyear_max < 1000) okyear_max += 1900;
							okyear_max -=age_max;
							oktime_max.setYear(okyear_max);
							if ((oktime_min.getTime() >= usertime.getTime())&&(oktime_max.getTime() <= usertime.getTime())) allright = 2;
							else allright = 3;
					}
					else allright = 3;
			}
	}

	function validFilled(){
			allright = 0;
			if((document.InterestedForm.month.options[document.InterestedForm.month.options.selectedIndex].value > 0)&&(document.InterestedForm.day.options[document.InterestedForm.day.options.selectedIndex].value > 0)&&(!isNaN(parseInt(document.InterestedForm.year.value)))&&(((parseInt(document.InterestedForm.year.value)).toString()).length == 4)){
					dateCheck();
			}
	}

	function submitScript(){
			validFilled();
			switch(allright){
					case 0:
							alert('Please enter a valid 4 number year.  ex. 1999');
							allright = false;
							break;
					case 1:
							alert('Sorry, you are not eligible for this offer');
							set2minCookie();
							allright = false;
							break;
					case 2:
							//alert('Your birthday checks out.  Proceed :)');
							allright = true;
							break;
					case 3:
							alert('Sorry, you are not eligible for this offer');
							set2minCookie();
							allright = false;
							break;
					default:
							//alert('went to default');
							allright = false;
							break;
			}
			if(allright && (document.cookie.indexOf("ageTimeOut_get_broadband") != -1)){
					allright = false;
					alert("Sorry, you are not eligible for this offer");
			}
			return allright;
	}