/*************************
* VERSACRUM.COM
*
*	util.js
*************************/

//---------------------------------//
//            variabili            //
//---------------------------------//
var browName = navigator.appName;
var browVers = parseInt(navigator.appVersion);

// per evento OnClick dell'oggetto Anchor
var okJump;

if(browName == "Netscape") {
 	noJump = false; //
 	okJump = true;
} else // Explorer
	if(browVers >= 4)
		noJump = false;
	else
		noJump = true;


/*******************************/
/*       deselectCheckbox      */
/*******************************/	
function deselectCheckbox(chkbox) {
	if (chkbox == 0)
		document.forms[0].nation.checked=false;
	else
		document.forms[0].nonation.checked=false;
	return;
}

/*******************************/
/*            openWin          */
/*******************************/	
function openWin(url2go, titolo, wid, heig, stat, resize) {
	//alert(browName + " " + browVers);
	
	if(browName == "Netscape") {
		if(browVers >= 4) {
			gWin = window.open(url2go, titolo, "width=" + wid + ",height=" + heig +",screenX=1,screenY=1,status=" + stat +",resizeable=" + resize);
			return noJump;
		}
		else if(browVers == 3) {
			gWin = window.open("", titolo, "width=" + wid + ",height=" + heig +",status=" + stat +",resizeable=" + resize); 
			gWin.location.href=url2go;
			return noJump;
		};
		return okJump;
	} else { // MSIE
		gWin = window.open(url2go, titolo, "width="+wid+" ,height="+heig+",status="+stat+",resizeable="+resize);
		return noJump;
	};

	return okJump;
}

/*******************************/
/*            goBack           */
/*******************************/	
function goBack(numPages) {
	history.go(-numPages);
	return true;
}