ugh it didnt show up
here it is
!--
//define the function
function checkForm(formName) {
//state that contactinfo is each feild on the form
for( var contactinfo = 0; contactinfo < document.forms[formName].elements.length; contactinfo++)
//if any fields are blank
if ( document.forms[formName].elements[contactinfo].value hahahaha '' )
{
document.forms[formName].elements[contactinfo].focus();
//alert the user which fields they did not fill out
alert( 'Please fill in your ' + document.forms[formName].elements[contactinfo].name );
}
}
//--
|