function Hide_Unhide(theLayers, isChecked) {		
	var type	="none";
	var visType = "hidden";
	if (isChecked) {
		type	= "block";
		visType = "visible";
	}

	//alert(theLayers);		
	if (document.all) {
		//var i, s_len;			
		var thestyle;
		var f_name;
		var i;
			
		f_name = theLayers;
		thestyle = eval('document.getElementById("'+ theLayers +'")');
		thestyle.style.display		= type;
		thestyle.style.visibility	= visType;
	}
	else {
		//NS 7 and above 
		if ( document.getElementById) { 				
			var thestyle;
			var f_name;
			var i;
			
			f_name = theLayers;
			thestyle = eval('document.getElementById("'+ theLayers +'")');
			thestyle.style.display		= type;
			thestyle.style.visibility	= visType;
		}
	}
}

function displayServTxt(strText) {
	Hide_Unhide("top_msg", true);	
	var thestyle;
	var f_name;
	var i;			
	var theLayer;	
	f_name = "top_msg";	
	if (document.all) {
		//var i, s_len;			
		theLayer = eval('document.getElementById("'+ f_name +'")');
	}
	else {
		//NS 7 and above 
		if ( document.getElementById) { 				
			theLayer = eval('document.getElementById("'+ f_name +'")');
		}
	}	
	if ( theLayer ) {
		if ( strText.length <= 0 ) {				
			theLayer.innerHTML = "";
		}
		else {
			theLayer.innerHTML = strText;
		}
	}
}
	
/*****************************************
* Dissolving Image Rollover- By Roy Whittle (http://www.javascript-fx.com/)
* Featured on/available at http://www.dynamicdrive.com/
* This notice must stay intact for use
*****************************************/	
//Generate transition CSS (transition=0 to 23)
//document.write('<STYLE TYPE="text/css">.imgTrans{ filter:revealTrans(duration=0.4,transition=12) }</STYLE>');

//Uncomment the next line for fading rollovers instead of dissolving:
//document.write('<STYLE TYPE="text/css">.imgTrans{ filter:blendTrans(duration=0.4) }</STYLE>');

var onImages=new Array();
function Rollover(imgName, imgSrc)
{
	onImages[imgName] = new Image();
	onImages[imgName].src = imgSrc;
}

function turnOn(imgName){ 
	//if(document.images[imgName].filters != null)
		//document.images[imgName].filters[0].apply();
	document.images[imgName].offSrc = document.images[imgName].src;
	document.images[imgName].src    = onImages[imgName].src;
	//if(document.images[imgName].filters != null)
		//document.images[imgName].filters[0].play();
}

function turnOff(imgName){ 
	//if(document.images[imgName].filters != null)
		//document.images[imgName].filters[0].stop();
	document.images[imgName].src = document.images[imgName].offSrc;
}
