/* ******************************* */
/* 					author: nick56 */
/* 		 Creation date: 27/09/2002 */
/* ******************************* */
na = navigator.appName != "Microsoft Internet Explorer"
nu = navigator.userAgent.toLowerCase();
op = (nu.indexOf("opera") != -1);
isIE5 = !na && !op && document.getElementById

function openwin(wid, ht, loc, r) {
  var w = wid;
  var h = ht
  var lp = (screen.width) ? (screen.width-w)/2 : 0;
  var tp = (screen.height) ? (screen.height-h)/2 : 0;
  var attrs = 'height=' + h + ',width=' + w + ',top=' + tp + ',left=' + lp + ', resizable=' + r + ', toolbar=no';
  window.open(loc, "", attrs)
} 

function right(e) 
{
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
	return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
	{
	alert(" by AlmavivA Finance ©2008");
	return false;
	}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;

function modelesswin(url,mwidth,mheight)
{
if (document.all&&window.print) //ie5
	eval('window.showModelessDialog(url,"","help:no;resizable:no;scrollbars=no;status=no;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else // netscape
	eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=0,scrollbars=0")')
}