
//$(function () {
//	$("#btnContestSignup").click(function(){
//		SignupForContest();
//	});
//});
function SendContactRequest(){	
	//if(!Validate())
		//return;
	$("#btnSubmit").val("SENDING..");
	var data = $("form").serialize();
	var url = gateway_url + "?action=contact&" + data;
	var flag = $.ajax({
      type: "POST",
      url: url,
      data: "",
      async: false
    }).responseText;  
	if(flag == "1"){
		window.location = "ContactThankYou.html";
	}else{
		alert("AN ERROR OCCURRED!");
	}
}
function onResult(rez){
	alert("onResult_ "+rez);
	if(rez == "1"){
		window.location = "ContestSignupThankYou.aspx";
	}else{
		alert("AN ERROR OCCURRED!");
	}
}
function Validate(){
	$("#warningLabel").hide();
	if(!document.getElementById('chkTOS').checked){
		//alert("You must agree to the terms of service before continuing!");		
		$("#warningLabel").show();
		return false;
	}
	if(!IsValidEmail($("#txtEmailAddress").val())){
		//alert("Please enter a valid email address!");
		$("#warningLabel").show();
		return false;
	}
	/*if(!ValidateZipcode()){
		alert("Please enter a valid zipcode!");
		$("#warningLabel").show();
		return false;
	}*/
	return true;	
}

