initPage();
var popUpWin=0;
function popUpWindow(URLStr, strName, left, top, width, height) {
	if(popUpWin) {
		if(!popUpWin.closed) popUpWin.close();
	}
	popUpWin = open(URLStr, strName, 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function listFind(strNeedle,strHayStack,strDelimiter) {
	var arrList = strHayStack.split(",");
	var i=0;
	var intReturn = 0;
	
	for (i=0;i < arrList.length;i++) {
		if (strNeedle == arrList[i]) intReturn = i+1;
	}
	return intReturn;
}

// Function for create and object from ID
function createObject(strID) {
	var obj1 = (document.getElementById) ? document.getElementById(strID) : eval("document.all[strID]");
	return obj1;
}

function rollOver(strID,strSection) {
	MM_swapImage(strID,'','/images/nav1/' + strSection + '_on.gif',1);
}

function getQueryStringVar(strVar,strDefault) {
	//returns value of specified query string var
	var strVal = strDefault;
	var arrTmp1 = document.location.search.toLowerCase().split("?");
	arrTmp1 = arrTmp1[1].split("&");
	for (i=0;i < arrTmp1.length;i++) {
		arrTmp2 = arrTmp1[i].split("=");
		if (strVar.toLowerCase() == arrTmp2[0]) {
			strVal = arrTmp2[1];
		}
	}
	return(strVal);
}

function getScriptName() {
	var strVal = "";
	var arrTmp = document.location.toString().split("?");
	strVal = arrTmp[0];
	return(strVal);
}