function printVacancy(vacancyID)
{

	width = 650;
	height = 650;

		var left = (screen.width/2) - width/2;
		var top = (screen.height/2) - height/2;


	popUpWin = open('printvacancy.php?id='+vacancyID, 'print'+vacancyID, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

}


function printPage(pagename, pageid, level)
{

	width = 650;
	height = 650;
	var left = (screen.width/2) - width/2;
	var top = (screen.height/2) - height/2;
	
	if (level) {

	popUpWin = open('../printpage.php?type='+pagename+'&id='+pageid, 'print'+pageid, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

	}
	
	if (!level) {
		
	popUpWin = open('printpage.php?type='+pagename+'&id='+pageid, 'print'+pageid, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		
	}
}
if(!document.getElementById)
{
	if(document.all)
	{
		accessObj = function()
		{
			if(typeof document.all[arguments[0]]!="undefined")
				return document.all[arguments[0]];
			else
				return null;
		}
	}
	else if(document.layers)
	{
		accessObj = function()
		{
			if(typeof document[arguments[0]]!="undefined")
				return document[arguments[0]];
			else
				return null;
		}
	}
}
else
{
	accessObj = function()
	{
		return document.getElementById(arguments[0]);
	}
}

function hideDiv(divID)
{   
    var target = accessObj(divID);
    target.style.display = "none";
}
function showDiv(divID)
{   
    var target = accessObj(divID);
    target.style.display = "block";
}
