function getCookie(key){
theCookie =';'
if(document.cookie && document.cookie.indexOf(key) != -1){
theCookie = document.cookie;
theCookie = theCookie.substring(theCookie.indexOf(key),theCookie.length);
if(theCookie.indexOf(';') != -1){
theCookie = theCookie.substring(0,theCookie.indexOf(';'));
}
return theCookie; 
}
}
function getCookieVal(key){
theCookie = getCookie(key);
if(theCookie != '' && theCookie != null){
theVal = theCookie.substring(theCookie.indexOf(key) + key.length + 1,theCookie.length);
if(theVal.indexOf(delim) != -1){
theVal = theVal.split(delim);
}
return theVal;
} else {
return '';
}
}
var delim = '|';
var zip = getCookieVal('kzip');
var rateA=getCookieVal('rateA');
var rateB=getCookieVal('rateB');
var rateCGC=getCookieVal('rateGC');
var rateC59=getCookieVal('rateC59');
var rateDGC=getCookieVal('rateDGC');
var rateC80=getCookieVal('rate_C80');
var rateD=getCookieVal('rate_D');
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=600,scrollbars=yes');
return false;
}
