function navon(imgName) { document[imgName].src = eval(imgName + "on.src"); }
function navover(imgName) { document[imgName].src = eval(imgName + "over.src"); }
function navoff(imgName) { document[imgName].src = eval(imgName + "off.src"); }
function isEmpty(obj) {
	if ((obj.replace(/ /g, "")).replace(/\r\n/g, "") == "") return true;
	else return false;
}

function getspecs(wide,tall) {
	if ((navigator.appName == "Microsoft Internet Explorer") && (navigator.appVersion.charAt(22) == "4") && (navigator.appVersion.charAt(24) == "5") && (navigator.appVersion.indexOf("Mac") != -1)) {
		if (status == "yes") tall += 17;	
		else tall += 1;
	}
	if ((navigator.appName == "Netscape") && (navigator.appVersion.indexOf("Mac") != -1) && (navigator.appVersion.charAt(0) >= "5") && (scroll == "yes")) wide += 14;
	leftpos = 0;
	toppos = 0;
	if (navigator.appVersion.charAt(0) >= "4") {
		leftpos = screen.width/2 - wide/2;
		toppos = screen.height/2 - tall/2;
	}
}
function openwin(desturl,winname,wide,tall,toolbar,scroll,status) {
	window.open(desturl, winname, 'width='+wide+',height='+tall+',left='+leftpos+',top='+toppos+',toolbar='+toolbar+',status='+status+',scrollbars='+scroll+',resizable=no');
}
function NewWinA(desturl,winname,wide,tall,toolbar,scroll,status) {
	getspecs(wide,tall);
	openwin(desturl,winname,wide,tall,toolbar,scroll,status);
}
function printCommand() {
	if (window.print) {
		setTimeout('window.print();',200);
	}
	else if (navigator.userAgent.indexOf("Mac") != -1){
		alert("Press 'Cmd+p' on your keyboard to print this page.");
	}
	else {
		alert("Press 'Ctrl+p' on your keyboard to print this page.")
	}
}
function goDLCenter(myFile, myLeadSubjLine)
{
	window.location.href = "/DLCenterCentral/UserInformation.asp?file=" + myFile + "&leadsubjline=" + myLeadSubjLine;
}

function setCookie (name, value, expires) {
	var myWeb = "quickarrow.com";
	if (!expires) expires = new Date();
	if (myCurrentWebSite == "quickarrow2.austin.yellowcircle.com"){
		myWeb = "yellowcircle.com";
	}
	document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() +  "; path=/; domain=" + myWeb;
}  

function getCookie (name) {
	var dcookie = document.cookie; 
	var cname = name + "=";
	var clen = dcookie.length;
	var cbegin = 0;
	while (cbegin < clen) {
		var vbegin = cbegin + cname.length;
		if (dcookie.substring(cbegin, vbegin) == cname) { 
			var vend = dcookie.indexOf (";", vbegin);
			if (vend == -1) vend = clen;
				return unescape(dcookie.substring(vbegin, vend));
		}
		cbegin = dcookie.indexOf(" ", cbegin) + 1;
		if (cbegin == 0) break;
	}
	return null;
}

function delCookie (name) {
	var expireNow = new Date();
	document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" +  "; path=/";
}