// JavaScript Document
function r_validateField( field, label, alerttext ) {
	with( field ) {
		if( value == null || value == "" || value == label ) {
			alert( alerttext );
			return false;
		} else {
			return true;
		}
	}
}
			
function r_validateForm( thisForm ) {
	with( thisForm ) {
		if( r_validateField( name, "name", "You must fill out your Name to proceed." ) == false )  {
			name.focus();
			return false;
		}
		else if( r_validateField( email, "email", "You must fill out your Email Address to proceed." ) == false ) {
			email.focus();
			return false;
		}
	}
}

function r_clearField( field, label ) {
	with( field ) {
		if( value == label ) {
			value = "";
		}
	}
}

