// JavaScript Document
function validate(){
	x=document.frmRegister
	name=x.user_name.value
	company=x.user_company.value
	address=x.user_address1.value
	city=x.user_city.value
	state=x.user_state.value
	zip=x.user_zip.value
	phone=x.user_phone.value
	email=x.user_email.value
	username=x.user_username.value
	password1=x.user_password1.value
	password=x.user_password.value
	submitOK="True"

if (name.length<1)
 {
	alert("Please enter your name in the form")
	submitOK="False"
 }

if (company.length<1)
{
	alert("Please enter your company name in the form")
	submitOK="False"
}

if (address.length<1)
{
	alert("Please enter your address in the form")
	submitOK="False"
}

if (city.length<1)
{
	alert("Please enter your city in the form")
	submitOK="False"
}

if (state.length<1)
{
	alert("Please enter your state in the form")
	submitOK="False"
}

if (zip.length<1)
{
	alert("Please enter your zip code in the form")
	submitOK="False"
}

if (phone.length<5)
{
	alert("Please enter your phone number in the form")
	submitOK="False"
}

if (username.length<1)
{
	alert("Please enter your username in the form")
	submitOK="False"
}
if (password.length<1)
{
	alert("Please enter your password in the form")
	submitOK="False"
}

if ((password)!=(password1))
{
	alert("Your passwords don't match")
	submitOK="False"
}



if (submitOK=="False")
 {
 return false
 }
}