Contact
var cp_contactformpp_ready_to_go = false;
function doValidate_1(form)
{
if (cp_contactformpp_ready_to_go) return false;
$dexQuery = jQuery;
document.cp_contactformpp_pform_1.cp_ref_page.value = document.location;
if ($dexQuery("#hdcaptcha_cp_contact_form_paypal_post_1").val() == '')
{
setTimeout( "cfwpp_cerror_1()", 100);
return false;
}
var result = $dexQuery.ajax({
type: "GET",
url: "/Site?ps=_1"+String.fromCharCode(38)+"hdcaptcha_cp_contact_form_paypal_post="+$dexQuery("#hdcaptcha_cp_contact_form_paypal_post_1").val(),
async: false
}).responseText;
if (result.indexOf("captchafailed") != -1)
{
$dexQuery("#captchaimg_1").attr('src', $dexQuery("#captchaimg_1").attr('src')+'&'+Math.floor((Math.random() * 99999) + 1));
setTimeout( "cfwpp_cerror_1()", 100);
return false;
}
else {
var cpefb_error = 0;
$dexQuery("#cp_contactformpp_pform_1").find(".cpefb_error").each(function(index){
if ($dexQuery(this).css("display")!="none")
cpefb_error++;
});
if (cpefb_error) return false;
cp_contactformpp_ready_to_go = true;
cfwpp_blink(".pbSubmit");
document.getElementById("form_structure_1").value = '';
return true;
}
}
function cfwpp_cerror_1(){$dexQuery = jQuery;$dexQuery("#hdcaptcha_error_1").css('top',$dexQuery("#hdcaptcha_cp_contact_form_paypal_post_1").outerHeight());$dexQuery("#hdcaptcha_error_1").css("display","inline");}
function cfwpp_blink(selector){
try {
$dexQuery = jQuery;
$dexQuery(selector).fadeOut(1000, function(){
$dexQuery(this).fadeIn(1000, function(){
try {
if (cp_contactformpp_ready_to_go)
cfwpp_blink(this);
} catch (e) {}
});
});
} catch (e) {}
}