var iMPoint=new Image(11,11);
iMPoint.src="./images/MPointer.gif";

function pageinit(){

}

function viewDoc(docid){
viewdocwin = window.open('./docviewer.php?docid='+docid,'viewdocwin','top=200px, left=150px, width='+(screen.width-300)+'px, height=500px, resizable=yes, scrollbars=yes, status=no, toolbar=no, location=no, menubar=no');
//StopMedWin.smedpage(imno, imname);
viewdocwin.focus();
}

function viewTaggedDoc(doctag){
viewdocwin = window.open('./docviewer.php?doctag='+doctag,'viewdocwin','top=200px, left=150px, width='+(screen.width-300)+'px, height=500px, resizable=yes, scrollbars=yes, status=no, toolbar=no, location=no, menubar=no');
//StopMedWin.smedpage(imno, imname);
viewdocwin.focus();
}

function getHelp(){
var locn=self.location.href;
var lpage=locn.substring(locn.lastIndexOf('/') + 1).split('.');
var doctag='help_'+lpage[0];

viewdocwin = window.open('./helppage.php?doctag='+doctag,'viewdocwin','top=200px, left=150px, width=800px, height=600px, resizable=yes, scrollbars=yes, status=no, toolbar=no, location=no, menubar=no');
viewdocwin.focus();
}

function showSubMenu(parent, child){
child.style.left=(parent.offsetLeft-2)+"px";
child.style.top=(parent.offsetTop+parent.offsetHeight-2)+"px";
child.style.visibility="visible";

}

function showHSubMenu(parent, child, mpno){
document.getElementById('hbsubmenus').innerHTML=child.innerHTML;
//child.style.visibility='visible';
setMPoint(mpno);
}

function setMPoint(mpno){
	for(var i = 0; i<7; i++){
	try{document.getElementById('btm['+i+']').innerHTML='&nbsp;';}
	catch(er){}
	}
var imgcell=document.getElementById('btm['+mpno+']');

imgcell.replaceChild(iMPoint, imgcell.firstChild);
//document.getElementById('btm['+mpno+']').innerHTML=iMPoint.outerHTML;	
}