     var url = "//" + location.hostname + "/cgi/olpos3?"     var cart1     var login1function cart_show() {     var nurl = location.protocol + url + "action=cart"     var title = "Shopping Cart"     cart1 = new Cart("cart1", title, nurl, "show")}function cart_buy(itemno) {     var qty = $("qty"+itemno).value     if ((parseInt(qty) <= 0) || (qty=="")) {          alert("Please enter 1 or more")          return(false)     }     var nurl = location.protocol + url + "action=buy&itemno="+itemno+"&fred=greg"+"&qty="+qty     var title = "Shopping Cart"     cart1 = new Cart("cart1", title, nurl, "show")}function cart_checkout() {     //location = "https:" + url + "action=startck"     location = "http:" + url + "action=startck"     //location = location.protocol + url + "action=startck"}var cart_login_success = function() {     login1.close()}function cart_login() {     var nurl = location.protocol + "//" + location.hostname + "/olposli.html"     login1 = new Login("WATlogin", "Wild Animal Tracks Login", nurl, cart_login_success)}