myPix = new Array("/atf/cf/{13A13846-1CA6-4F8A-B52E-2A88576B84EF}/banner01.jpg"
				  ,"/atf/cf/{13A13846-1CA6-4F8A-B52E-2A88576B84EF}/banner02.jpg"
				  ,"/atf/cf/{13A13846-1CA6-4F8A-B52E-2A88576B84EF}/banner03.jpg"
				  ,"/atf/cf/{13A13846-1CA6-4F8A-B52E-2A88576B84EF}/banner04.jpg"
				  ,"/atf/cf/{13A13846-1CA6-4F8A-B52E-2A88576B84EF}/banner05.jpg"
				  ,"/atf/cf/{13A13846-1CA6-4F8A-B52E-2A88576B84EF}/banner06.jpg"
				  ,"/atf/cf/{13A13846-1CA6-4F8A-B52E-2A88576B84EF}/banner07.jpg"
				  ,"/atf/cf/{13A13846-1CA6-4F8A-B52E-2A88576B84EF}/banner08.jpg")
imgCt = myPix.length

function choosePic() {
	if (document.images) {
		randomNum = Math.floor((Math.random()*imgCt));
		document.myPicture.src=myPix[randomNum];
	}
}



myLogo = new Array("/atf/cf/{13A13846-1CA6-4F8A-B52E-2A88576B84EF}/sponsor_logo1.gif"
				  ,"/atf/cf/{13A13846-1CA6-4F8A-B52E-2A88576B84EF}/sponsor_logo2.gif"
				  ,"/atf/cf/{13A13846-1CA6-4F8A-B52E-2A88576B84EF}/sponsor_logo3.gif"
				  ,"/atf/cf/{13A13846-1CA6-4F8A-B52E-2A88576B84EF}/sponsor_logo4.gif"
				  ,"/atf/cf/{13A13846-1CA6-4F8A-B52E-2A88576B84EF}/sponsor_logo5.gif")
imgCt = myLogo.length

function chooseLOGO() {
	if (document.images) {
		randomNum = Math.floor((Math.random()*imgCt));
		document.sponsorLOGO.src=myLogo[randomNum];
	}
}



function SubmitForm165727(thisform) {	
//	if(thisform.SubmitButtom!=null) thisform.SubmitButtom.disabled = true;	
	if(CheckForm165727(thisform)) thisform.submit();	
	else if(thisform.SubmitButton!=null) thisform.SubmitButton.disabled = false; }
	
function CheckForm165727(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.kintera.org/AutoGen/Contact/ContactAdd.asp?ievent=165727&en=jvLOK3OPJiKSK4PWLhJOJ7MSLpI0LbPXKnKYIdN3IvJdE"; 	return true;}
