function formwindow(a){MyWindow=window.open(a,"MyWindowETF","toolbar=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=600,height=500,left=250,top=2")}
function dupaddress(){if(document.checkout.billsame.checked){document.checkout.billname.value=document.checkout.shipname.value;document.checkout.billaddress.value=document.checkout.shipaddress.value;document.checkout.billaddress2.value=document.checkout.shipaddress2.value;document.checkout.billcity.value=document.checkout.shipcity.value;document.checkout.billstate.value=document.checkout.shipstate.value;document.checkout.billzip.value=document.checkout.shipzip.value;document.checkout.billcountry.value=
document.checkout.shipcountry.value}else{document.checkout.billname.value="";document.checkout.billaddress.value="";document.checkout.billaddress2.value="";document.checkout.billcity.value="";document.checkout.billstate.value="";document.checkout.billzip.value="";document.checkout.billcountry.value=""}}
function checkform(){allgood=document.checkout.email.value!=""&&document.checkout.billname.value!=""&&document.checkout.billaddress.value!=""&&document.checkout.phone.value!=""?1:0;allgood==1?document.checkout.submit():alert("Email Address, Name, Address, Phone, and Payment Information are required.  Please make sure all the requested information is provided, then try again.")}
function checkeform(){allgood=document.echeckout.email.value!=""&&document.echeckout.billname.value!=""&&document.echeckout.billaddress.value!=""&&document.echeckout.phone.value!=""?1:0;allgood==1?document.echeckout.submit():alert("Email Address, Name, Address, Phone, and Payment Information are required.  Please make sure all the requested information is provided, then try again.")}
$(document).ready(function(){$("#searchjump").click(function(){$("#search").animate({backgroundColor:"#FCFCD8"},1).delay(1E3).animate({backgroundColor:"#ffffff"},1500)});$(".regpay").click(function(){$("#online").attr("checked")?$("#cardbill").show():$("#cardbill").hide();$("#porder").attr("checked")?$("#pbill").show():$("#pbill").hide()});$(".bulklink a").bigTarget();$(".linklist a").bigTarget();$(".renewlink a").bigTarget({clickZone:"div:eq(0)"});$(".usmmenu a").bigTarget({clickZone:"div:eq(0)"});
$(".news a").bigTarget({clickZone:"div:eq(0)"});$(".hover-starp").rating({required:true,callback:function(a){if(a!="")var b=$(this).attr("name").replace("post","");else{b=$(this).attr("title");a=0}$.ajax({type:"POST",url:"postrate.php",data:"id="+b+"&rate="+a})}});$(".hover-star").rating({required:true,callback:function(a){if(a!="")var b=$(this).attr("name").replace("comment","");else{b=$(this).attr("title");a=0}$.ajax({type:"POST",url:"commentrate.php",data:"id="+b+"&rate="+a})}});$(".medialink a").fancybox({frameWidth:900,
frameHeight:700});$(".medialink640 a").fancybox({frameWidth:640,frameHeight:460});$(".medialinkf a").fancybox({frameWidth:900,frameHeight:700});$("a#cvvhelp").fancybox({frameWidth:800,frameHeight:600});$("a.memsurvlink").fancybox({frameWidth:700,frameHeight:500});$("#newmems").cycle({fx:"fade",pause:1,delay:1E3});$("#regapp").validate({rules:{First_Name:{required:true},Last_Name:{required:true},Email:{required:true,email:true},Company:{required:true},Job_Title:{required:true},Phone:{required:true},
reg55:{required:true},address:{required:true},City:{required:true},State:{required:true},zip:{required:true}},messages:{Email:{required:"Please enter a valid email address",minlength:"Please enter a valid email address"}}});$(".mcplink").fancybox({frameWidth:850,frameHeight:550});$("#thetotal").ready(function(){$("#thetotal").html()=="$0.00"?$("#billing").hide():$("#billing").show()});$("#regapp input").click(function(){$("input").parent().sum()=="0"?$("#billing").hide():$("#billing").show()});$(".milink").click(function(){$(this).parent("p").parent("td").parent("tr").next(".proddesc").slideToggle();
return false});$(".dmilink").click(function(){$(".dproddesc").slideToggle();return false})});function memformsubmit(){document.memapp.submit()}function nonmemformsubmit(){document.nonmemform.submit()}$("#tag").ready(function(){var a=$("#tag").val();$("#tag").focus(function(){$("#tag").val("")});$("#tag").blur(function(){$("#tag").val()==""&&$("#tag").val(a)})});
$("#fpassword").ready(function(){$("#fpassword").blur(function(){if($("#fpassword").val()!=$("#fpasswordc").val()&&$("#fpasswordc").val()!=""){$(".passwarn").html("New password has been typed in two different ways, please try again.");$(".passwarn").show()}else $(".passwarn").html("")});$("#fpasswordc").blur(function(){if($("#fpassword").val()!=$("#fpasswordc").val()){$(".passwarn").html("New password has been typed in two different ways, please try again.");$(".passwarn").show()}else $(".passwarn").html("")})});
$("form").submit(function(){if(formerrors==false)return true;$("#formwarn").html("Please correct the errors above to save your info.");$("#formwarn").show();return false});$("#showscore").ready(function(){$("#showscore").click(function(){$("#scorecont").slideToggle("fast");return false})});
function delpost(a){answer=confirm("Are you sure you wish to delete this post? The post and all comments/replies will be permanently removed.");if(answer==true)window.location.href="delpost.php?&id="+a;else alert("Post Deletion Canceled...")}function delcomment(a){answer=confirm("Are you sure you wish to delete this comment?");if(answer==true)window.location.href="delcomment.php?&id="+a;else alert("Comment Deletion Canceled...")}
$("#mailsharewhat").ready(function(){$("#mailsharewhat").click(function(){$("#ESinfo").slideToggle("fast");return false})});var totalsofar=0;

