
	// SELECT nav header
	function nav_on(navID) {
		document.getElementById("Nav_" + navID).src = "../images/" + navID + "_on.gif";
	}
	// SWAP image by reference/state
	function imgSwapGif(_this, _state) {
		_this.src = "images/" + _this.id + "_" + _state + ".gif";
	}
	// SWAP image by reference/state
	function imgSwapJpg(_this, _state) {
		_this.src = "images/" + _this.id + "_" + _state + ".jpg";
	}
	// SWAP image by reference/src
	function imgSwapSrc(_this, _src) {
		_this.src = "images/" + _src;
	}
	// SWAP image by id/src
	function imgSwapId(_id, _src) {
		_this = document.getElementById(_id)
		_this.src = "images/" + _src;
	}

	// LOAD page
	function loadPage(PageURL) {
		window.location.href = PageURL;
	}
	// OPEN new window
	function openPage(PageURL,w,h) {
		width=w
		height=h
		window.open(PageURL,'newWindow','width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes')
	}
	// LOAD IFRAME by ID
	function loadFrame(divID, frameID, PageURL, width, height) {
		var divElement = document.getElementById(divID);
		divElement.style.top = document.body.scrollTop + 10;
		var iframeElement = parent.document.getElementById(frameID); 
		frames[frameID].location.href=PageURL;
		iframeElement.style.height = height;
		iframeElement.style.width = width;
	}
	// HIDE Element by ID
	function hideEle(inID) {
		document.getElementById(inID).style.visibility = "hidden";
	}
	// SHOW Element by ID
	function showEle(inID) {
		document.getElementById(inID).style.visibility = "visible";
	}
	// NONE Element by ID
	function removeEle(inID) {
		try {document.getElementById(inID).style.display = "none";}
		catch (e) {};
	}
	// BLOCK Element by ID
	function displayEle(inID) {
		try {document.getElementById(inID).style.display = "block";}
		catch (e) {};
	}
	// HTTP/HTTPS
	function secit(_secure) {
		var eLink=document.getElementsByTagName("a");
		for(var i=0;i<eLink.length;i++){
			eHref = eLink[i].getAttribute('href')
			if (_secure) eHref = eHref.replace("http","https");
			else eHref = eHref.replace("https","http");
			eLink[i].href = eHref
		}
	}
	// SET JS YEAR to 4 digit
	function y2k(_year) { return (_year < 1000) ? _year + 1900 : _year; }
	

	