var Condition=new Array(
'a!=""', //Must be filled
'a!=""', //Must be filled
'a!=""&&a.length>5&&a.indexOf("@")!=-1&&a.indexOf(".")!=-1', //Must be longer than 5 characters, have @, and atleast one '.'
'a.length>7&&!(a.split("/")[0]*1>12)&&!(a.split("/")[1]*1>31)&&!(a.split("/")[2]*1<1900)' //Must be longer than 7 characters, first (two) digit(s) NOT greater than 12, second (two) digit(s) NOT greater than 31 and last 4 greater than 1900
);
function docheck(w) {eval("a=document." + company_name + "." + TextName + w + ".value");if (eval(Condition[w])) eval("document." + FormName + "." + CheckName + w + ".checked=true");else eval("document." + FormName + "." + CheckName + w + ".checked=false");
}

function globalcheck(val)
{
var i;
var chkval;
myval = val.value

words = new Array("!","#","$","%","^","&","*","(",")","|","+","\\","\/","?","<",">","{","}",":","~","`","@businesslogo.net")
for (i=0 ; i <=words.length-1;i++)
	{
		if(myval.indexOf(words[i])>=1)
		{
		chkval = true
		}else if(myval.indexOf(words[i])==0)
			{
			chkval = false
			}
	}


if (chkval == true || chkval == false)
		{	
		alert("Don't type numbers and special Characters")
		val.value=""
		val.focus()
		}

}

function submitform()
{
if (document.ContactForm.company.value=="")
{
alert("Enter your Company Name")
document.ContactForm.company.focus()
}else if(document.ContactForm.name.value=="")
	{
	alert("Enter your Name")
	document.ContactForm.name.focus()
	}else if(document.ContactForm.emailadd.value=="")
		{
		alert("Enter your email address")
		document.ContactForm.emailadd.focus()
		}else
			{
			document.ContactForm.action="contactcomplete.php"
			document.ContactForm.submit()
			}
}