<!--
// Block right click on window
	if (window.Event) 
	document.captureEvents(Event.MOUSEUP); 
	function nocontextmenu()  
	{
	event.cancelBubble = true
	event.returnValue = false;
	return false;
	}
	function norightclick(e)	
	{
	if (window.Event)	
	{
	if (e.which == 2 || e.which == 3)
	return false;
	}
	else
	if (event.button == 2 || event.button == 3)
	{
	event.cancelBubble = true
	event.returnValue = false;
	return false;
	}	
	}
	document.oncontextmenu = nocontextmenu;		
	document.onmousedown = norightclick;		

// TAB
function dotab(first,next){
if (first.getAttribute&&first.value.length==first.getAttribute("maxlength"))
next.focus();
}

var isIE = (document.all)? true:false;
var isNS = (document.layers)? true:false;
var isNS6 = (document.getElementById&&!document.all)? true:false;

function highlight(field) {
  field.focus();
  field.select();
}


function newWin(name, url, width, height, args) {
	var newWin = new Object();

	newWin.args = args;
	newWin.url = url;
	newWin.name = name;
	newWin.width = width;
	newWin.height = height;

	if (document.layers) {// browser is NN
		newWin.left = window.screenX + ((window.outerWidth - newWin.width) / 2);
		newWin.top = window.screenY + ((window.outerHeight - newWin.height) / 2);
		var attr = 'screenX=' + newWin.left + ',screenY=' + newWin.top + ',resizable=yes,width=' + newWin.width + ',height=' + newWin.height + ',' + newWin.args;
	}
	else {// browser is MSIE
		newWin.left = (screen.width - newWin.width) / 2;
		newWin.top = (screen.height - newWin.height) / 2;
		var attr = 'left=' + newWin.left + ',top=' + newWin.top + ',width=' + newWin.width + ',height=' + newWin.height + ',' + newWin.args;
	}

	newWin.win=window.open(newWin.url, newWin.name, attr);
	newWin.win.opener=self;
	newWin.win.focus();
}



function goback() {
	 history.go(-1);
}


function printPage() {
	if (window.print) {
		setTimeout('window.print();', 200);
	} else {
		alert("Please choose the \"print\" option from the file menu in your browser");
	}
}

//-->

