	function validate()	{

		
		a = document.form.question;
		if (a.value.length == 0) {
			alert("Please fill out the Question !");
			a.focus();
			return false;
		}

		a = document.form.D1;
		if (a.value.length == 0) {
			alert("Please fill out the Model Number !");
			a.focus();
			return false;
		}

		a = document.form.T1;
		if (a.value.length == 0) {
			alert("Please fill out the Serial Number !");
			a.focus();
			return false;
		}
				
		a = document.form.T2;
		if (a.value.length == 0) {
			alert("Please fill out Zip code !");
			a.focus();
			return false;
		}
		
		a = document.form.T3;
		if (a.value.length == 0) {
			alert("Please fill out Name !");
			a.focus();
			return false;
		}
		
		a = document.form.T4;
		if (a.value.length == 0) {
			alert("Please fill out Phone Number !");
			a.focus();
			return false;
		}

		a = document.form.T5;
		if ((a.value != null) && (!isEmailAddress(a.value))){
			alert("Please fill out valid Email Address !");
			a.focus();
			return false;		
		}
		
		return true;
	}

	function isEmailAddress (string) {
		var addressPattern = /^(\w+[-])*(\w+[.])*(\w+[-])*\w+\@(\w+[-])*(\w+[.])+\w+$/;
		return addressPattern.test(string);
	}

	function regvalidate()	{

		
		a = document.form.fname;
		if (a.value.length == 0) {
			alert("Please fill out the First Name !");
			a.focus();
			return false;
		}

		a = document.form.lname;
		if (a.value.length == 0) {
			alert("Please fill out the Last Name !");
			a.focus();
			return false;
		}
				
		a = document.form.title;
		if (a.value.length == 0) {
			alert("Please fill out Title !");
			a.focus();
			return false;
		}

		a = document.form.email;
		if ((a.value != null) && (!isEmailAddress(a.value))){
			alert("Please fill out valid Email Address !");
			a.focus();
			return false;		
		}
		
		a = document.form.phone;
		if (a.value.length == 0) {
			alert("Please fill out Phone !");
			a.focus();
			return false;
		}
		
		a = document.form.dealer;
		if (a.value.length == 0) {
			alert("Please fill out Dealer !");
			a.focus();
			return false;
		}		
		
		return true;
	}
