// hide layer
function hideDiv(layer_ref) {

	// Internet Explorer 
	if (document.all) {
		eval( "document.all." + layer_ref + ".style.display = 'none'"); 
	} 
	
	// Netscape 
	if (document.layers) {
		document.layers[layer_ref].display = 'none'; 
	}

	// Others 
	if (document.getElementById &&!document.all) { 
		hza = document.getElementById(layer_ref); 
		state = hza.style.display;
		hza.style.display = 'none'; 
	}

}

// Automatic Width 
function pageWidth() { return window.innerWidth != null? window.innerWidth: document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth:document.body != null? document.body.clientWidth:null;}

// Automatic Height 
function pageHeight() { return window.innerHeight != null? window.innerHeight: document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight:document.body != null? document.body.clientHeight:null;}

// Hide Selects 
function hideShowSelects(ACTION){

	var oSelects=document.getElementsByTagName("select");
	for(var i=0;i<oSelects.length;i++)
		oSelects[i].style.display = ACTION;

}
