<!--

//list of banned words
var bannedWords = new Array ("http://", "https://");


function validate_form() 
{		
		valid = true;

		for ( var j = 0; j < bannedWords.length; ++j )
			{
			if 	(
				( document.emaf.emaf_student.value.indexOf (bannedWords[j]) >= 0 ) ||
				( document.emaf.emaf_contact1.value.indexOf (bannedWords[j]) >= 0 ) ||
				( document.emaf.emaf_medinfo.value.indexOf (bannedWords[j]) >= 0 ) ||
				( document.emaf.emaf_refusalactions.value.indexOf (bannedWords[j]) >= 0 ) ||
				( document.emaf.emaf_signature.value.indexOf (bannedWords[j]) >= 0 )
				)
				{
				alert ("We're sorry, but you cannot use this form to send urls, please remove all instances of HTTP and try again");
				valid = false;
				}
			}

        if ( document.emaf.emaf_signature.value == "" )
			{
				alert ("We're sorry, but your signature is required for this form");
				valid = false; 
			}
        if ( document.emaf.emaf_signagree.value == "" )
			{ 
				alert ("We're sorry, but you must agree to the signature agreement in order to submit this form");			
				valid = false; 
			}
        if (( document.emaf.emaf_signagree1.value == "" ) && ( document.emaf.emaf_signagree2.value == "" ))
			{ 
				alert ("We're sorry, but you must agree to the signature agreement in at least one consent box in order to submit this form");			
				valid = false; 
			}
        if (( document.emaf.emaf_signature1.value == "" ) && ( document.emaf.emaf_signature2.value == "" ))
			{ 
				alert ("We're sorry, but your signature is required in at least one consent box in order to submit this form");			
				valid = false; 
			}
			
        return valid;
		
}
	
-->