bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
//   if (bNS && e.which > 1){
//	  alert('Sorry, right clicking is not enabled.');
//      return false;
//   } else if (bIE && (event.button >1)) {
//     alert('Sorry, right clicking is not enabled.');
//     return false;
//   }
}

function showDialog(type,message)
{
    var myObject = new Object();
    myObject.MsgBoxType = type;
    myObject.Message = message;
    window.showModalDialog("MessageBox.htm",myObject,"dialogHeight: 250px; dialogWidth: 250px; dialogTop: 300px; dialogLeft: 400px; edge: Sunken; center: Yes; resizable: Yes; status: Yes;");
}

function openResource(intID, intSiteID){
	w = 800;
	h = 670;

	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	strWindowName = "resource" + intID;
	strParams = "height=" + h + ", width=" + w + ", left=" + LeftPosition + ", top=" + TopPosition + ", menubar=0, location=0, resizable=1, status=0";

	var win = window.open("resource.aspx?ID=" + intID + "&sid=" + intSiteID + "&cw=1", strWindowName, strParams);
	win.focus();
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;

