var ns4 = (document.layers) ? true : false;
var ie4 = (document.all) ? true : false;

function xAddtoFav(xLink,xDesc) {
	if (window.sidebar) {
		window.sidebar.addPanel(xDesc, xLink,"");
	} else if( document.all ) {
		window.external.AddFavorite(xLink, xDesc);
	} else if( window.opera && window.print ) {
		return true;
	}
}
function xMakeHome(xLink) {
	if (document.all) {
		this.style.behavior='url(#default#homepage)';
		this.setHomePage(xLink);
//		window.external.setHomePage(xLink);
	}
	return;
}
function xPrintMe() {
	self.print();
}
function xStatMsg(xMsg) {
	status=xMsg;
	document.x_returnValue = true;
}
function xOpenWin( wName, wURL, wWidth, wHeight, wScroll, wResize ) {
	window.open(wURL,wName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+wScroll+',resizable='+wResize+',width='+wWidth+',height='+wHeight);
}
function xGetObject(id) {
	if (ie4) { return document.all[id]; }
	else { return document.getElementById(id); }
}
function xVisible(id) {
	myDiv = xGetObject(id);
	myDiv.style.visibility = 'visible';
}
function xHidden(id) {
	myDiv = xGetObject(id);
	myDiv.style.visibility = 'hidden';
}
function xNVisible(id) {
	myDiv = xGetObject(id);
	myDiv.style.display = 'block';
}
function xNHidden(id) {
	myDiv = xGetObject(id);
	myDiv.style.display = 'none';
}

