";
setTimeout("document.location.reload()",1200);
}else{
document.getElementById('accounterrordiv').innerHTML=liajaxobj.responseText.substr(6);
var className=document.getElementById('accounterrordiv').className;
if(className.indexOf('ectwarning')==-1)document.getElementById('accounterrordiv').className+=' ectwarning cartnewaccloginerror';
}
}
}
var checkedfullname=false;
function checknewaccount(){
var tobj=document.getElementById('naname');
if(tobj.value==""){
alert("Please enter a value in the field \"Full Name\".");
tobj.focus();
return(false);
}
var regex=/ /;
if(!checkedfullname && !regex.test(tobj.value)){
alert("This message will not be shown again.\nPlease be sure to enter your first and last name in the field \"Full Name\".");
tobj.focus();
checkedfullname=true;
return(false);
}
var regex=/[^@]+@[^@]+\.[a-z]{2,}$/i;
var tobj=document.getElementById('naemail');
if(!regex.test(tobj.value)){
alert("Please enter a valid email address.");
tobj.focus();
return(false);
}
var tobj=document.getElementById('pass');
if(tobj.value.lengthYou have logged out successfully!
Please add your email and we'll notify you when it's back
",xxNotBaS="Out of Stock",xxNotSto="The following product isn't currently available in our store",xxOpSkTx=" (%s)",xxOptOOS="I'm sorry, that particular option is currently out of stock",xxOutStok="Out of Stock",xxPrd255="Please enter a maximum of 255 chars in the field indicated.",xxPrdChs="Please choose from the available product options.",xxPrdEnt="Please enter a value where indicated.",xxPrice="Price",xxSCAdOr="Product Added to Cart",xxSCBakO="Item not currently in stock but placed on back order.",xxSCCarT="Cart total",xxSCItem="item(s)",xxSCStkW="STOCK WARNING: Low stock on selected item, please click "Edit Order" to accept stock level.",xxValEm="Please enter a valid email address.";
var absoptionpricediffs=false;
var cartpageonhttps=false;
var currDecimalSep='.';
var currencyseparator=' ';
var currThousandsSep=',';
var ectbody3layouttaxinc=false;
var extension='.asp';
var extensionabs='asp';
var hasdecimals=true;
var hideoptpricediffs=false;
var imgsoftcartcheckout='';
var noencodeimages=true;
var noprice=false;
var nopriceanywhere=false;
var noshowoptionsinstock=false;
var notifybackinstock=true;
var noupdateprice=false;
var pricezeromessage="";
var showinstock=false;
var stockdisplaythreshold=50;
var showtaxinclusive=0;
var storeurlssl='https://www.customcargrills.com/';
var tax=0;
var txtcollen=255;
var usehardaddtocart=false;
var usestockmanagement=true;
var yousavetext="";
var zero2dps='0.00';
var currFormat1='',currFormat2='',currFormat3='';
var currRate1=0,currRate2=0,currRate3=0;
var currSymbol1='',currSymbol2='',currSymbol3='';
var softcartrelated=false;
function updateoptimage(theitem,themenu,opttype){
var imageitemsrc='',mzitem,theopt,theid,imageitem,imlist,imlistl,fn=window['updateprice'+theitem];
fn();
if(opttype==1){
theopt=document.getElementsByName('optn'+theitem+'x'+themenu)
for(var i=0; i=imlist.length) pIX[theitem]=0;
if(document.getElementById((isqb?'qb':'prod')+"image"+theitem)){document.getElementById((isqb?'qb':'prod')+"image"+theitem).src='';document.getElementById((isqb?'qb':'prod')+"image"+theitem).src=vsdecimg(imlist[pIX[theitem]]);}
document.getElementById((isqb?'qb':'extra')+"imcnt"+theitem).innerHTML=pIX[theitem]+1;
return false;
}
/* ]]> */