// 021: Copyright Dreamteam Design Ltd 1997 - No alteration of this code is permitted

function _loadPersonal(){;_progBar('_loadPersonal{}','main:');e._selCountry=e._B_Country;e._selCountry2=e._D_Country;e._selCountry2=e._selCountry2.split('|')[0];var arry=worldCountries.split('~');var cnt=1;for (var i in arry){;if(arry[i].indexOf(e._selCountry)!=-1){;e.countrySel=cnt;};if(arry[i].indexOf(e._selCountry2)!=-1){;e.countrySel2=cnt;};cnt++;};findTax('',1);e._delCountry=e._selCountry2;orderRefresh();alert('Your account details have been loaded');};
function replaceD(str){;_progBar('replaceD{}','main:');if(allowF){;if(str!=null){;var str1=itemNo[fieldCount-5];var taxG='';str1+=gProdAux;var ret=parseFloat(str1.split('Primary_Retail¬')[1]);var alt=parseFloat(str1.split('Primary_Alt¬')[1]);if(str1!=''){;var pharr=str1.split('^');var count=0;while(count!=pharr.length-1){;var tmp=pharr[count].split('¬')[1];var nme=pharr[count].split('¬')[0];tmp=popTemp(tmp,nme);tmp=repC(tmp,'‡','¦');tmp=repC(tmp,'†','|');if(nme.indexOf('_Value')!=-1){;tmp=popTemp(tmp);};if(nme=='Tax_Group')taxG=tmp;if(e._validMem==-1){;if(nme=='Current_Price_Inc_Vat'||nme=='Primary_Retail_Inc_Vat'||nme=='Primary_Alt_Inc_Vat')tmp=''+priceDisp(money(addTax(alt,-1,taxG)*e.splitRate,2,e.currencyChar),1,1);if(nme=='Current_Price'||nme=='Primary_Retail'||nme=='Primary_Alt')tmp=''+priceDisp(money(alt*e.splitRate,2,e.currencyChar),1,1);}else{;if(nme=='Primary_Retail_Inc_Vat'||nme=='Primary_Alt_Inc_Vat')tmp=''+priceDisp(money(addTax(tmp,-1,taxG)*e.splitRate,2,e.currencyChar),1,1);if(nme=='Primary_Retail'||nme=='Primary_Alt')tmp=''+priceDisp(money(tmp*e.splitRate,2,e.currencyChar),1,1);if(nme=='Current_Price')tmp=''+priceDisp(money(tmp*splitRate,2,currencyChar),1,1);if(nme=='Current_Price_Inc_Vat')tmp=''+priceDisp(money(addTax(tmp,-1,taxG)*splitRate,2,currencyChar),1,1);};var insT='<span class="'+nme+'" style="position:relative" name="'+nme+'_'+itemNo[2]+'" id="'+nme+'_'+itemNo[2]+'">'+tmp+'</span>';str=str.split('<!--'+nme+'-->').join(insT);str=str.split('!'+nme+'!').join(tmp);count++;};};return str;}else{;return '';};}else{;return str;};};
function _pageRedirect(url){;if(url=='reload'){;window.location.reload();}else{;window.location=url;};};
function _switchPrices(arg){;if(arg==true){;e._validMem=-1;}else{;e._validMem=0;};};
function _home(){;location.href=erolHome;};
function _currency(){;if(currencyType==1){;currencyOp=liveCur;_liveCurrency();}else{;getCur(1);location.reload();};};
function _liveCurrency(){;_progBar('_liveCurrency{}','main:');var postData='';postData+='do=Currency&';postData+='template='+escape(currencyOp)+'&';postData+='base='+currencyCode+'&';trafReq+='live currency > ';_sendRequest(cgiBin+'e4-currency.pl',_curLoaded,postData);};
function _curLoaded(req){;_traffic('reading');_progBar('<font color=green>_curLoaded{','main:');var tmp=req.responseText;tmp=repC(tmp,'<HTML><HEAD><SCRIPT>','');tmp=repC(tmp,'</SCRIPT></HEAD></HTML>','');tmp=repC(tmp,'parent.parent.currencyOp="',"e.currencyOp='");tmp=repC(tmp,'";parent.parent.ratesLoaded',"';e.ratesLoaded");tmp=repC(tmp,'parent.parent.selLiveCur()','selLiveCur()');eval(tmp);if(e.isCheckout==0&&e.locChange==0){;};};
function selLiveCur(){;_progBar('selLiveCur{}','main:');if(e.currencyOp.indexOf('|'+e._curCode+':')==-1||e._curCode==''){;e._curCode=currencyCode;e.cardBar=baseDec;e.currencyChar=baseChar;e.currencyChar2=baseChar2;e.splitRate=1;}else{;var a1=e.currencyOp.split('|'+e._curCode+':');var str3=a1[1].split(':');var temp=exRate.indexOf(e._curCode);var nn3=true;if(isnotN3==false)nn3=eval("temp!=''");if(temp!=-1&&nn3){;str3[2]=exRate.substring(exRate.indexOf(':',temp)+1,exRate.indexOf('|',temp+1));};e.splitRate=parseFloat(str3[2]);e.currencyChar=str3[1];e.currencyChar2=str3[3];e.cardBar=str3[4];};relPage();};
function getCur(arg){;_progBar('getCur{}','main:');if(secureFlag==false){;if(arg==6||arg==2||arg==3){;relPage();}else{;if(e.currencyType=='0'||offLine==true){;if(e.currencyType=='1'&&msg12!=''&&e.ratesLoaded==false)alert(msg12);e.currencyOp=fixedCur;selLiveCur();e.ratesLoaded=true;}else{;if(e.ratesLoaded==true){;selLiveCur();}else{;currencyOp=liveCur;_liveCurrency();};};};}else{;secureFlag=false;window.location.href=pagesDir+'e-secure.html?getCur(1)';};};
function relPage(){;_progBar('relPage{}','main:');if(bskSize==0&&orderFlag==true){;orderFlag=true;orderRefresh();}else{;if(pag==-1){;orderRefresh();}else{;orderFlag=true;orderRefresh();};};};
function contOrder(){;var chkfrm=window.document.checkout_form;var postData='';postData+='item='+escape(chkfrm.item.value)+'&';postData+='gateWay='+escape(chkfrm.gateWay.value)+'&';postData+='cgiPath='+escape(chkfrm.cgiPath.value)+'&';postData+='Billing_Country='+escape(chkfrm.Billing_Country.value)+'&';if(chkfrm.Delivery_Country){;postData+='Delivery_Country='+escape(chkfrm.Delivery_Country.value)+'&';};postData+='Postage='+escape(chkfrm.Postage.value)+'&';postData+='Type='+escape(chkfrm.Type.value)+'&';postData+='Exec2='+escape(chkfrm.Exec2.value)+'&';postData+='Exec3='+escape(chkfrm.Exec3.value)+'&';postData+='SubTotal='+escape(chkfrm.SubTotal.value)+'&';postData+='VAT='+escape(chkfrm.VAT.value)+'&';postData+='Total='+escape(chkfrm.Total.value)+'&';postData+='storePath='+escape(chkfrm.storePath.value)+'&';postData+='CurrencyCode='+escape(chkfrm.CurrencyCode.value)+'&';if(chkfrm.VAT_Number){;postData+='VAT_Number='+escape(chkfrm.VAT_Number.value)+'&';postData+='VAT_Number_Check='+escape(chkfrm.VAT_Number_Check.value)+'&';};if(e.allowError==-1){;postData+='debugMode=Y&';};postData+='ProductDiscount='+escape(chkfrm.ProductDiscount.value)+'&';trafReq+='verify order > ';_sendRequest(cgiBin+'e4-vcheck.pl',_OrderVerify,postData);};
function _OrderVerify(req){;_traffic('reading');var retArry=req.responseText.split('^|');var retCode=parseInt(retArry[0]);if(req.responseText.indexOf('diagnostic')!=-1){;var chkfrm=window.document.checkout_form;chkfrm.merchantID.value='suppressed';chkfrm.Password.value='suppressed';chkfrm.pgpKey.value='suppressed';var generator=window.open('','name','height=400,width=500,scrollbars=yes');var arry=document.checkout_form.elements;generator.document.open();generator.document.write('<html><head><title>Popup</title></head><body>[post data]<br>');for (var i in arry){;if(arry[i].name){;generator.document.writeln(i+'=> '+arry[i].name+' = '+arry[i].value+'\n'+'<br>');};};generator.document.write('<p>[vcheck return]<br>');var cells = req.responseText.split('\n');for (var i in cells){;generator.document.writeln(cells[i]+'<br>');};generator.document.write('</body></html>');generator.document.close();return;};if(retCode==0){;document.getElementById('Order_Status').innerHTML=orderVerified;var chkfrm=window.document.checkout_form;chkfrm.merchantID.value=retArry[5];chkfrm.Password.value=retArry[6];chkfrm.pgpKey.value=retArry[7];contOrder_2();}else{;document.getElementById('Order_Status').innerHTML=orderFatal+validateError['e'+parseInt(retCode*-1)];};};
function contOrder_2(){;_progBar('contOrder{}','main:');window.document.checkout_form.target='_top';window.document.checkout_form.action=action;if('|pacRaven|MoneyBooker|ssl|dataCash|dataCashCv2|Cybersource|paypalPro|'.indexOf('|'+document.checkout_form.gateWay.value+'|')!=-1){;window.document.checkout_form.action=action;window.document.checkout_form.submit();orderSubmit=true;_orderSubmitted();return;};if(gateSup.indexOf(document.checkout_form.gateWay.value)==-1){;window.document.checkout_form.action=action;window.document.checkout_form.submit();orderSubmit=true;_orderSubmitted();return;};if(document.all&&navigator.userAgent.indexOf('Opera')==-1){;if(e.allowError==-1){;var iframe=document.createElement('<iframe name="iframeSubmit" style="display:block">');var iframe=document.createElement('<iframe name="iframeSubmit" style="" width=600 height=1000>');}else{;var iframe=document.createElement('<iframe name="iframeSubmit" style="display:none">');};document.getElementsByTagName('body')[0].appendChild(iframe);}else{;var iframe = document.createElement("iframe");iframe.setAttribute("name", "iframeSubmit");iframe.setAttribute("style", "visibility:hidden");document.body.appendChild(iframe);};window.document.checkout_form.target='iframeSubmit';window.document.checkout_form.action=action;window.document.checkout_form.submit();orderSubmit=true;_orderSubmitted();};
function _recordIt(field){;_progBar('_recordIt','main:');if(!field.type)return;var val=field.value;if(field.type=='radio'){;val=field.value;};if(field.type.indexOf('select')!=-1){;val=field.selectedIndex;};if(field.type=='checkbox'){;if(field.checked==true){;val='-1';}else{;val='0';};};if(offLine==true)setCookie(field.name,val,'long');if(field.type=='checkbox'){;e['_'+field.name]=val;}else{;e['_'+field.name]=field.value;};if(document.getElementById('save_changes')){;document.getElementById('save_changes').disabled=false;};};
function _recordAll(frmObj){;_progBar('_recordAll','main:');for(count=0;count<frmObj.elements.length;count++){;var field=frmObj.elements[count];var val=field.value;if(field.type=='radio'){;val=field.value;};if(field.type.indexOf('select')!=-1){;val=field.selectedIndex;};if(field.type=='checkbox'){;if(field.checked==true){;val='-1';}else{;val='0';};};if(offLine==true)setCookie(field.name,val,'long');if(field.type=='button'){;}else if(field.type=='checkbox'){;e['_'+field.name]=val;}else{;e['_'+field.name]=field.value;};};if(document.getElementById('save_changes')){;document.getElementById('save_changes').disabled=false;};_writeBasket(escape(e.basket));alert('Your account has been updated');};
function findTax(str,arg){;_progBar('findTax{}','main:');blockSub=false;if(arg==5){;selTax='';if(str.checked==true){;selTax='CHECKED';e.VAT=e.countryTax+e.stateTax;}else{;e.VAT=e.countryTax;};setTimeout("orderRefresh()",1);}else if(arg==4){;if(listArg>=3){;var temp=window.document.checkout_form._DeliveryCity.value.toLowerCase();var temp1=cityName.toLowerCase();if(temp1.indexOf(temp)!=-1&&temp!=''){;alert('City Tax will now be applied to your order.');listArg=4;e.VAT=e.countryTax+e.stateTax+e.countyTax+e.cityTax;setTimeout("orderRefresh()",1);}else{;e.VAT=e.countryTax+e.stateTax+e.countyTax;if(listArg==4){;alert('City Tax no longer applies to your order.');setTimeout("orderRefresh()",1);};listArg=3;};};}else{;var temp;var temp1;if(str==''){;if(arg==6){;temp=e._selCountry2;temp1=e.countrySel2;}else{;temp=e._selCountry;temp1=e.countrySel;};}else{;temp1=str.selectedIndex;temp=str.options[temp1].value.split('|')[0];if(arg!=6){;if(e.execCom!='foundCustomer'){;if(e.locChange==-1){;e._curCode=str.options[temp1].value.split('|')[1];};};};locTyp=str.options[temp1].value.split('|')[2];if(arg==6){;e._delCountry=temp;};};if(arg==1){;applyDelTax=false;};if(arg==6){;e.countrySel2=temp1;e._selCountry2=temp;if(temp==defaultLoc){;applyDelTax=true;};};if(arg==1||applyDelTax==true){;if(arg==1){;e.countrySel=temp1;e._selCountry=temp;};if(temp.indexOf(countryName)!=-1&&stateName!=''){;listArg=1;e.VAT=e.countryTax;optFunc(2,1);}else{;selState='';selCounty='';opt[2]='';opt[3]='';stateSel=0;countySel=0;selTax='';var pos=globalTax.indexOf(temp);if(pos==''&&pos!=0)pos=-1;if(pos!=-1){;var newTax=globalTax.substring(pos);e.VAT=parseFloat(newTax.substring(newTax.indexOf(':')+1,newTax.indexOf('~')));}else{;(countryName.indexOf(temp)!=-1)?e.VAT=e.countryTax:e.VAT=defaultTax;};};}else if(arg==2){;stateSel=temp1;selState=temp;if(temp.indexOf(stateName)!=-1){;listArg=2;e.VAT=e.countryTax+e.stateTax;if(countyName!='')optFunc(3,1);}else{;listArg=1;e.VAT=e.countryTax;selCounty='';opt[3]='';selTax='';countySel=0;};}else if(arg!=6){;countySel=temp1;selCounty=temp;if(temp.indexOf(countyName)!=-1){;listArg=3;e['_'+'Invoice_City']='';e.VAT=e.countryTax+e.stateTax+e.countyTax;}else{;listArg=2;e.VAT=e.countryTax+e.stateTax;};};};if(e._selCountry==''){;e.VAT=defaultTax;blockSub=true;};if(arg==6){;if(temp!=defaultLoc){;e.VAT=e.prevVAT;}else{;e.VAT=e.countryTax;};};if(arg!=6){;e.prevVAT=e.VAT;};};
function _registerInDatabase(){;_progBar('_registerInDatabase{}','main:');var postData='';postData+='do=search_two&';postData+='search_term='+register.email+'&';postData+='type=phrase&';postData+='boolean=and&';postData+='field=ID&';postData+='sort_field=ID&';_progBar('<font color=red>_registerInDatabase','main:request chars: '+Math.floor((postData.length*4)/1000)+'Kb');trafReq+='register in database > ';_sendRequest(cgiBin+'e4-database.pl',_init_2,postData);};
function _voucherLogin(frm){;if(frm.profileID.value=='')return;if(offLine==false){;_getVoucher(frm.profilePassword.value,frm.profileID.value);};};
function _getVoucher(un,pw){;_progBar('<font color=red>_getVoucher','main:');var html=window.document,strP;if(isnotN3==false)pagesDir=storePath;if(exception1==-1&&storePrefix==''){;strP=storePath.substring(1);}else{;strP=storePath;};strP=storePrefix+strP;e.execReq='privilege';var postData='';postData+='exec='+e.execReq+'&';postData+='do=login&';postData+='profilePassword='+un+'&';postData+='profileID='+pw+'&';postData+='cgiPath='+cgiBin+'&';postData+='storePath='+strP+'&';trafReq+='get voucher > ';_sendRequest(cgiBin+'e4-profiles.pl',_voucherResponse,postData);};
function _valuePair(str,val){;_progBar('_valuePair','main:');if(str.indexOf(val)==-1)return '';var arr1=str.split('_'+val+'=')[1];var arr2=arr1.split('_')[0];return arr2;};
function _voucherResponse(req){;_traffic('reading');var tmp=req.responseText;tmp=repC(tmp,'<SCRIPT>','');tmp=repC(tmp,'</SCRIPT>','');var useOnce=_valuePair(tmp,'useOnce');var profileR=_valuePair(tmp,'profileID');if(useOnce=='yes'){;if(e.loggedIn==0){;alert('This voucher can only be redeemed when logged into this site');return;};if(e.VoucherLog.indexOf(profileR+';')!=-1){;alert('This voucher has been redeemed already');return;};};if(_isExpired(tmp)==true){;alert('This coupon is not valid');return;}else{;eval(tmp);};e._voucherProfile=profileRef;if(e._voucherProfile!=''){;if(e.privilegeLog.indexOf(privilegeLog)==-1){;if(privilegeLog)e.privilegeLog+=privilegeLog;};}else{;};if(e.profileRef=='')e.profileRef='empty';_progBar('<font color=green>_voucherResponse','main:');_controlbar();};
function _privilegeResponse(req){;_traffic('reading');_progBar('<font color=red>_privilegeResponse','main:');var tmp=req.responseText;tmp=repC(tmp,'<SCRIPT>','');tmp=repC(tmp,'</SCRIPT>','');var ac=_valuePair(tmp,'active');var rp=_valuePair(tmp,'response');if(ac=='false'){;e.profileRef='empty';return;};if(rp!=''){;if(msg11=='')return;if(msg11.indexOf('/*script*/')!=-1){;eval(unescape(msg11));}else{;alert(repC(unescape(msg11),'<%response%>',rp));};return;};if(msg4!=''){;if(msg4.indexOf('/*script*/')!=-1){;eval(unescape(msg4));}else{;alert(msg4);};};var privilegeLog='';var psn=tmp.split('/*PERSONAL*/')[1];if(_isExpired(tmp)==true){;e.profileRef='empty';eval(psn);var msg=_valuePair(tmp,'msg1');if(msg!='')alert(msg);if(psn.length>5)_loadPersonal();return;}else{;var msg2=_valuePair(tmp,'msg2');if(msg2!='')alert(msg2);eval(tmp);if(psn.length>5)_loadPersonal();};e.profileRef=profileRef;if(e.isVoucher==-1){;e._voucherProfile=e.profileRef;e.isVoucher=0;if(e.privilegeLog.indexOf(e._voucherProfile)==-1){;e.privilegeLog+=e._voucherProfile;};};if(e.profileRef!=''){;if(e.privilegeLog.indexOf(privilegeLog)==-1){;e.privilegeLog+=privilegeLog;};}else{;};if(e.profileRef=='')e.profileRef='empty';_progBar('<font color=green>_privilegeResponse','main:');_controlbar();};
function _privilegeLogin(frm){;if(offLine==false){;e.profilePassword=frm.profilePassword.value;e.ProfileReference=frm.profileID.value;_getPrivilege();};};
function _resetBasketTotals(){;_progBar('_resetBasketTotals{','main:');e._ST=0;e._DC=0;e._STVT=0;e._TVAT=0;e._TOV=0;e._TNI=0;e._TWI=0;e._TNID=0;e._TWID=0;e._VT=0;};
function _basketMatch(thisBasket){;_progBar('_basketMatch{','main:check for abandoned cart');if(thisBasket!=''&&thisBasket!='undefined'){;var srch4='Credit Card Captured[|]_BasketID[=]'+e._BasketID+'[|]';if(unescape(e.BasketLog).indexOf(srch4)!=-1){;dte=new Date();e.CurrentDate=Date.parse(dte);e._BasketID=e.CurrentDate;if(e.execBsk=='refreshRecord'){;_clearOrder(true);};_writeBasket(e.basket);}else{;if(e.execBsk=='refreshRecord'){;dte=new Date();e.CurrentDate=Date.parse(dte);e._BasketID=e.CurrentDate;}else{;if(e.cartMode!='vendorAccess'){;if(confirm('You have an abandoned cart. Click OK to keep it')){;e.basket=e.basket+'[-]'+thisBasket;};_writeBasket(e.basket);};};};};_progBar('_basketMatch{}','main:');};
function _readProductLog(str,template,arg){;_progBar('_readProductLog{}','main:');var tmp2='';var prnt='';var arry=str.split('[-]');var arry2='';for (var i in arry){;if(arry[i]){;arry2=arry[i].split('~');if(arry2.length>1){;tmp2=template;tmp2=repC(tmp2,'%Path%',arry2[0].substring(1));tmp2=repC(tmp2,'%Image%',arry2[arry2.length-4]);tmp2=repC(tmp2,'%Name%',arry2[35]);tmp2=repC(tmp2,'%Description%',arry[i].split('*')[2].split('|')[0]);tmp2=repC(tmp2,'%Code%',arry[i].split('*')[2].split('|')[1]);tmp2=repC(tmp2,'%Qty%',arry2[arry2.length-5]);prnt+=tmp2;}else{;alert('The following information was found at the end of the order history string\n\n'+arry[i]);};};};return prnt;};
function _registerIt(frm,str2,str3){;_progBar('_registerIt{}','main:');if(e.loggedIn==-1){;alert('You are currently logged in as another user! Logout first if you wish to register a new account');return;};if(_checkEmailAddress(frm.Email.value)==false){;alert('Your must enter a valid Email Address');return;};if(frm.Your_Name.value==''){;alert('Your must a name');return;};if(frm.Password.value==''){;alert('Your must enter a Password');return;};if(frm.Password.value!=frm.Confirm.value){;alert('Your confirmation password does not match your Password');return;};e.execReq='register';register.email=frm.Email.value;register.password=frm.Password.value;register.yourName=frm.Your_Name.value;if(offLine==false){;_registerInDatabase();};};
function _recordSessionField(field){;e['_'+field.name]=field.value;};
function _popEmailTemp(frm){;var tmp=emailFriendTemp;tmp=repC(tmp,'<!--Message-->',frm.Mail_Message.value);tmp=repC(tmp,'<!--Product_List-->',e.MailProductLink);return tmp;};
function _previewEmail(frm){;document.write('<input type="button" value="Back" onclick="history.back()"><hr>'+_popEmailTemp(frm));};
function _clearProducts(){;e.MailProductLink='';e.MailProductDesc='';e._Subject_Line='';e._Mail_Message='';location.reload();};
function _tellFriendReq(frm){;_progBar('_tellFriendReq{}','main:');location.href=tellFriendPage;var img='L'+frm.name.substring(3)+'img';var tmp=emailFriendRowTemp;tmp=repC(tmp,'%Image%',e.MailProductImg);tmp=repC(tmp,'%Link%',location.href);tmp=repC(tmp,'%Description%',frm.description.value);tmp=repC(tmp,'%Price%',frm.price.value);e.MailProductLink+=tmp;e.MailProductDesc+='[ '+frm.description.value+' ] ';};
function _tellFriend(frm){;_progBar('_tellFriend{}','main:');var tmp='~'+frm.Your_Name.value+'~'+frm.Your_Email.value+'~'+frm.Friends_Name.value+'~'+frm.Friends_Email.value+'~'+frm.Subject_Line.value+'~'+frm.Mail_Message.value+'~';if(tmp.indexOf('~~')!=-1){;alert('Some fields have been left blank, please complete');return;};if(_checkEmailAddress(frm.Your_Email.value)==false||_checkEmailAddress(frm.Friends_Email.value)==false){;alert('Your must enter a valid Email Address');return;};_progBar('<font color=red>_tellFriend','main:');e._Your_Name=frm.Your_Name.value;e._Your_Email=frm.Your_Email.value;e._Friends_Name=frm.Friends_Name.value;e._Friends_Email=frm.Friends_Email.value;e._Subject_Line=frm.Subject_Line.value;e._Mail_Message=frm.Mail_Message.value;e.execReq='tellFriend';var postData='';postData+='exec='+e.execReq+'&';postData+='do=tellFriend&';postData+='Your_Name='+frm.Your_Name.value+'&';postData+='Your_Email='+frm.Your_Email.value+'&';postData+='Friends_Name='+frm.Friends_Name.value+'&';postData+='Friends_Email='+frm.Friends_Email.value+'&';postData+='Subject_Line='+frm.Subject_Line.value+'&';postData+='Message='+_popEmailTemp(frm)+'&';trafReq+='tell a friend > ';_sendRequest(cgiBin+'e4-database.pl',_tellFriendResponse,postData);};
function _tellFriendResponse(req){;_traffic('reading');_progBar('<font color=green>_tellFriendResponse','main:');e._Subject_Line='';e._Mail_Message='';e.MailProductDesc='';e.MailProductLink='';if(offLine==false)_writeBasket(escape(e.basket));alert('Tell a Friend email has been sent');window.history.back();};
function _enquireReq(frm){;location.href=enquiryPage;e.MailProductLink+=frm.description.value+'\n'+location.href+'\n\n';e.MailProductDesc+='[ '+frm.description.value+' ] ';};
function _enquiry(frm){;var tmp='~'+frm.Your_Name.value+'~'+frm.Your_Email.value+'~'+frm.Subject_Line.value+'~'+frm.Mail_Message.value+'~';if(tmp.indexOf('~~')!=-1){;alert('Some fields have been left blank, please complete');return;};if(_checkEmailAddress(frm.Your_Email.value)==false){;alert('Your must enter a valid Email Address');return;};_progBar('<font color=red>_enquiry','main:');e.execReq='enquiry';var postData='';postData+='exec='+e.execReq+'&';postData+='do=enquiry&';postData+='Your_Name='+frm.Your_Name.value+'&';postData+='Your_Email='+frm.Your_Email.value+'&';postData+='Subject_Line='+frm.Subject_Line.value+'&';postData+='Friends_Email='+gCAdd.split('|')[4]+'&';postData+='Message='+frm.Mail_Message.value+'\n\n'+e.MailProductLink+'&';trafReq+='enquiry > ';_sendRequest(cgiBin+'e4-database.pl',_enquiryResponse,postData);};
function _enquiryResponse(req){;_traffic('reading');_progBar('<font color=green>_enquiryResponse','main:');e._Subject_Line='';e._Mail_Message='';e.MailProductDesc='';e.MailProductLink='';if(offLine==false)_writeBasket(escape(e.basket));alert('Your enquiry email has been sent');};
function resetForm(){;_resetForm();};
function recordIt(field){;_recordIt(field);};
function _wishList(){;_progBar('_wishList{}','main:');alert('in construction');};
function _purchasedProducts(){;_progBar('_purchasedProducts{}','main:');alert('in construction');};
function _savedBaskets(){;_progBar('_savedBaskets{}','main:');alert('in construction');};
function _searchExistsInDatabase(){;var postData='';postData+='do=search_two&';postData+='search_term='+e._Email_Address+'&';postData+='type=phrase&';postData+='boolean=and&';postData+='field=ID&';postData+='sort_field=ID&';_progBar('<font color=red>_searchExistsInDatabase','main:request chars: '+Math.floor((postData.length*4)/1000)+'Kb');trafReq+='search email in database > ';_sendRequest(cgiBin+'e4-database.pl',_autoLogin,postData);};
function replaceE(str){;_progBar('replaceE{}','main:');if(allowF){;if(str!=null){;str=str.split('<%minOrderValue%>').join(Val(minOrderVal,baseChar,1));str=str.split('<%maxOrderValue%>').join(Val(maxOrderVal,baseChar,1));str=str.split('<%trigger%>').join(Val(discTrig,baseChar,1));str=str.split('<%selectedProduct%>').join(selI);str=str.split('<%currentStock%>').join(curS);str=str.split('<%minQty%>').join(orgQ);str=str.split('<%maxQty%>').join(maxQ);str=str.split('<%discount%>').join(discD);str=str.split('<%keyword%>').join(keyW);str=str.split('<!--Total_Order_Value-->').join(Val(e._TOV,e.currencyChar,2,'Total_Order_Value'));str=str.split('<!--Total_Tax-->').join(Val(e._TVAT,e.currencyChar,2));str=str.split('<!--Shipment_Charge-->').join(Val(e._DC,e.currencyChar,2));str=str.split('<!--Sub_Total-->').join(Val(e._ST,e.currencyChar,2));str=str.split('<!--Total_Items-->').join(e._TNID);str=str.split('<!--Total_Weight-->').join(e._TWID);return str;}else{;return '';};}else{;return str;};};
function _setupOrder(){;var aForm=window.document.checkout_form;e.profilePassword=e._Email_Address;e.profileID=e._BasketID;e.User_Name=e.profilePassword;e.User_Password=e.profileID;e.sessionID=e.profilePassword+'|'+e.profileID;if(e.ProfileReference=='')e.ProfileReference=e.profileID;if(isNaN(e.ProfileReference)==true){;e.ProfileReference=e.CurrentDate;};var sendStr=profileRef+'~'+e.profilePassword+'~'+e.ProfileReference+'~'+profileExec+'~'+window.location+'?sessionID='+e.sessionID+'&basketID='+e._BasketID;aForm.elements['CustomerID'].value=sendStr;aForm.elements['LoginID'].value=e.sessionID+'|';aForm.elements['CheckoutConf'].value=myAccountPage;aForm.elements['CustomerID'].value=profileRef+'~'+e.profilePassword+'~'+e.profileID+'~'+profileExec+'~'+window.location+'?sessionID='+e.sessionID+'&basketID='+e._BasketID;};
function _autoLogin(req){;_traffic('reading');if(req.responseText!='No Matches Found'){;_progBar('<font color=green>_autoLogin','main:already registered this email address');};_progBar('<font color=green>_autoLogin','main:no matches with email so create new record');_setupOrder();e.execBsk='refreshRecord';e.execReq='submitOrder';e.BasketLog+=escape(_checkoutCompile()+'[^]'+e.basket+'[^]');if(offLine==false)_writeBasket(escape(e.basket));};
function _contOrder(){;_progBar('_contOrder{}','main:');e.trackingID=e._BasketID;if(isNaN(e.sessionID)==false){;_setupOrder();};e.execBsk='refreshRecord';e.execReq='submitOrder';e.BasketLog+=escape(_checkoutCompile()+'[^]'+e.basket+'[^]');if(offLine==false)_writeBasket(escape(e.basket));};
function _rememberMe(field){;_progBar('_rememberMe{','main:');if(field.value=='false'){;delCookie();}else{;setCookie('sessionID',e.sessionID,'long');};};
function _checkEmailAddress(email) {;var emailFilter= /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*\.(\w{2}|(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum))$/;if (!(emailFilter.test(email))) {;return false;}else{;return true;};};
function _updatePassword(frm){;_progBar('_updatePassword{}','main:');if(frm.Original_User_Password.value==''&&frm.New_User_Password.value==''&&frm.Confirm_User_Password.value==''){;_recordAll(frm);return;};if(frm.New_User_Password.value==''){;alert('Your must enter a Password');return;};if(frm.New_User_Password.value!=frm.Confirm_User_Password.value){;alert('Your confirmation password does not match your Password');return;};e.execReq='updatePassword';_modifyPasswordInDatabase(frm.New_User_Password.value);};
function _modifyPasswordInDatabase(psw){;var postData='';postData+='exec=updatePassword&';postData+='do=updatePassword&';postData+='key='+e.sessionID+'|&';postData+='Email='+e.profilePassword+'&';postData+='Password='+psw+'&';_progBar('<font color=red>_modifyPasswordInDatabase','main:request chars: '+Math.floor((postData.length*4)/1000)+'Kb');trafReq+='modify password in database > ';_sendRequest(cgiBin+'e4-database.pl',_showDatabase,postData);};
function _updateOrderStatus(frm){;_progBar('<font color=red>_updateOrderStatus','main:');e.execReq='orderStatus';var postData='';postData+='exec='+e.execReq+'&';postData+='do=updateOrderStatus&';postData+='key='+frm.User_Name.value+'|'+frm.User_Password.value+'|&';postData+='BasketID='+frm.BasketID.value+'&';postData+='OrderStatus='+frm.Order_Status[frm.Order_Status.selectedIndex].value+'&';postData+='ViewLink='+myAccountPage+'?sessionID='+frm.User_Name.value;trafReq+='update order status > ';_sendRequest(cgiBin+'e4-database.pl',_orderStatusResults,postData);};
function _readSearch(searchStr){;var postData='';postData+='exec=readSearch&';postData+='do=Search&';postData+='cgiPath='+cgiBin+'&';postData+='storePath='+storePath+'&';postData+='sessionID='+e.sessionID+'&';postData+='searchFor='+searchStr+'&';document.getElementById('search_results').innerHTML='Search for...' + searchStr;_progBar('<font color=red>_readSearch','main:request chars: '+Math.floor((postData.length*4)/1000)+'Kb');trafReq+='read search results > ';_sendRequest(cgiBin+'e4-database.pl',_showSearch,postData);};
function _readTime(){;var postData='';postData+='exec=readTime&';postData+='do=Time&';postData+='cgiPath='+cgiBin+'&';postData+='storePath='+storePath+'&';postData+='sessionID='+e.sessionID+'&';_progBar('<font color=red>_readTime','main:request chars: '+Math.floor((postData.length*4)/1000)+'Kb');trafReq+='read server time > ';_sendRequest(cgiBin+'e4-database.pl',_showTime,postData);};
function _orderStatusResults(req){;_traffic('reading');_progBar('<font color=green>_orderStatusResults','main:');_readBasket();alert('Order Status Updated');_addressDetails();};
function _showTime(req){;_traffic('reading');_progBar('<font color=green>_showTime','main:');document.getElementById('_test').innerHTML=req.responseText;};
function _resetForm(){;_progBar('_resetForm','main:');var aForm=window.document.checkout_form;aForm.reset();for(cnt=0;cnt<aForm.elements.length;cnt++){;aElem=aForm.elements[cnt];if(e['_'+aForm.elements[cnt].name]!=null){;if(aElem.type=='checkbox'){;e['_'+aForm.elements[cnt].name]='';}else{;e['_'+aForm.elements[cnt].name]='';};};};if(offLine==false)_writeBasket(escape(e.basket));window.location.href=e.checkout;};
function _loadContent(){;_progBar('_loadContent{}','main:');if(window.ActiveXObject){;xmlDoc = new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async=false;xmlDoc.load("_content.xml");return xmlDoc.getElementsByTagName("data")[0].firstChild.nodeValue;}else if (document.implementation && document.implementation.createDocument){;xmlDoc= document.implementation.createDocument("","",null);xmlDoc.load("_content.xml");xmlDoc.onload=_getmessage;}else{;alert('Your browser cannot handle this script');};};
function _getmessage(){;_progBar('_getmessage{}','main:');document.getElementById('_test').innerHTML=xmlDoc.getElementsByTagName("data")[0].firstChild.nodeValue;};
function _postToBasket(frm){;_progBar('_postToBasket{}','main:');if(offLine==true){;e.basketData=e.basketData+'[-]'+frm.elements[0].value;basketData=e.basketData;_controlbar();}else{;_readBasket();basketData=basketData+'[-]'+frm.elements[0].value;_writeBasket(basketData);};};
function _loadXML(xmlFile) {;_progBar('_loadXML{}','main:');xmlDoc.async="false";xmlDoc.onreadystatechange=_verify;xmlDoc.load(xmlFile);};
function _verify() {;_progBar('_verify{}','main:');if(xmlDoc.readyState!=4);return false;};
function _loadXMLDoc(url){;_progBar('_loadXMLDoc{}','main:');xmlhttp=null;if (window.XMLHttpRequest){;xmlhttp=new XMLHttpRequest();}else if (window.ActiveXObject){;xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");};if (xmlhttp!=null){;xmlhttp.onreadystatechange=_state_Change;xmlhttp.open("GET",url,true);xmlhttp.send(null);}else{;alert("Your browser does not support XMLHTTP.");};};
function _state_Change(){;_progBar('_state_Change{}','main:');if (xmlhttp.readyState==4){;if (xmlhttp.status==200){;e.xmltext=xmlhttp.responseText;}else{;alert("Problem retrieving data:" + xmlhttp.statusText);};};};
function _courier_init(){;_progBar('_courier_init{}','main:');e.classVal=classVal.split('~');e.typeCalc=classVal[0];e.applyShip=false;e.shipFunc+="</SELECT>";e.shipFunc+="";e.blockCourier=0;};
function record(field){;_progBar('record{}','main:');recordIt(field);};
function delCookie(){;_progBar('delCookie{}','main:');if(document.cookie!=''){;var thisCookie=strip(document.cookie+';',';');expireDate=new Date;expireDate.setYear(expireDate.getYear()-1);for(i=0;i<globCnt;i++){;var cookieName=thisCookie[i].substring(0,thisCookie[i].indexOf('='));document.cookie=cookieName+'=;expires='+expireDate.toGMTString();};};};
function tempObj(){;this.length=0;};var panelObj=new tempObj();var onAddBasket='';var httpsPath='';var searchPage='';var checkoutPage='';/*START - STORE INJECTED VARIABLES*/
var menuFrm=0;var basketFrm=0;var toolbarFrm=0;var scriptVer='3.0';var erolVer=3.6;var erolHome='piggi-home-1-0.html';var allowTax=0;var allowVatNumber=0;var erolTag="-PiggiClothing";var countryName="United Kingdom";var stateName="";var countyName="";var cityName="";var countryTax=17.5;var stateTax=0;var countyTax=0;var cityTax=0;var defaultTax=0;var shipmentTax=0;var defaultShip='z2843.html';var defaultLoc='United Kingdom';var globalShipment="United States of America:z1536.html~Belgium:z1535.html~Canada:z1536.html~Denmark:z1535.html~France:z1535.html~Germany:z1535.html~Hong Kong:z1536.html~Ireland (Rep. of):z1535.html~Italy:z1535.html~Netherlands:z1535.html~New Zealand:z1536.html~Spain:z1535.html~";var defaultZone='z2843.html';var worldCountries="Australia|AUD|BDX~Austria|ATS|BDX~Belgium|EUR|BDX~Canada|CAD|BDX~Cyprus|CYP|BDX~Denmark|DKK|BDX~Finland|FIM|BDX~France|EUR|BDX~Germany|EUR|BDX~Gibraltar|GIP|BDX~Hong Kong|HKD|BDX~Iceland|ISK|BDX~Ireland (Rep. of)|EUR|BDX~Italy|EUR|BDX~Luxembourg|LUF|BDX~Malta|MTL|BDX~Netherlands|EUR|BDX~New Zealand|NZD|BDX~Norway|NOK|BDX~Poland|PLN|BDX~Portugal|PTE|BDX~Spain|EUR|BDX~Sweden|SEK|BDX~Switzerland|CHF|BDX~United Kingdom|GBP|BDX~United States of America|USD|BDX~";var countrySel=25;var loadCurCode='GBP';var states="";var county="";var taxGroups="(default):17.5:0:0:0:~Zero_Rate:0:0:0:0:~n/a:0:0:0:0:~Books:0:0:0:0:~";var globalTax="Austria:17.5~Belgium:17.5~Denmark:17.5~France:17.5~Finland:17.5~Germany:17.5~Greece:17.5~Ireland (Rep. of):17.5~Italy:17.5~Luxembourg:17.5~Netherlands:17.5~Portugal:17.5~Spain:17.5~Sweden:17.5~";var currencyChar='£';var currencyChar2='';var currencyCode='GBP';var currencyType='0';var jumpPge='';var bgColorOrder='White';var table1='WhiteSmoke';var table2='OldLace';var table3='WhiteSmoke';var buyStr="images/Add-Basket-Button.gif:images/Add-Basket-Button-Roll.gif:width='94' height='21':";var contStr="images/buttons/button_continueshopping_off.gif:images/buttons/button_continueshopping_on.gif:width='93' height='21':";var infoStr="images/buttons/button_info_off.gif:images/buttons/button_info_on.gif:width='34' height='21':";var backStr="images/buttons/button_info_off.gif:images/buttons/button_info_on.gif:width='34' height='21':";var backOrdStr="images/buttons/button_continueshopping_off.gif:images/buttons/button_continueshopping_on.gif:width='93' height='21':";var clrOrdStr="images/buttons/button_clearorder_off.gif:images/buttons/button_clearorder_on.gif:width='66' height='21':";var clrFrmStr="images/buttons/button_clearform_off.gif:images/buttons/button_clearform_on.gif:width='66' height='21':";var prtFrmStr="images/buttons/button_printform_off.gif:images/buttons/button_printform_on.gif:width='66' height='21':";var sndOrdStr="images/buttons/button_sendorder_off.gif:images/buttons/button_sendorder_on.gif:width='66' height='21':";var label1="%3CFONT SIZE=1 FACE=Verdana,Arial,Helvetica,Sans Serif%3E%3CB%3ESub-total%3C/B%3E";var label2="Sub Total";var label3="Shipment";var label4="Sub Total (incl. shipment)";var label5="Total VAT";var label6="%3CB%3ENo Items in your Cart%3C/B%3E";var label7="%3CB%3ETotal%3C/B%3E";var label8="%3Clabel for=%22VAT_Number%22%3EVAT Number%3C/label%3E";var label9="%3Clabel for=%22VAT_Number_Check%22%3EI confirm this is my valid VAT Number%3C/label%3E";var label10="VAT Exempt";var label11="Post Code";var label12="Country";var label13="%3CBR%3EDelivery Name & Address (if different)";var label14="Town & County";var label15="Post Code";var label16="Country";var label17="Discount";var label18="Email Address";var label19="Phone Number";var label20="Fax Number";var label21="I confirm that this number is my valid VAT Number and I am exempt from VAT charges";var label22="Your VAT Number has been withdrawn and VAT will be charged where applicable";var label23="%3CB%3E%3CFONT COLOR=#999999 SIZE=4 FACE=Arial,Helvetica,Sans Serif%3ESelect your location%3C/FONT%3E%3C/B%3E ";var label24="%3CB%3E%3CFONT COLOR=#999999 SIZE=4 FACE=Arial,Helvetica,Sans Serif%3ESelect a postage method%3C/FONT%3E%3C/B%3E";var label25="%3CB%3E%3CFONT COLOR=#999999 SIZE=4 FACE=Arial,Helvetica,Sans Serif%3ESelect your preferred currency%3C/FONT%3E%3C/B%3E";var label26="%3CB%3E%3CFONT COLOR=#999999 SIZE=4 FACE=Arial,Helvetica,Sans Serif%3ESelect your payment method%3C/FONT%3E%3C/B%3E";var label27="%3CB%3E%3CFONT COLOR=#999999 SIZE=4 FACE=Arial,Helvetica,Sans Serif%3ESubmit your Order%3C/FONT%3E%3C/B%3E";var label28="%3CFONT SIZE=1 FACE=Verdana,Arial,Helvetica,Sans Serif%3E%3CB%3EDelete%3C/B%3E";var label29="%3CFONT SIZE=1 FACE=Verdana,Arial,Helvetica,Sans Serif%3E%3CB%3EItem%3C/B%3E";var label30="%3CFONT SIZE=1 FACE=Verdana,Arial,Helvetica,Sans Serif%3E%3CB%3EDescription%3C/B%3E";var label31="%3CFONT SIZE=1 FACE=Verdana,Arial,Helvetica,Sans Serif%3E%3CB%3ECode%3C/B%3E";var label32="%3CFONT SIZE=1 FACE=Verdana,Arial,Helvetica,Sans Serif%3E%3CB%3EQty%3C/B%3E";var label33="Recipient County";var label34="Recipient State";var label35="%3CFONT FACE=Verdana,Arial,Helvetica,Sans Serif SIZE=1%3ECalculating Order ...%3C/FONT%3E";var label36="*Product Discounts";var label37="%3CB%3E%3CFONT COLOR=red%3E%3C%25discount%25%3E Off for orders over %3C%25trigger%25%3E%3C/FONT%3E%3C/B%3E";var label38="%3CB%3E%3CFONT COLOR=red%3EFree%3C/FONT%3E%3C/B%3E";var label39="Retrieving live exchange rate data - please wait";var label41="%3CTABLE HEIGHT=100%25 WIDTH=100%25%3E%3CTR ALIGN=center%3E%3CTD ALIGN=center%3E%3CFONT SIZE=1 FACE=Verdana,Arial,Helvetica,Sans Serif%3ESearching for ...%3CFONT COLOR=red%3E%3C%25keyword%25%3E%3C/FONT%3E%3C/FONT%3E%3C/TD%3E%3C/TR%3E%3C/TABLE%3E";var label44="Select your Location";var label45="Same as above";var msg1="You will now be transferred across to our Secure Server";var msg2="Delete this Piggi product from the order form?";var msg3="Clear all orders from the order form?";var msg4="Your login was successful";var msg5="Please select a quantity";var msg6="Please complete all fields highlighted in red\n\n%3C%25requiredFields%25%3E Required field(s) left blank.";var msg7="Please select all required options for this product";var msg8="Sorry, this product is currently out of stock.";var msg9="This Piggi product has been added to your basket";var msg10="We can only accept orders between %3C%25minOrderValue%25%3E and %3C%25maxOrderValue%25%3E";var msg11="Sorry! Your login failed";var msg12="Live exchange rates are not available offline. Static rates will be applied where applicable.";var msg13="We cannot except deliveries to this country. Please choose another delivery country.";var msg14="We cannot except Credit Card payments from this country. Please choose another payment method.";var pageFont="";var basketFont="<FONT SIZE='7' FACE='Verdana,Arial,Helvetica,Sans Serif' COLOR='Aqua'>";var bskAlign="right";var panelFont="";var backToCol="";var priceStyle="";var costStyle="";var shipStyle="";var disStyle="";var itemFont="";var oFont1='';var oFont2='';var oFont3='';var oFont4='';;var textColorOrder='';var tableFont1='Black';var tableHilite='White';var bgColorToolBar='White';var bgColorBasket='White';var bgBannerAd='';var basketTab='';var action='https://www.securecentral.co.uk/cgi-bin/v6_0/e3s-main.cgi';;var gateWay="<select class='Payment_Method' name='gateWay' id='gateWay' size='1' onchange='gateSel(this);record(this)'><option value='protx|https://www.securecentral.co.uk/cgi-bin/v6_0/e3s-main.cgi|piggi|||||'>Credit or Debit Card</option><option value='Cheque or Cash'>Cheque or Cash</option></SELECT>";var gateSup='ssl;worldPay;worldPayJunior;secureTrading;dataCash;netBanx;ePDQ;secPay;protx;noChex;2Checkout;payPal;dataCashCv2;hsbc;metaCharge;Cybersource;paypalPro;paypalProExpress;erolPay2;goPay;payOffline;MoneyBooker;pacRaven;';var doVerify=0;var recipient='piggi@piggi.com';var recipient2='philip.taylor@ranplc.co.uk';var emailPage='';var customerMail='piggiclothing/protx_customer_email.txt';var vendorMail='piggiclothing/protx_vendor_email.txt';var subject='Order for Piggi Goods';var orderAsPop=0;var WPSpecial=0;var shopID='1041278473';var isDisc=0;var minOrderVal='';var maxOrderVal='';var submitMes="";var extraField1='';var extraField2='';var extraField3='';var extraField4='How did you find out about Piggi?';var extraField5='';var fieldType1='';var fieldType2='';var fieldType3='';var fieldType4='Text';var fieldType5='';var shipFunc='';var panelImg='';var toolbarImg='';var cardBar='.';var Password='';var merchantID='piggi';var securePage='';var confirmIt='';var pgpKey='';var rejectIt='';var storePath='/';var cgiBin='/cgi-bin/1041278473/6_5021/';var srvMsg='';var gatewayBck='';var gCAdd='||||||';var ultraFast=0;var exception1=0;var storePrefix='';var orderBgImage='';var orderHeader="%3Ctable border=0 cellspacing=13%3E  %3Ctr%3E%3Ctd%3E %3CA HREF=JavaScript%3Avar var show(1,0,0) onmouseover=document.B2951471.src=%27images/Piggi-Logo-Header-Button.gif%27 onmouseout=document.B2951471.src=%27images/Piggi-Logo-Header-Button.gif%27%3E%3CIMG ALIGN=absmiddle BORDER=0 NAME=%27B2951471%27 SRC=%27images/Piggi-Logo-Header-Button.gif%27 WIDTH=%27180%27 HEIGHT=%2760%27 VSPACE=%270%27 HSPACE=%270%27%3E%3C/A%3E%3CSCRIPT%3Evar img=new Image();img.src=%27%27%3C/SCRIPT%3E  %3C/td%3E  %3Ctd%3E   %3CIMG SRC=%27images/Top-Banner.gif%27 WIDTH=%27280%27 HEIGHT=%2760%27  BORDER=0%3E  %3C/td%3E%3Ctd%3E   %3CA HREF=Javascript%3Avar var orderFlag=true;var var preOrder() onmouseover=document.B9619213.src=%27images/View_Basket.gif%27 onmouseout=document.B9619213.src=%27images/View_Basket.gif%27%3E%3CIMG ALIGN=absmiddle BORDER=0 NAME=%27B9619213%27 SRC=%27images/View_Basket.gif%27 WIDTH=%27128%27 HEIGHT=%2728%27 VSPACE=%270%27 HSPACE=%270%27%3E%3C/A%3E%3CSCRIPT%3Evar img=new Image();img.src=%27%27%3C/SCRIPT%3E  %3C/td%3E%3Ctd%3E   %3CA HREF=Javascript%3Avar var orderFlag=true;var var preOrder() onmouseover=document.B2602742.src=%27images/Checkout.gif%27 onmouseout=document.B2602742.src=%27images/Checkout.gif%27%3E%3CIMG ALIGN=absmiddle BORDER=0 NAME=%27B2602742%27 SRC=%27images/Checkout.gif%27 WIDTH=%2798%27 HEIGHT=%2728%27 VSPACE=%270%27 HSPACE=%270%27%3E%3C/A%3E%3CSCRIPT%3Evar img=new Image();img.src=%27%27%3C/SCRIPT%3E  %3C/td%3E  %3C/tr%3E %3C/table%3E";var orderFooter="";var orderCss="";var orderScript="";var orderVbScript="";var noThumb=0;var noEcom=0;var dispSearch=0;var panelBorder=0;var searchEnable=0;var supBsk=-1;var showBanner=-1;var autoOrder=0;var altTwist=0;var showText=-1;var noBilling=0;var noTax=0;var noCurrency=0;var noGateway=0;var noTotals=0;var pageWidth='100%';var menuWidth='100%';var toolbarWidth='100%';var orderNotes="%3CFONT FACE=Arial,Helvetica,Sans Serif SIZE=4 COLOR=dark red%3E%3CB%3EAny Problems Ordering?%3C/B%3E%3C/FONT%3E%3CBR%3E %3CBR%3E %3CFONT SIZE=1 color=dark red%3E%3CFONT FACE=Verdana,Arial,Helvetica,Sans Serif%3EIf you have ANY problems ordering then click %3Cb%3E%3Ca title=%22%22 href=%22mailto%3Ahelpdesk@piggi.com?subject=I%2520have%2520a%2520problem%2520ordering%2520my%2520Piggi%2520t-shirts&body=Please%2520describe%2520your%2520problem%2520here%3A%22%3Ehere%3C/a%3E %3C/b%3Eand we%27ll get the problem resolved. %3Cbr /%3E %3CBR%3E Please don%27t give up on us - we WILL resolve the problem quickly (and we%27ll throw in a free gift to say %22Thankyou%22 for persevering!) %3Cbr /%3E %3CBR%3E  %3CFONT FACE=Arial,Helvetica,Sans Serif SIZE=4 COLOR=#999999%3E%3CB%3EOrder Notes%3C/B%3E%3C/FONT%3E%3CBR%3E %3CBR%3E %3CFONT SIZE=1 color=black%3E%3CFONT FACE=Verdana,Arial,Helvetica,Sans Serif%3E%3CB%3E1.%3C/B%3E Please note that all transactions will be carried out in Pounds Sterling.%3CBR%3E%3CBR%3E  %3CB%3E2.%3C/B%3E Please enter all the required details. Once you have clicked the %22Send Order%22 button you will be transferred to our secure server where you can safely enter all your payment details. We accept the following credit/debit cards%3A%3CBR%3E %3CBR%3E %3CIMG SRC=%27images/Credit-Cards-Smaller.gif%27 WIDTH=%27150%27 HEIGHT=%2727%27  BORDER=0%3E%3CBR%3E %3CBR%3E %3CB%3E3.%3C/B%3E If you are paying by cheque, please fill in your details, print this page and send it together with payment, to Orders Dept, Piggi Ltd, 1, Huron Road, London SW17 8RE, United Kingdom. Please make cheques payable to Piggi Ltd. %3CBR%3E %3CBR%3E %3CB%3E4.%3C/B%3E All our prices are inclusive of VAT. %3CBR%3E %3CBR%3E %3CB%3E5.%3C/B%3E For more information on our Terms and Conditions please %3CA HREF=JavaScript%3Avar var show(226,0,0)%3Eclick here%3C/A%3E.%3CBR%3E";var shipPrompt='';var popOptions='toolbar=no,menubar=no,scrollbars=no,status=no,location=no,directories=no,resizable=no,width=384,height=516,~Piggi Design Close-up~20~20~';var popOptions2='toolbar=no,menubar=no,scrollbars=yes,status=yes,location=no,directories=no,resizable=no,width=630,height=500,~Payment Form~40~40~';var popOptions3='toolbar=yes,menubar=yes,scrollbars=yes,status=yes,location=yes,directories=yes,resizable=yes,width=,height=,~~~~';var popOptions4='toolbar=yes,menubar=yes,scrollbars=yes,status=yes,location=yes,directories=yes,resizable=yes,width=600,height=400,~Secure Form~0~0~';var discActive=0;var privilegeActive=-1;var voucherActive=-1;var headTag="%3C!DOCTYPE html PUBLIC %22-//W3C//DTD XHTML 1.0 Transitional//EN%22 %22http%3A//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd%22%3E %3Chtml xmlns=%22http%3A//www.w3.org/1999/xhtml%22 xml%3Alang=%22en-GB%22 lang=%22en-GB%22 dir=%22ltr%22%3E %3Chead%3E%3Cmeta http-equiv=%22Content-Type%22 content=%22text/html; charset=ISO-8859-1%22 /%3E %3Cmeta http-equiv=%22Pragma%22 content=%22no-cache%22%3E %3Ctitle%3E%3C%25Page_Title%25%3E - www.piggi.com%3C/title%3E %3Clink href=%22store.css%22 rel=%22stylesheet%22 type=%22text/css%22 /%3E %3C%25Erol_Scripts_Head%25%3E %3C%25Meta_Tags%25%3E %3C/head%3E %3Cbody id=%22%3C%25Body_Id%25%3E%22%3E %3C%25Body_Template%25%3E %3Cscript type=%22text/javascript%22 src=%22w1.js%22%3E%3C/script%3E%3C%25Erol_Scripts_Foot%25%3E %3Cscript type=%22text/javascript%22%3E    var _gaq = _gaq %7C%7C [];   _gaq.push([%27_setAccount%27, %27UA-458671-2%27]);   _gaq.push([%27_trackPageview%27]);    (function() {     var ga = document.createElement(%27script%27); ga.type = %27text/javascript%27; ga.async = true;     ga.src = (%27https%3A%27 == document.location.protocol ? %27https%3A//ssl%27 %3A %27http%3A//www%27) + %27.google-analytics.com/ga.js%27;     var s = document.getElementsByTagName(%27script%27)[0]; s.parentNode.insertBefore(ga, s);   })();  %3C/script%3E %3C/body%3E%3C/html%3E";var storeCss="";var indexPage=1;var bskSize=0;var bskBordSize=3;var trgTag='div';var trgType='1';var snippets='0¬|<%VALUE%>|~1¬%3CSELECT %3C%25CONTROL%25%3E onChange=%22%3C%25EVENT%25%3E%22%3E%7C %3COPTION VALUE=%22%3C%25VALUE%25%3E%22 %3C%25SELECTED%25%3E%3E%3C%25LABEL%25%3E%3C/OPTION%3E%7C %3C/SELECT%3E~2¬%7C%3CINPUT id=%22%3C%25VALUE%25%3E%22 TYPE=%22checkbox%22 %3C%25CONTROL%25%3E onClick=%22%3C%25EVENT%25%3E%22 VALUE=%22%3C%25VALUE%25%3E%22 %3C%25CHECKED%25%3E%3E%3Clabel for=%22%3C%25VALUE%25%3E%22%3E%3C%25LABEL%25%3E%3C/label%3E&nbsp;%7C~3¬%7C%3CINPUT id=%22%3C%25VALUE%25%3E%22 TYPE=%22radio%22 %3C%25CONTROL%25%3E  onClick=%22%3C%25EVENT%25%3E%22 VALUE=%22%3C%25VALUE%25%3E%22 %3C%25CHECKED%25%3E%3E%3Clabel for=%22%3C%25VALUE%25%3E%22%3E%3C%25LABEL%25%3E%3C/label%3E&nbsp;%7C~4¬%3CTABLE%3E%7C%3CTR%3E%3CTD%3E%3C%25LABEL%25%3E%3C/TD%3E%3CTD%3E%3CINPUT NAME=%22%3C!Name=Element Name!%3E%22 SIZE=%22%3C!Name=Element Name!%3E%22 TYPE=text%22 VALUE=%22%22%3E&nbsp;%3C/TD%3E%3C/TR%3E%7C%3C/TABLE%3E~5¬%7C%3CIMG SRC=%22%3C%25LABEL%25%3E%22%3E%7C~7¬%7C%3CA NAME=%22Element Name%22 HREF=%22%3C%25VALUE%25%3E%22%3E%3C%25LABEL%25%3E%3C/A%3E%7C~12¬%7C%3CINPUT id=%22%3C%25VALUE%25%3E%22 TYPE=%22radio%22 %3C%25CONTROL%25%3E  onClick=%22%3C%25EVENT%25%3E%22 VALUE=%22%3C%25VALUE%25%3E%22 %3C%25CHECKED%25%3E style=%22position%3Aabsolute;left%3A-999px;width%3A990px;%22%3E%3Clabel for=%22%3C%25VALUE%25%3E%22%3E%3C%25LABEL%25%3E%3C/label%3E&nbsp;%7C~16¬%7C%3CIMG SRC=%22%3C%25LABEL%25%3E%22%3E&nbsp;%7C~17¬%7C%3Clabel for=%22%3C%25VALUE%25%3E%22%3E%3CIMG SRC=%22images/shirt/check.gif%22%3E%3CINPUT ID=%22%3C%25VALUE%25%3E%22 TYPE=%22radio%22 %3C%25CONTROL%25%3E  onClick=%22%3C%25EVENT%25%3E%22 VALUE=%22%3C%25VALUE%25%3E%22 %3C%25CHECKED%25%3E%3E%3C%25LABEL%25%3E&nbsp;%3C/label%3E%7C~19¬%7C%3CA HREF=%22javascript%3Aalert(%27do this%27)%22%3E%3CIMG SRC=%22%3C%25VALUE%25%3E%22%3E%3C%25LABEL%25%3E%3C/A%3E&nbsp;%7C~20¬%7C%3Cspan onClick=%22var var %3C%25VALUE%25%3E%22%3E%3C%25LABEL%25%3E%3C/span%3E&nbsp;%7C~21¬%3CSELECT %3C%25CONTROL%25%3E onChange=%22%3C%25EVENT%25%3E%22 style=%22display%3Anone%22;%3E%7C%3COPTION VALUE=%22%3C%25VALUE%25%3E%22 %3C%25SELECTED%25%3E%3E%3C%25LABEL%25%3E%3C/OPTION%3E%7C%3C/SELECT%3E~48¬%3Cul style=%22list-style-type%3Anone;padding%3A0; margin%3A0;%22%3E%7C%3Cli%3E%3Cinput  type=%22radio%22 %3C%25CONTROL%25%3E onClick=%22%3C%25EVENT%25%3E%22 value=%22%3C%25VALUE%25%3E%22 %3C%25CHECKED%25%3E%3E%3Clabel for=%22%3C%25VALUE%25%3E%22%3E%3C%25LABEL%25%3E%3C/label%3E%3C/li%3E%7C%3C/ul%3E~49¬%3Ctable cellpadding=%222%22 cellspacing=%220%22 border=%220%22%3E%7C%3Ctr%3E%3Ctd%3E%3Cinput id=%22%3C%25VALUE%25%3E%22 type=%22checkbox%22 %3C%25CONTROL%25%3E onClick=%22%3C%25EVENT%25%3E%22 value=%22%3C%25VALUE%25%3E%22 %3C%25CHECKED%25%3E%3E%3C/td%3E%3Ctd%3E%3Clabel for=%22%3C%25VALUE%25%3E%22%3E%3C%25LABEL%25%3E%3C/label%3E%3C/td%3E%3C/tr%3E%7C%3C/table%3E~51¬%7C%3CIMG SRC=%22%3C%25LABEL%25%3E%22 width=%2270%22 height=%2270%22 border=%220%22%3E%7C~52¬%7C%3Clabel for=%22%3C%25VALUE%25%3E%22%3E%3CINPUT ID=%22%3C%25VALUE%25%3E%22 TYPE=%22radio%22 %3C%25CONTROL%25%3E  onClick=%22%3C%25EVENT%25%3E%22 VALUE=%22%3C%25VALUE%25%3E%22 %3C%25CHECKED%25%3E%3E%3CIMG SRC=%22images/shirt/check.gif%22%3E%3C%25LABEL%25%3E&nbsp;%3C/label%3E%7C~53¬%3Cul style=%22list-style-type%3Anone;padding%3A0; margin%3A0;%22%3E%7C%3Cli%3E%3CINPUT id=%22%3C%25VALUE%25%3E%22 TYPE=%22radio%22 %3C%25CONTROL%25%3E  onClick=%22%3C%25EVENT%25%3E%22 VALUE=%22%3C%25VALUE%25%3E%22 %3C%25CHECKED%25%3E style=%22position%3Aabsolute;left%3A-999px;width%3A990px;%22%3E%3Clabel for=%22%3C%25VALUE%25%3E%22%3E%3C%25LABEL%25%3E%3C/label%3E%3C/li%3E%7C%3C/ul%3E~55¬%3Cul style=%22list-style-type%3Anone;padding%3A0; margin%3A0;%22%3E%7C%3Cli%3E%3CINPUT id=%22%3C%25VALUE%25%3E%22 TYPE=%22checkbox%22 %3C%25CONTROL%25%3E onClick=%22%3C%25EVENT%25%3E%22 VALUE=%22%3C%25VALUE%25%3E%22 %3C%25CHECKED%25%3E%3E%3Clabel for=%22%3C%25VALUE%25%3E%22%3E%3C%25LABEL%25%3E%3C/label%3E%3C/li%3E%7C%3C/ul%3E~';var orderFields='';;var cFooter='%3Ctable width=%22100%25%22 border=%220%22 cellspacing=%221%22 cellpadding=%225%22%3E   %3Ctr%3E      %3Ctd width=%2250%25%22 valign=%22top%22%3E  %3Clabel for=%22Billing_Name%22 class=%22Billing_Name_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Abold;font-size%3A10px;color%3A;%22%3E*Billing Name (Card Holders Name)%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Billing_Name%22 id=%22Billing_Name%22 class=%22Billing_Name%22 type=%22text%22 size=%2240%22 value=%22%22 title=%22Required%22%3E%3Cbr /%3E  %3Clabel for=%22Billing_Address_1%22 class=%22Billing_Address_1_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3E*Billing Address 1%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Billing_Address_1%22 id=%22Billing_Address_1%22 class=%22Billing_Address_1%22 type=%22text%22 size=%2240%22 value=%22%22 title=%22Required%22%3E%3Cbr /%3E  %3Clabel for=%22Billing_Address_2%22 class=%22Billing_Address_2_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3EBilling Address 2%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Billing_Address_2%22 id=%22Billing_Address_2%22 class=%22Billing_Address_2%22 type=%22text%22 size=%2240%22 value=%22%22 title=%22Optional%22%3E%3Cbr /%3E  %3Clabel for=%22Billing_City%22 class=%22Billing_City_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3E*City/Town%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Billing_City%22 id=%22Billing_City%22 class=%22Billing_City%22 type=%22text%22 size=%2240%22 value=%22%22 title=%22Required%22%3E%3Cbr /%3E  %3Clabel for=%22Billing_Zip%22 class=%22Billing_Zip_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3E*Postal Code/Zip%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Billing_Zip%22 id=%22Billing_Zip%22 class=%22Billing_Zip%22 type=%22text%22 size=%2225%22 value=%22%22 title=%22Required%22%3E%3Cbr /%3E  %3Clabel for=%22Billing_Country%22 class=%22Billing_Country_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3E*Country%3C/label%3E%3Cbr /%3E %3Cspan id=%22Billing_Country%22 class=%22Billing_Country%22%3E%3C%25Billing_Country%25%3E%3C/span%3E%3Cbr /%3E%3Cbr /%3E  %3Clabel for=%22Delivery_Name%22 class=%22Delivery_Name_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Abold;font-size%3A10px;color%3A;%22%3EDelivery Name (if different)%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Delivery_Name%22 id=%22Delivery_Name%22 class=%22Delivery_Name%22 type=%22text%22 size=%2240%22 value=%22%22 title=%22Optional%22%3E%3Cbr /%3E  %3Clabel for=%22Delivery_Address_1%22 class=%22Delivery_Address_1_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3EDelivery Address 1%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Delivery_Address_1%22 id=%22Delivery_Address_1%22 class=%22Delivery_Address_1%22 type=%22text%22 size=%2240%22 value=%22%22 title=%22Optional%22%3E%3Cbr /%3E  %3Clabel for=%22Delivery_Address_2%22 class=%22Delivery_Address_2_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3EDelivery Address 2%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Delivery_Address_2%22 id=%22Delivery_Address_2%22 class=%22Delivery_Address_2%22 type=%22text%22 size=%2240%22 value=%22%22 title=%22Optional%22%3E%3Cbr /%3E  %3Clabel for=%22Delivery_City%22 class=%22Delivery_City_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3ECity/State/Province%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Delivery_City%22 id=%22Delivery_City%22 class=%22Delivery_City%22 type=%22text%22 size=%2240%22 value=%22%22 title=%22Optional%22%3E%3Cbr /%3E  %3Clabel for=%22Delivery_Zip%22 class=%22Delivery_Zip_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3EPostal Code/Zip%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Delivery_Zip%22 id=%22Delivery_Zip%22 class=%22Delivery_Zip%22 type=%22text%22 size=%2225%22 value=%22%22 title=%22Optional%22%3E%3Cbr /%3E  %3Clabel for=%22Delivery_Country%22 class=%22Delivery_Country_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3ECountry%3C/label%3E%3Cbr /%3E %3Cspan id=%22Delivery_Country%22 class=%22Delivery_Country%22%3E%3C%25Delivery_Country%25%3E%3C/span%3E  %3Cbr /%3E %3Cbr /%3E       %3Clabel for=%22Additional_Field_4%22 class=%22Additional_Field_4%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3EHow did you hear about Piggi?%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Additional_Field_4%22 id=%22Additional_Field_4%22 class=%22Additional_Field_4%22 type=%22text%22 size=%2240%22 value=%22%22 title=%22Optional%22%3E%3Cbr /%3E  %3Clabel for=%22Email_Address%22 class=%22Email_Address_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3E*Email Address%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Email_Address%22 id=%22Email_Address%22 class=%22Email_Address%22 type=%22text%22 size=%2225%22 value=%22%22 title=%22Required%22%3E%3Cbr /%3E  %3Clabel for=%22Phone_Number%22 class=%22Phone_Number_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3E*Phone Number%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Phone_Number%22 id=%22Phone_Number%22 class=%22Phone_Number%22 type=%22text%22 size=%2225%22 value=%22%22 title=%22Required%22%3E%3Cbr /%3E  %3Clabel for=%22Fax_Number%22 class=%22Fax_Number_Label%22 style=%22font-family%3AVerdana,Arial,Helvetica,sans-serif;font-weight%3Anormal;font-size%3A10px;color%3A;%22%3EFax Number%3C/label%3E%3Cbr /%3E %3Cinput onchange=%22record(this)%22 name=%22Fax_Number%22 id=%22Fax_Number%22 class=%22Fax_Number%22 type=%22text%22 size=%2225%22 value=%22%22 title=%22Optional%22%3E%3Cbr /%3E  %3C/td%3E %3Ctd width=%2210%22 bgcolor=%22#f3f3f3%22%3E%3Cimg src=%22images/trans.gif%22 width=%221%22 height=%221%22%3E%3C/td%3E     %3Ctd width=%2250%25%22 valign=%22top%22%3E%3Cspan class=%22Order_Notes%22 id=%22Order_Notes%22%3E%3C%25Order_Notes%25%3E%3C/span%3E%3C/td%3E  %3C/tr%3E %3C/table%3E';panelObj.Panel_Offers='phrase=@onsale&template=s9.html&orderby=price%20ascending';panelObj.Panel_Upsell='phrase=@batteries&template=s10.html&orderby=relevance';
/*END - STORE INJECTED VARIABLES*/;e._curCode=loadCurCode;if(jumpPge!=''){;onAddBasket=jumpPge;};e.countryTax=countryTax;e.allowVatNumber=allowVatNumber;if(httpsPath!=''){;cgiBin=httpsPath+cgiBin;};baseChar=currencyChar;baseChar2=currencyChar2;var emailFriendConf='';var emailFriendTemp='<!--Message-->\n\n<!--Product_List-->';var emailFriendRowTemp='%Description% Price: %Price% \n %Link% \n\n';var emailFriendHead='';var orderVerified='Checking Order > Verified';var orderChecking='Checking Order';var orderFailed='Checking Order > Failed';var orderFatal='Checking Order > ';e5main=true;_boot('e5main');