// JavaScript functions, created 10.05.2005 by Theresa Kibler for OCDS website

//Disable right mouse click 
var message="Function Disabled";

function clickIE4()
{
if (event.button == 2)
{
alert(message);
return false;
}
}

function clickNS4(e)
{
	if (document.layers || document.getElementById && !document.all)
	{
		if (e.which==2 || e.which==3)
		{
		alert(message);
		return false;
		}
	}
}

if (document.layers)
{
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all && !document.getElementById)
{
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")


//Hide status bar url for every link on the page
function hidestatus()
{
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus


//Pops up a new browser window with no menu, address or status bar (to hide url)
//Works in IE, Firefox & Opera... not in Netscape
function popUp(URL) 
{
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=1024,height=768,left = 0,top = 0');");
}

//Javascript window.open function to open a pre-sized window to an internal page on top of the active window
//default window sizes & variable values for links below
//<a href="#" onClick="window.open('careerarticle2.shtm','','left=400, top=50, screenX=400, screenY=50, width=600, height=600, toolbar=no, menubar=no, scrollbars=yes, resizable=yes')">


//Opens a pre-sized window to an external site on top of the active window
//default window sizes & variable values for links below
//<a href="javascript:na_open_window('win', 'http://www.acinet.org/acinet/jobwrite_search.asp', 400, 50, 600, 500, 1, 0, 0, 1, 1);">

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}