function imgRoll(imgName, state) {
	if(document.images) {
		imgpath = (imgName + ".loc");
	 	imgpath = eval(imgpath);

		if (state == 1) {
			document[imgName].src = imgpath + eval(imgName + ".onsrc");
		}
		else {
			document[imgName].src = imgpath + eval(imgName + ".offsrc");
		}
   }
   return true;
}


function imgHomeRoll(imgName, state) {
	if(document.images) {
		imgpath = (imgName + ".loc");
	 	imgpath = eval(imgpath);

		if (state == 1) {
			document[imgName].src = imgpath + eval(imgName + ".onsrc");
			document["imgNavRoll"].src = imgpath + eval(imgName + ".rollonsrc");
		}
		else {
			document[imgName].src = imgpath + eval(imgName + ".offsrc");
			document["imgNavRoll"].src = imgpath + eval("imgNavRoll.offsrc");
		}
   }
   return true;
}


function removeOutline() {
    window.focus();
}


function jumpToEmpSection()
{
	var sJumpLoc;
			
	// has a section been selected?
	if (document.frmEmpList.lstEmpSections.selectedIndex > -1) {
		// jump to employer section
		sJumpLoc = "page.asp?" + document.frmEmpList.lstEmpSections.options[document.frmEmpList.lstEmpSections.selectedIndex].label;
		window.location.href = sJumpLoc;
	}
}


function stripTags(thisString)
{
	// this is called after the XSL file renders the results, stripping out all HTML and BangScript tags.

	var strWorking;

	// replace all {! and !} with < and >
	strWorking = thisString.replace(/{!/gi,"<");
	strWorking = strWorking.replace(/!}/gi,">");

	// re-do single quotes
	strWorking = strWorking.replace(/!quot;/gi,"'");
	strWorking = strWorking.replace(/!quot;/gi,"'");

	// remove all text between < and >, inclusive
	strWorking = strWorking.replace(/<(.|\n)+?>/gi,"");
			
	// remove all text from an orphan < to the end of the string
	strWorking = strWorking.replace(/<(.|\n)+/gi,"");
			
	// remove all remaining braces
	strWorking = strWorking.replace(/{/gi,"");
	strWorking = strWorking.replace(/}/gi,"");

	// append elipses if we have anything left
	if (strWorking.length > 0) {
		strWorking += '...<br>';
	}
	else {
		strWorking = '';
	}

	// write finished product
	document.write(strWorking);
}
