function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function legalpopup(URL) {window.open(URL,'name','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=480,screenX=400,screenY=400,top=400,left=400');
}
function popup(URL) {window.open(URL,'name','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=150,height=150,screenX=400,screenY=400,top=400,left=400');
}
function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
var currPriceIllustration;
var closePriceButton = "";
function showPriceIllustration(n) {var illustrationPriceText = getObj("storePrice" + n).innerHTML;getObj("illustrationPrice").className = "illustrationPrice";getObj("illustrationPrice").innerHTML = closePriceButton + illustrationPriceText + closePriceButton;currPriceIllustration = n;
}

function closePriceIllustration() {getObj("illustrationPrice").innerHTML = "\&nbsp\;";getObj("illustrationPrice").className = "";getObj("illustrationPriceLink" + currPriceIllustration).className = "";currPriceIllustration = null;
}
function getObj(obj) {var objRef;if(document.all) objRef = eval("document.all." + obj);else if(document.getElementById) objRef = document.getElementById(obj);return objRef;
}
var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);
var currIllustration;
var n=0;
function showBenefits(id,n){if(ns4){document.layers[id].visibility = "show";}
else if(ie4){document.all[id].style.visibility = "visible";getObj(id).className = "normal";}
else if(ie5 || ns6){if(currIllustration) {getObj("illustrationLink" + currIllustration).className = "";
}
document.getElementById(id).style.visibility = "visible";var illustrationText = getObj(id).innerHTML;getObj("textHere").innerHTML = illustrationText;
if (n>0){getObj("illustrationLink" + n).className = "illustrationHighlightNew";currIllustration = n;
		}
	}
}
var expDays = 3650;     // This is the number of days that the cookie will exist for
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function getCookieVal (offset) {  
	var endstr = document.cookie.indexOf (";", offset);  
	if (endstr == -1)    
		endstr = document.cookie.length;  
	return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {  
	var arg = name + "=";  
	var alen = arg.length;  
	var clen = document.cookie.length;  
	var i = 0;  
	while (i < clen) {    
		var j = i + alen;    
		if (document.cookie.substring(i, j) == arg)      
			return getCookieVal (j);    
		i = document.cookie.indexOf(" ", i) + 1;    
		if (i == 0) break;   
	}  
	return null;
}
function SetCookie (name, value) {  
	var argv = SetCookie.arguments;  
	var argc = SetCookie.arguments.length;  
	var expires = (argc > 2) ? argv[2] : null;  
	var path = (argc > 3) ? argv[3] : null;  
	var domain = (argc > 4) ? argv[4] : null;  
	var secure = (argc > 5) ? argv[5] : false;  
	document.cookie = name + "=" + escape (value) + 
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
	((path == null) ? "" : ("; path=" + path)) +  
	((domain == null) ? "" : ("; domain=" + domain)) +    
	((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {  
	var exp = new Date();  
	exp.setTime (exp.getTime() - 1);  
	var cval = GetCookie (name);  
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
