function update()
{
if (parts == "0"){alert("You need to have items in your basket before updating contents");location.href="basket.htm"}
if (document.basket.item.value="checked"){tot = 0;}
if (document.basket.tick1.checked){ca = ""; tot = parseInt(tot) + 1}else{ca = ca + ";"}
if (parts == "1"){location.href="javascript:next()"}else{}
if (document.basket.tick2.checked){cb = ""; tot = parseInt(tot) + 1}else{cb = cb + ";"}
if (parts == "2"){location.href="javascript:next()"}else{}
if (document.basket.tick3.checked){cc = ""; tot = parseInt(tot) + 1}else{cc = cc + ";"}
if (parts == "3"){location.href="javascript:next()"}else{}
if (document.basket.tick4.checked){cd = ""; tot = parseInt(tot) + 1}else{cd = cd + ";"}
if (parts == "4"){location.href="javascript:next()"}else{}
if (document.basket.tick5.checked){ce = ""; tot = parseInt(tot) + 1}else{ce = ce + ";"}
if (parts == "5"){location.href="javascript:next()"}else{}
if (document.basket.tick6.checked){cf = ""; tot = parseInt(tot) + 1}else{cf = cf + ";"}
if (parts == "6"){location.href="javascript:next()"}else{}
if (document.basket.tick7.checked){cg = ""; tot = parseInt(tot) + 1}else{cg = cg + ";"}
if (parts == "7"){location.href="javascript:next()"}else{}
if (document.basket.tick8.checked){ch = ""; tot = parseInt(tot) + 1}else{ch = ch + ";"}
if (parts == "8"){location.href="javascript:next()"}else{}
if (document.basket.tick9.checked){ci = ""; tot = parseInt(tot) + 1}else{ci = ci + ";"}
if (parts == "9"){location.href="javascript:next()"}else{}
if (document.basket.tick10.checked){cj = ""; tot = parseInt(tot) + 1}else{cj = cj + ";"}
if (parts == "10"){location.href="javascript:next()"}else{}
if (document.basket.tick11.checked){ck = ""; tot = parseInt(tot) + 1}else{ck = ck + ";"}
if (parts == "11"){location.href="javascript:next()"}else{}
if (document.basket.tick12.checked){cl = ""; tot = parseInt(tot) + 1}else{cl = cl + ";"}
if (parts == "12"){location.href="javascript:next()"}else{}
if (document.basket.tick13.checked){cm = ""; tot = parseInt(tot) + 1}else{cm = cm + ";"}
if (parts == "13"){location.href="javascript:next()"}else{}
if (document.basket.tick14.checked){cn = ""; tot = parseInt(tot) + 1}else{cn = cn + ";"}
if (parts == "14"){location.href="javascript:next()"}else{}
if (document.basket.tick15.checked){co = ""; tot = parseInt(tot) + 1}else{co = co + ";"}
if (parts == "15"){location.href="javascript:next()"}else{}
if (document.basket.tick16.checked){cp = ""; tot = parseInt(tot) + 1}else{cp = cp + ";"}
if (parts == "16"){location.href="javascript:next()"}else{}
if (document.basket.tick17.checked){cq = ""; tot = parseInt(tot) + 1}else{cq = cq + ";"}
if (parts == "17"){location.href="javascript:next()"}else{}
if (document.basket.tick18.checked){cr = ""; tot = parseInt(tot) + 1}else{cr = cr + ";"}
if (parts == "18"){location.href="javascript:next()"}else{}
if (document.basket.tick19.checked){cs = ""; tot = parseInt(tot) + 1}else{cs = cs + ";"}
if (parts == "19"){location.href="javascript:next()"}else{}
if (document.basket.tick20.checked){ct = ""; tot = parseInt(tot) + 1}else{ct = ct + ";"}
if (parts == "20"){location.href="javascript:next()"}else{}
if (document.basket.tick21.checked){cu = ""; tot = parseInt(tot) + 1}else{cu = cu + ";"}
if (parts == "21"){location.href="javascript:next()"}else{}
if (document.basket.tick22.checked){cv = ""; tot = parseInt(tot) + 1}else{cv = cv + ";"}
if (parts == "22"){location.href="javascript:next()"}else{}
if (document.basket.tick23.checked){cw = ""; tot = parseInt(tot) + 1}else{cw = cw + ";"}
if (parts == "23"){location.href="javascript:next()"}else{}
}
function clearbasket(){if(confirm("Do you really want to empty your basket?"))
{del("item");del("parts");location.href="basket.htm";}location.href="basket.htm"}
function del(name){var expirydate=new Date('July 1, 1999 23:00:00');setCookie(name,null,expirydate);}
function next(){
if (!ca){ca = ""}	else{ca = ca}
if (!cb){cb = ""}	else{cb = cb}
if (!cc){cc = ""}	else{cc = cc}
if (!cd){cd = ""}	else{cd = cd}
if (!ce){ce = ""}	else{ce = ce}
if (!cf){cf = ""}	else{cf = cf}
if (!cg){cg = ""}	else{cg = cg}
if (!ch){ch = ""}	else{ch = ch}
if (!ci){ci = ""}	else{ci = ci}
if (!cj){cj = ""}	else{cj = cj}
if (!ck){ck = ""}	else{ck = ck}
if (!cl){cl = ""}	else{cl = cl}
if (!cm){cm = ""}	else{cm = cm}
if (!cn){cn = ""}	else{cn = cn}
if (!co){co = ""}	else{co = co}
if (!cp){cp = ""}	else{cp = cp}
if (!cq){cq = ""}	else{cq = cq}
if (!cr){cr = ""}	else{cr = cr}
if (!cs){cs = ""}	else{cs = cs}
if (!ct){ct = ""}	else{ct = ct}
if (!cu){cu = ""}	else{cu = cu}
if (!cv){cv = ""}	else{cv = cv}
if (!cw){cw = ""}	else{cw = cq}
if (!cx){cx1 = ""}	else{cx = cx}
part = (ca+cb+cc+cd+ce+cf+cg+ch+ci+cj+ck+cl+cm+cn+co+cp+cq+cr+cs+ct+cu+cv+cw);
if(confirm("Do you really want to delete the selected item(s) from your basket?")){
del("item");
parts = getCookie("parts");parts = parseInt(parts) - parseInt(tot);setCookie("parts", parts);setCookie("item", part);
location.href="basket.htm";}else{location.href="basket.htm"}
}