function mse_echeck(b){return b.search(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i)==-1?!1:!0}
$(function(){var b=document.getElementById("contact_type"),c=document.getElementById("contact_name"),d=document.getElementById("contact_email"),e=document.getElementById("contact_description");$("#dialog-contact-us").dialog({autoOpen:!1,height:510,width:500,modal:!0,resizable:!1,buttons:{Cancel:function(){$(this).dialog("close")},Submit:function(){c.value!=""?mse_echeck(d.value)?e.value!=""?($.post("contacto_mse.php",{senderName:c.value,senderEmail:d.value,sendToEmail:"support@sendtocheck.com",contacto_descripcion:e.value,
tipo_contacto:b.value,key:key_report.value},function(){window.alert("Your information has been sent. Thanks for contact us!.")},"text"),$(this).dialog("close")):window.alert("Please, enter your message into the description field."):window.alert("Invalid Email address, please check it and try again."):window.alert("Please, enter your name.")}},close:function(){},open:function(){$(this).show("blind",{},500)}});$("#footer_contactus").button().click(function(){$("#dialog-contact-us").dialog("open");$("#dialog-contact-us").css("visibility",
"visible")});$("#dialog:ui-dialog").dialog("destroy");$("#dialog-terms-of-use").dialog({autoOpen:!1,height:510,width:500,modal:!0,resizable:!1,buttons:{"Download as PDF":function(){window.location="download_pdf.php?o=1&p=SendToCheck_Terms_and_Conditions.pdf"},OK:function(){$(this).dialog("close")}},close:function(){},open:function(){$(this).show("blind",{},500);$.ajax({url:"http://www.sendtocheck.com/legal_stuff/terms.html",success:function(a){$("#div_termsofuse").html(a)}})}});$("#footer_termsofuse").button().click(function(){$("#dialog-terms-of-use").dialog("open");
$("#dialog-terms-of-use").css("visibility","visible")});$("#dialog-privacy").dialog({autoOpen:!1,height:510,width:500,modal:!0,resizable:!1,buttons:{"Download as PDF":function(){window.location="download_pdf.php?o=2&p=SendToCheck_Privacy_Policy.pdf"},OK:function(){$(this).dialog("close")}},close:function(){},open:function(){$(this).show("blind",{},500);$.ajax({url:"http://www.sendtocheck.com/legal_stuff/privacy.html",success:function(a){$("#div_privacy").html(a)}})}});$("#footer_privacy").button().click(function(){$("#dialog-privacy").dialog("open");
$("#dialog-privacy").css("visibility","visible")});$("#dialog-about-us").dialog({autoOpen:!1,height:540,width:500,modal:!0,resizable:!1,buttons:{OK:function(){$(this).dialog("close")}},close:function(){},open:function(){$(this).show("blind",{},500);$.ajax({url:"http://www.sendtocheck.com/legal_stuff/aboutus.html",success:function(a){$("#div_aboutus").html(a)}})}});$("#footer_aboutus").button().click(function(){$("#dialog-about-us").dialog("open");$("#dialog-about-us").css("visibility","visible")});
$("#dialog-form-no-existe").dialog({autoOpen:!1,height:250,width:325,modal:!0,resizable:!1,buttons:{OK:function(){$(this).dialog("close")}},close:function(){},open:function(){$("#dialog-form-no-existe").css("visibility","visible");$(this).show("blind",{},500)}})});
