// Cache images for rollovers
if (document.images) {
   	nav_arrow = new Image();
	nav_arrow.src = "../images/navigation_arrow.gif";
	nav_arrow_on = new Image();
	nav_arrow_on.src = "../images/navigation_arrow_orange.gif";
}	

// Rollover on cached image object
function swap(imgName,objName) {
	if (document.images) {
		document[objName].src = eval(imgName + ".src");
	}
}

// Pop-up Window
function popup(url,w,h) {
	popupWin = eval('window.open(url,"remote","width='+w+',height='+h+',left=10,top=10,toolbar=yes,location=yes,scrollbars=yes,resizable=yes")');
}

function PopUpCenter(url,w,h) {
	var l = parseInt((screen.width - w)/2);
	var t = parseInt((screen.height - h)/2);
	popupWin = window.open(url,"center","width="+w+",height="+h+",left="+l+",top="+t+",scrollbars=no,resizable=no,toolbar=no,location=no");
}
	
// Rollover on Table Row or Cell
function StyleOn(src,style) {
	src.style.cursor = 'hand';
	src.className = style;
}

// Rollout on Table Row or Cell
function StyleOff(src,style) {
	src.style.cursor = 'default';
	src.className = style;
}

// Get any object on the HTML page using their ID
function GetObj(objId) {
	if(document.getElementById)
		return document.getElementById(objId);
	
	return document.all(objId);
}

function WriteObj(objId,txt) {
	GetObj(objId).firstChild.nodeValue = txt;
}

function cl(inp, val) {
	if (inp.value == val) inp.value = "";
}

function fl(inp, val) {
	if (inp.value == "") inp.value = val;
}
