<!-- Begin
function MyPopUpWin(imgname) {
	var iMyWidth;
	var iMyHeight;
	//half the screen width minus half the new window width (plus 5 pixel borders).
	iMyWidth = (window.screen.width/2) - 315;
	//half the screen height minus half the new window height (plus title and status bars).
	iMyHeight = (window.screen.height/2) - 240;
	weblink=("bigimage.asp?imgname="+imgname);
	var win = window.open(weblink,"Gnostic_Centre","status=no,height=480,width=630,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	win.focus();
}

function doButtons(name,pic) {
	document[name].src=pic;
}

function doButOver(name) {
	//eval('doButtons("menu'+name+'a","images/menu_red2.gif")')
}

function doButOut(name) {
	//eval('doButtons("menu'+name+'a","images/menu_red2.gif")')
}

function ColorTD(elem,color){
	eval('document.all["'+elem+'"].style.backgroundColor="'+color+'"')
}


function changeImage(imgDocID,imgObjName)
{
	//document.images [imgDocID].src=eval(imgObjName + ".src")
	document.images [imgDocID].src=imgObjName
}

// Misc Variables
	Menu_XOffset = 180	// 180
	Menu_YOffset = 2	// -2
	Menu_Over = null	// Menu currently highlighted

//function ColorTD(elem,color){
//	eval('document.all["'+elem+'"].style.backgroundColor="'+color+'"')
//}

function ShowMenu(elem,LayerName,Level){
	//if (LayerName != "Search") {HideDiv();}

	if(document.layers){
		if (Level==0){
			eval('document.layers["'+LayerName+'"].left = findPosX(elem) + Menu_XOffset + 1')
			eval('document.layers["'+LayerName+'"].top = findPosY(elem) + Menu_YOffset')
		}
		eval('document.layers["'+layerName+'"].visibility="visible"')
	}
	if(document.all){
		if (Level==0){
			eval('document.all["'+LayerName+'"].style.left = findPosX(elem) + Menu_XOffset')
			eval('document.all["'+LayerName+'"].style.top = findPosY(elem) + Menu_YOffset')
		}
		eval('document.all["'+LayerName+'"].style.visibility = "visible"')
	}
	if(!document.all && document.getElementById){
		if (Level==0){
			document.getElementById(LayerName).style.left = findPosX(elem) + Menu_XOffset
			document.getElementById(LayerName).style.top = findPosY(elem) + Menu_YOffset
		}
		document.getElementById(LayerName).style.visibility = "visible"
	}
}

function HideMenu(elem,LayerName,Level){

	if(document.layers){
		eval('document.layers["'+layerName+'"].visibility="hidden"')
	}
	if(document.all){
		eval('document.all["'+LayerName+'"].style.visibility = "hidden"')
	}
	if(!document.all && document.getElementById){
		document.getElementById(LayerName).style.visibility = "hidden"
	}
}


function findPosX(obj){
	var curleft=0;
		if(document.getElementById||document.all){while(obj.offsetParent){curleft+=obj.offsetLeft;obj=obj.offsetParent;}}
		else if(document.layers){curleft+=obj.x;}
	return curleft;}

function findPosY(obj){
	var curtop=0;
		if(document.getElementById||document.all){while(obj.offsetParent){curtop+=obj.offsetTop;obj=obj.offsetParent;}}
		else if(document.layers){curtop+=obj.y;}
	return curtop;}


//if(document.layers)document.captureEvents(Event.MOUSEMOVE);document.onmouseup=HideDiv;
function HideDiv(){
	if(document.layers){document.Search.top = -999}
	if(document.all){Search.style.top = -999}
	if(!document.all && document.getElementById){document.getElementById('Search').style.top = -999}
	//changeImage("img5","img51");
}

function checkString(){
	var srchString = "";
	srchString = document.frmSearch.srchstring.value;
	if(srchString.length == 0)
	{
		alert("Please enter atleast one word for the search");
		document.frmSearch.srchstring.focus();
		return false;
	}
	else
		return true;
}


function showprintpage(){
popUpWin = window.open('print.htm','smallWin','height=600,width=615,toolbar=0,location=0, directories=0,status=0,menubar=0,scrollbars=yes,resizable=0')
if (navigator.appName == 'Netscape') {popUpWin.focus()}
}

function MakeHand(Element)
{
	with(Element)
	{
	style.cursor='pointer'; style.cursor='hand';
	}
}

function MakeGrey(Element){
	with(Element) {	
		if(style.backgroundColor!='#ff7f00' && style.backgroundColor!='rgb(255, 127, 0)'){
			MakeHand(Element)
			style.backgroundColor='#D0E0F9';
		}
	}
}

function MakeOriginal(Element) {
	with(Element) {
		//alert(style.backgroundColor)
		if(style.backgroundColor!='#ff7f00' && style.backgroundColor!='rgb(255, 127, 0)')
			style.backgroundColor='';
	}
}

function ShowPage(Page)
{
	document.location = Page;
}

function doParent(name,pic) {
	parent.document[name].src=pic;
}

function doCaptionPar(caption) {
	parent.document.getElementById("caption").innerText = caption;
}


//End -->

