 function formck(form) { 	if (form.fname.value=="")	{ alert("You must enter your first name.");	form.fname.focus();return false;}	if (document.form1.lname.value=="")	{alert("You must enter your last name.");	document.form1.lname.focus();return false;}	if (document.form1.address.value=="")	{alert("You must enter an address.");	document.form1.address.focus();return false;}	if (document.form1.city.value=="")	{alert("You forgot to enter your city.");	document.form1.city.focus();return false;}	if (document.form1.state.value=="")	{alert("You must enter your state.");	document.form1.state.focus();return false;}	if (document.form1.zip.value=="")	{alert("You must enter your zipcode.");	document.form1.zip.focus();return false;}	if (document.form1.phone.value=="")	{alert("You must enter your phone number.");	document.form1.phone.focus();return false;}	if (document.form1.email.value=="")	{alert("You must enter your email address.");	document.form1.email.focus();return false;}	if (document.form1.dob.value=="")	{alert("You must enter your date of birth.");	document.form1.dob.focus();return false;}	if (form.exp.value=="")	{alert("You must enter your credit card expiration date.");	form.exp.focus();return false;}	if (document.form1.cnum.value=="")	{alert("You forgot to enter your credit card number.");	document.form1.cnum.focus();return false;}	if (document.form1.user.value=="")	{alert("You must enter a username.");	document.form1.user.focus();return false;}	if (document.form1.disc.checked==false)	{alert("You must read our disclaimer and check the checkbox acknowledging that you did.");	document.form1.disc.focus();return false;}	var invalid = " "; var minLength = 6; var pw1 = form1.pword.value; var pw2 = form1.pword1.value;	if (pw1 == '' || pw2 == '') { alert('Please enter your password twice.'); return false;}	if (pw1.length < minLength) { alert('Your password is not ' + minLength + ' characters long. Try again.'); return false;}	if (pw2.length < minLength) { alert('Your re-entered password is not ' + minLength + ' characters long. Try again.'); return false;}	if (pw1.indexOf(invalid) > -1) { alert("Your password contains a space. Sorry, spaces are not allowed."); return false;}	if (pw2.indexOf(invalid) > -1) { alert("Your re-entered password contains a space. Sorry, spaces are not allowed."); return false;}	if (pw1 != pw2) { alert ("Passwords do not match. Please re-enter your password."); return false;}} 