function frmValid(theForm) {
	// buddy must have a name
	t = theForm.firstname.value.toLowerCase();
	if( t == "" || t.length < 3 || t.indexOf("abc") >= 0 || t.indexOf("xyz") >= 0 || t.indexOf("fuck") >= 0 ){
		alert("Please enter your First Name.");
		theForm.firstname.focus();
		return (false);
	}
	
	// check real name
	t = theForm.lastname.value.toLowerCase();
	if( t == "" || t.length < 3 || t.indexOf("abc") >= 0 || t.indexOf("xyz") >= 0 || t.indexOf("fuck") >= 0 ){
		alert("Please enter your Last Name.");
		theForm.lastname.focus();
		return (false);
	}
	
	// check address
	t = theForm.address1.value.toLowerCase();
	if( t == "" || t.length < 3 || t.indexOf("abc") >= 0 || t.indexOf("xyz") >= 0 || t.indexOf("fuck") >= 0 ){
		alert("Please enter your Address.");
		theForm.address1.focus();
		return (false);
	}
	
	// check city
	t = theForm.city.value.toLowerCase();
	if( t == "" || t.length < 3 || t.indexOf("abc") >= 0 || t.indexOf("xyz") >= 0 || t.indexOf("fuck") >= 0 ){
		alert("Please enter a City Name.");
		theForm.city.focus();
		return (false);
	}
	
	// check state
	t = theForm.state.value.toLowerCase();
	if( t == ""){
		alert("Please Select Your State. ");
		theForm.state.focus();
		return (false);
	}
	
	// check zip code
	t = theForm.zipcode.value.toLowerCase();
	if( t == "" || t.length < 3 || t.indexOf("abc") >= 0 || t.indexOf("xyz") >= 0 || t.indexOf("fuck") >= 0 ){
		alert("Please enter a Zip Code.");
		theForm.zipcode.focus();
		return (false);
	}

	// check e-mail
	t = theForm.email.value;
	if( t == "your@company.com" || t == "" || t.indexOf("@") == -1 || t.indexOf(".") == -1 || t.indexOf(" ")!=-1 || t.length < 6 || t.indexOf("xyz.com") > 0 || t.indexOf("abc.com") > 0 || t.indexOf("jagatniwaspalace.com") > 0 ) {
		alert("Your Email seems to be invalid!");
		theForm.email.focus();
		return (false);
	}
	
		// all's well ends well
	return true;
}