// (C) Netlogic, 2003
OnLoadHitchs = function() { };

window.onload = function() {
	GeckoALTfixer();
	ValidateForms();
}

function Open(url, w, h) {
	w = window.open(url,'popUp','toolbar=no,status=no,location=no,menubar=no,resizable=no,scrollbars=yes,width='+w+',height='+h);
	w.focus();
}
/*
function changeIcon(img) {
	if(){
	}else{
	}
}
*/
function printIt() {
	var NS = (navigator.appName == "Netscape");
	var VERSION = parseInt(navigator.appVersion);

	if (VERSION > 3) {
		if (NS) {
			window.print() ;

		} else {
			var WebBrowser = '<OBJECT ID="WebBrowser1" width="0" height="0" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
			document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
			WebBrowser1.ExecWB(6, 2);
			WebBrowser1.outerHTML = "";
		}
	}
}

function GeckoALTfixer() {
	if (navigator.product && navigator.product == 'Gecko') {
		var i, images = document.getElementsByTagName('IMG');
		for (i = 0; i < images.length; i++) {
			with (images[i]) {
				if (getAttribute('alt')) setAttribute('title', getAttribute('alt'));
			}
		}
	}
}

function LiShowHide(id) {
		x = document.getElementById(id).style.display; 
                document.getElementById(id).style.display = (x === 'block' ? 'none' : 'block');
                document.getElementById(id).tags('div').style.display = (x === 'block' ? 'none' : 'block');
}

function OptionDisplay(id) {
	iddiv = id + '-div';
	if (document.getElementById(id).checked == true){
		document.getElementById(iddiv).style.display='block';
	}else{
		document.getElementById(iddiv).style.display='none';
	};
}