formSetmain(document.SUPPORTER99200);
onunload = fileClose;

function SubmitForm99200(thisform){
	if(thisform.SubmitButtom!=null) thisform.SubmitButtom.disabled = true;
	if(CheckForm99200(thisform)) thisform.submit();
	else if(thisform.SubmitButton!=null) thisform.SubmitButton.disabled = false;
}
function CheckForm99200(thisform){
	focus_field = "";
	warning = "";
	warning=checkField(thisform.first_name,"First Name",warning);warning=checkField(thisform.last_name,"Last Name",warning);warning=checkField(thisform.email_address,"Email",warning);	
	if(warning!=""){
		warning = "Please enter the following fields to continue:\n- "+warning+"";
		alert(warning);
		if(focus_field!="")
			focus_field.focus();
		return false;
	}
	if(thisform.email_address!=null){
		if(thisform.email_address.value!=""){
			if(validEmail(thisform.email_address.value, "You have entered an invalid email address.") == false){
				thisform.email_address.focus();
				return false;
			}
		}
	}		
	if(thisform.email_address_1!=null){
		if(thisform.email_address_1.value!=""){
			if(validEmail(thisform.email_address_1.value) == false){
				//alert("Please enter a valid email address.");
				thisform.email_address_1.focus();
				return false;
			}
		}
	}		
	if(thisform.email_address_2!=null){
		if(thisform.email_address_2.value!=""){
			if(validEmail(thisform.email_address_2.value) == false){
				//alert("Please enter a valid email address.");
				thisform.email_address_2.focus();
				return false;
			}
		}
	}					
	if ((thisform.zip != null) && (thisform.country != null)){ 
		if (checkCountryZip(thisform.zip, thisform.country, "Please enter a correct format zip/postal code") == false) {
			thisform.zip.focus();
			return false;
		}
	}
	
	thisform.action = "http://www.projectgrad.org/site/apps/ka/ct/contactus.asp?c=isKTL6PRLvF&b=783451"; 
	return true;
}