var NewEoc = document.cookie; 
var ShipTotal=0; 
var Total=0; 
var SaleTotal=0; 
    var X1 ="";  
var X2 =0;
var X3 =0;
var X4 =0;
var today = new Date(); 
var expiry = new Date(today.getTime() + 7 * 24 * 60 * 60 * 1000); 
var name = new Array(); 
var sdesc = new Array(); 
var cost = new Array(); 
var ship = new Array(); 
var quant = new Array(); 
var f = document.form; 
var value; 
var found = 0; var  whattowritepp = "";
var CookieAll;
var TotalQuant;
var SubTotals;
name[0]    = 0;
sdesc[0]    = 0; 
cost[0]      = 0; 
ship[0]       = 0; 
quant[0]     = 0;  


function getallCookie() { 
//new spanning code
  var whole_cookie = document.cookie;
  var each_cookie = whole_cookie.split(";") ;
  var value ="";

  for (var i=0; i< each_cookie.length;i++){
    if( each_cookie[i].indexOf("NewEoc=") != -1) {
      var index = each_cookie[i].indexOf("NewEoc=");
      index = each_cookie[i].split("=");
      value = value + index[1];}

  for(var j=1; j<6;j++){
     if( each_cookie[i].indexOf("NewEoc"+j+"=") != -1) {
       var index = each_cookie[i].indexOf("NewEoc"+j+"=");
       index = each_cookie[i].split("=");
       value = value + index[1];}}} 

  return unescape(value);}


function round(number) { number = Math.round(number*Math.pow(10,2))/Math.pow(10,2); 
return (number == Math.floor(number)) ? number + '.00' : (  (number*10 == Math.floor(number*10)) ? number + '0' : number); } 



function OpenIn(NewLocation) {document.location = NewLocation;return false;} 



