function setname(){
	window.name = 'main';
}

function ch_bgc(id,bgc){ 

	if(document.all)
		document.all(id).style.background = bgc;
	else if (document.getElementById)
		document.getElementById(id).style.background = bgc;
}

function ch_mnu(mnu) {
	top.menu.location.href = mnu;
	return false;
}

function showsub(id){
	if(document.all)
		OBJ = document.all(id).style;
	else if(document.getElementById)
		OBJ = document.getElementById(id).style;
	if(OBJ)
		OBJ.display=='none'?OBJ.display='':OBJ.display='none';
}


var ax
var cntx = (screen.width / 2);
var cnty = (screen.height / 2 - 350);
if(navigator.userAgent.indexOf('MSIE')!=-1){
	ax = 'left='+cntx
	ax += ',top='+cnty;
}
else if(navigator.userAgent.indexOf('Mozilla')!=-1){
	ax = 'screenX='+cntx
	ax += ',screenY='+cnty;
}

function hint(nam,wth,hgt){
		hntW = window.open(nam+".html","hintpoint","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+wth+",height="+hgt+","+ax);
		hgt=eval(hgt)+eval(35)
		hntW.resizeTo(wth, hgt)
		nam=0;
		wth=0;
		hgt=0;
		hntW.focus();
}
