// JavaScript Document
	function hasNumbers(t)
	{
	return /\d/.test(t);
	}

	function checkFooterForm()
	{
		var badWords = "tramadol,gambling,aleuzeneve,-dental,byob@-,shemale,hentai,.biz,orgasm,shemale,poker,online-slots,kasino,government-grants,holdem,texas-,xenical,business-grants,slots-,8e,online poker,cheapcig,Roulette,online casinos,phentermine,adipex,bllogspot,carisoprodol,casino,casinos,baccarrat,cialis,cwascyclencyclo,benzaprine,day-trading,discreetorderingdutyfree,duty-free,fioricet,freenet-shopping,incest,levitra,macinstruct,meridia,online-gambling,paxil,phentermine,platinum-,celebs,poker-chip,slot-machine,tramadol,trim-spa,ultram,viagra,xanax,booker,zolus,chatroom,jackpotspalace.com,cheapdisneyvacations,packagesandtickets,tramadol,phendimetrazine,detrol,neurontin,ambien,flexeril,adipex,fantasyfootball,fioricet,cialis,lunesta,valium-order,viagara-medication,fuck,dick,bitch,whore,shit"
		var errorMsg = '';
		formObj = document.getElementById("footerForm")
		if(formObj.firstname.value == "First Name" || formObj.firstname.value == "")
		{
			errorMsg += 'Please enter your First Name!\n'
		}
		else if(hasNumbers(formObj.firstname.value))
		{
			errorMsg += 'Your First Name can not contain numbers!\n'
		}
		if(formObj.lastname.value == "Last Name" || formObj.lastname.value == "")
		{
			errorMsg += 'Please enter your Last Name!\n'
		}
		else if(formObj.firstname.value.toLowerCase() == formObj.lastname.value.toLowerCase())
		{
			errorMsg += 'You first and last names can not match!\n'
		}
		else if(hasNumbers(formObj.lastname.value))
		{
			errorMsg += 'Your Last Name can not contain numbers!\n'
		}
		if(formObj.hp1.value == "" || formObj.hp1.value.length != 3 || formObj.hp2.value == "" || formObj.hp2.value.length != 3 ||formObj.hp3.value == "" || formObj.hp3.value.length != 4)
		{
			errorMsg += 'Please a valid Phone Number!\n'
		}
		var newPhone = formObj.hp1.value + "" + formObj.hp2.value + "" + formObj.hp3.value
		 if(isNaN(newPhone)) 
   		{ 
			errorMsg += 'Phone number must contain digits only!\n'
		}
		if(formObj.zipcode.value == "")
		{
			errorMsg += 'Please enter your Zip Code!\n'
		}
		else if(isNaN(formObj.zipcode.value)) 
   		{ 
			errorMsg += 'Your Zip Code must contain digits only!\n'
		}
		if(formObj.email.value == "")
		{
			errorMsg += 'Please enter your Email Address!\n'
		}
		else if(!checkEmail(formObj.email.value))
		{
			errorMsg += 'Please enter a valid Email Address!\n'
		}
		var bw = badWords.split(",")
		for(i=0;i<bw.length;i++)
		{
			if(formObj.firstname.value == bw[i])
			{
				errorMsg += 'Your first name is invalid!\n'
			}
			if(formObj.lastname.value == bw[i])
			{
				errorMsg += 'Your last name is invalid!\n'
			}
		}
		if(errorMsg.length > 0)
		{
			alert(errorMsg)
			return false
		}
		return true
	}
		
	function clearText(obj)
	{
		if(obj.value == "First Name")
		{
			obj.value = ''
		}
		if(obj.value == "Last Name")
		{
			obj.value = ''
		}
		if(obj.value == "Phone")
		{
			obj.value = ''
		}
		if(obj.value == "E-Mail")
		{
			obj.value = ''
		}
	}
