function getNewNum(){var start=new Date('Aug 1, 1999');var today=new Date();return (Math.round((today.getTime()-start.getTime())/1000));}function goToPage(nextpage){location.href=nextpage;}function getCookie(name){var cookiename=name+'=';if(document.cookie.length>0){
start=document.cookie.indexOf(cookiename);if(start!=-1){start+=cookiename.length;end=document.cookie.indexOf(';',start);if(end==-1){end=document.cookie.length;}return unescape(document.cookie.substring(start,end));}}return null;}function setCookie(name,value,expires,path,domain,secure)
{document.cookie=name+'='+escape(value)+((expires==null) ? '' : '; expires='+expires.toGMTString())+((path == null) ? '' : '; path=' + path) + ((domain == null) ? '' : '; domain='+domain)+((secure==null) ? '' : '; secure');}function delCookie(name){var expirydate=new Date('July 1, 1999 23:00:00');
setCookie(name,null,expirydate);}function splitData(data,delimiter){var i=0,j=0,k=0;var data_array=new Array(data);for(i=0;i<data.length;i++){var tempdata=data.substring(i,data.length);var x=tempdata.indexOf(delimiter);if(x>0){k=x+i;data_array[j++]=data.substring(i,k);i+=x;}else{data_array[j++]=tempdata;
i=data.length;}}return data_array;}function stopShopping(nextpage,pagename){var haveitems=getCookie('SHLOrder');if(haveitems!=null){if(confirm('Do you wish to empty the contents of your shopping basket\n and go to the ' + pagename + '?')){delCookie('SHLOrder');delCookie('SHLExtn1');
if(parent.frames.length>0 && parent.frames[0].document.forms[0]){parent.frames[0].document.forms[0].Total.value=currencysymbol+'0.00';}parent.location.href=nextpage;}}else{parent.location.href=nextpage;}}function stopAction(nextpage){if(confirm('Do you want to cancel the purchase and empty the\ncontents of your shopping basket?'))
{delCookie('SHLOrder');delCookie('SHLExtn1');if(parent.frames.length>0 && parent.frames[0].document.forms[0]){parent.frames[0].document.forms[0].Total.value=currencysymbol+'0.00';}location.href=nextpage;}}function reminder(){if(confirm('Did you print this order form?\n\nIf not click "OK" to print it now\nor "Cancel" to abort printing.'))
{print();delCookie('SHLOrder');delCookie('SHLExtn1');if(parent.frames.length>0 && parent.frames[0].document.forms[0]){parent.frames[0].document.forms[0].Total.value=currencysymbol+'0.00';}}}function printOrder(){print();delCookie('SHLOrder');delCookie('SHLExtn1');if(parent.frames.length>0 && parent.frames[0].document.forms[0])
{parent.frames[0].document.forms[0].Total.value=currencysymbol+'0.00';}}function acceptTrans(){delCookie('SHLOrder');delCookie('SHLExtn1');document.open();document.write('<CENTER><P>&nbsp;<P><FONT COLOR="#009900"><U><H2>Transaction Successful</H2></U></FONT>');document.write('<P><B>Thank you for purchasing from our company</B></CENTER>');
document.close();if(parent.frames.length>0 && parent.frames[0].document.forms[0]){parent.frames[0].document.forms[0].Total.value=currencysymbol+'0.00';}}function stopTrans(){if(confirm('Cancel this transaction?')){delCookie('SHLOrder');delCookie('SHLExtn1');document.open();document.write('<P>&nbsp;<P><FONT COLOR="#FF0000"><U><H2 ALIGN="center">Transaction Cancelled!</H2></U></FONT>');
document.close();if(parent.frames.length>0 && parent.frames[0].document.forms[0]){parent.frames[0].document.forms[0].Total.value=currencysymbol+'0.00';}}}function formatAmount(num){var isneg=false,returnstring='';if(num<0){num*=-1;isneg=true;}var n=new String(num);if(n.indexOf('.')==-1){n+='.00';}else{if(n.indexOf('.')==n.length-2){
n+='0';}else{n=n.substring(0,n.indexOf('.')+3);}}if(n.length>6 && n.length<10){returnstring=n.substring(0,n.indexOf('.')-3)+','+n.substring(n.indexOf('.')-3,n.length);}else{if(n.length >9 && n.length< 13){returnstring=n.substring(0,n.indexOf('.')-6)+','+n.substring(n.indexOf('.')-6, n.indexOf('.')-3)+','+n.substring(n.indexOf('.')-3,n.length);
}else{returnstring=n;}}if(isneg){return('('+currencysymbol+returnstring+')');}else{return(currencysymbol+returnstring);}}function padString(strg,what,chars,where){while(strg.length<chars){if(where=='Left'){strg=what+strg;}else{strg+=what;}}return(strg);}function helpMe(helpbtn){if(helpbtn=='MainHelp'){alert('Choose an item you wish to purchase from one of the product pages. Next select any\n'
+'options you required, if these are available, enter the quantity required and press\nthe "'+addbutton+'" button.\n\nRepeat this process to add any other items you want, then click the "'+chkbutton+'"\nbutton at the left of the browser window. This will take you to the check out counter.\n\nComplete the address forms then select the method of payment ("'+chqbutton+'" for mail\n'
+'order or "'+crdbutton+'" to pay on-line).\n\nYou will see the contents of your basket, the price of the items you selected, the cost\nof delivery to your shipping address and the total cost of the order. If you want to\nchange an items quantity, or delete items click the "'+edibutton+'" button. When all\nchanges are complete click the "'+chkbutton+'" button again. If you are satisfied that\n'
+'the contents of your basket are correct click the "Continue" button.\n\nIf you opted for credit card payment you will now be transferred to our secure server\nwhere you can enter your card details in safety.\n\nIf you requested payment by other means make sure that your printer is turned on then\nclick your browsers "Print" button or select "File" then "Save" from your browsers menu\n'
+'if you wish to print the form later.\n\nYou can check, edit, or empty the contents of your shopping basket at any time by\nclicking the "'+vewbutton+'" button, then return to the product pages to add new items.\n\n     Powered by Shop@Home.Lite    © Ray Halliwell    WebWright UK Limited\n                                 http://www.webwright-uk.com');
}if(helpbtn=='ProdOption'){alert('1. Choose the product you wish to purchase.\n2. Select the options you require.\n3. Enter the number of items you wish to purchase.\n4. Click the "'+addbutton+'".\n\nContinue to add items from the catalogue pages the click\non "'+chkbutton+'" to proceed to then check out page.\n\n'
+'You can view the contents of your shopping basket at any\ntime by clicking on "'+vewbutton+'".\n\nPowered by Shop@Home.Lite © Ray Halliwell WebWright UK Ltd');}if(helpbtn=='ProdNoOption'){alert('1. Choose the product you wish to purchase.\n2. Enter the number of items you wish to purchase.\n'
+'3. Click the "'+addbutton+'".\n\nContinue to add items from the catalogue pages then click\non "'+chkbutton+'" to proceed to the check out page.\n\nYou can view the contents of your shopping basket at any\ntime by clicking on "'+vewbutton+'".\n\nPowered by Shop@Home.Lite © Ray Halliwell WebWright UK Ltd');
}if(helpbtn=='BaskPage'){alert('This pages shows the contents of your shopping basket. To\nchange an items quantity enter the new number then press\nthe "Tab" key, or click the "Update Basket" button, and your\nbasket will be updated. If you wish to delete an item from the\nbasket click the "Remove" button. All items can be deleted by\nclicking on the "Empty Basket" button.\n\n'
+'You can return to the catalogue pages at any time and add\nmore items to your basket.\n\nPowered by Shop@Home.Lite © Ray Halliwell WebWright UK Ltd');}if(helpbtn=='AddrForm'){alert('1. Complete the details an the billing address form.\n2. If billing and shipping addresses are the same check\n    the "Same as billing" box.\n3. If the shipping address is different complete the form.\n'
+'4. Click on the method of payment yopu require. (Credit\n    card transactions are carried out on a secure server)\n\nIf you choose credit card payment you will be able to\nreview, change, or cancel your order before you enter\nyour card details.\n\nPlease ensure that you enter the following data otherwise\n'
+'we will be unable to process your order.\nFirst and last names, full address, e-mail address.\n\nPowered by Shop@Home.Lite © Ray Halliwell WebWright UK Ltd');}if(helpbtn=='CredOrd'){alert('This page shows your order details, the cost of shipping\nto the address you specified on the shipping form, and the\ntotal amount that will be charged to your credit card.\n\nClick on "Continue" to proceed to our secure server where\n'
+'you will be asked to enter your credit card details.\nClick on "'+edibutton+'"to change, add or delete items.\nClick on "Cancel" to terminate the transaction.\n\nPowered by Shop@Home.Lite © Ray Halliwell WebWright UK Ltd');}}
//DO NOT EDIT THIS FILE
// ##################################################################################
// # Shop@Home.Lite is copyright of Ray Halliwell. No part of the source code shall #
// # be copied, modified, adapted, or used in any other application without written #
// # permission from the author. All rights reserved. http://www.webwright-uk.com   #
// ##################################################################################