/*********************************************************************** * * getCookie - Generic Get Cookie routine * ************************************************************************/ function getCookie(name) { // use: getCookie("name"); var cookiecrumbs = document.cookie.split("; "); // break cookie into crumbs array for (var i=0; i < cookiecrumbs.length; i++) { nextcrumb = cookiecrumbs[i].split("="); // break into name and value if (nextcrumb[0] == name) // if name matches return unescape(nextcrumb[1]); // return value } return null; } /*********************************************************************** * * getCartItem - Gets the Actinic Cart Value & No of Items * ************************************************************************/ //CART_CONTENT = Cookie name //1 = TOTAL_VALUE //3 = CART_COUNT function getCartItem(index) { var act_cart= getCookie("CART_CONTENT") temp =(act_cart != null) ? temp=act_cart.split("\t"):0; return (temp.length > 0) ? temp[index] : 0; } /*********************************************************************** * * win - calls up the WUP window * ************************************************************************/ function win() { msg = window.open("paycash1.htm","","height = 507, width = 400, left = 378, top = 40"); }