
	// SELECT nav header
	function nav_on(navID) {
		document.getElementById(navID).src = "images/header_nav/" + navID + "-over.gif";
	}
	// NAV SWAP image by reference/state
	function navSwapGif(_this, _state) {
		_this.src = "images/header_nav/" + _this.id + "-" + _state + ".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
		winName = stripClean(PageURL) //srtip URL for windowname so that each unique link will have a unique window
		return window.open(PageURL,winName,'width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes')
	
	}
	// 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");
		
		//alert(eLink.length)
		
		for(var i=0;i<eLink.length;i++){
			eHref = eLink[i].getAttribute('href')
			if(eHref) {
			
				if (eHref.indexOf("javascript") < 0) {
				
					domain = window.location.href.split('.com/')[0];
					if (eHref.indexOf(domain) > -1) {
					
					} else {
						eHref = domain + ".com/"+ eHref
					}
					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; }
	//
	function stripClean(_string) {
		_string = _string.replace(/\./g,"");
		_string = _string.replace(/-/g,"");
		_string = _string.replace(/\(/g,"");
		_string = _string.replace(/\)/g,"");
		_string = _string.replace(/ /g,"");
		_string = _string.replace(/:/g,"");
		_string = _string.replace(/\//g,"");
		return _string
	}
	
function formatCurrency(strValue)
{
	strValue = strValue.toString().replace(/\$|\,/g,'');
	dblValue = parseFloat(strValue);

	blnSign = (dblValue == (dblValue = Math.abs(dblValue)));
	dblValue = Math.floor(dblValue*100+0.50000000001);
	intCents = dblValue%100;
	strCents = intCents.toString();
	dblValue = Math.floor(dblValue/100).toString();
	if(intCents<10)
		strCents = "0" + strCents;
	for (var i = 0; i < Math.floor((dblValue.length-(1+i))/3); i++)
		dblValue = dblValue.substring(0,dblValue.length-(4*i+3))+','+
		dblValue.substring(dblValue.length-(4*i+3));
	return (((blnSign)?'':'-') + '$' + dblValue + '.' + strCents);
}

	function emailConfirmation(emailAddress) {
		eDiv = document.getElementById("ConfirmationHTML")
		if (document.frames) {
			eFrame = document.emailFrame
			eFrame.document.getElementById("__Arg1").value = confNumber
			eFrame.document.getElementById("__Arg2").value = emailAddress
			eFrame.document.getElementById("TextBox1").value = eDiv.innerHTML
			eFrame.document.getElementById("Form1").submit()
		} else {
			eFrame = document.getElementById("emailFrame")
			eFrame.contentWindow.document.getElementById("__Arg1").value = confNumber
			eFrame.contentWindow.document.getElementById("__Arg2").value = emailAddress
			eFrame.contentWindow.document.getElementById("TextBox1").value = eDiv.innerHTML
			eFrame.contentWindow.document.getElementById("Form1").submit()
		}
	}
	function sendConfirmation() {
		eAddress = document.getElementById("sendEmailAddress").value
		emailConfirmation(eAddress)
	}
	function chgStatus(_status) {
		if (_status.length > 0)	{
			setTimeout('window.status = "' + _status +'"',1);
		} else {
			setTimeout('window.status = ""',1);
		}
	}