var over=false;
function findHeight(obj){
return obj.offsetHeight
}
function findWidth(obj){
return obj.offsetWidth
}
function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}
function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

function setTrue(){
over=true;
}
function setFalse(){
over=false;
}
function sterge(i){
if(over==false){
document.getElementById("subm"+i).style.visibility="hidden";}
}
function num(ob){
poslink=document.getElementById(ob);
document.myform.texta.href=ob.href;
}
function showml(i,posx,posy,h,w){
over=true;
ws=document.getElementById("subm"+i).offsetWidth;
document.getElementById("subm"+i).style.visibility="visible";

//document.getElementById("subm"+i).style.top=posy-h+91;
document.getElementById("subm"+i).style.top=posy;
document.getElementById("subm"+i).style.left=posx-ws+w+180;
}
function showmr(i,posx,posy,h,w){
over=true;
ws=document.getElementById("subm"+i).offsetWidth;
document.getElementById("subm"+i).style.visibility="visible";

//document.getElementById("subm"+i).style.top=posy-h+91;
document.getElementById("subm"+i).style.top=posy;
document.getElementById("subm"+i).style.left=posx+ws-w-180-111;
}
function subm_out(i){
if(over==false){
document.getElementById("subm"+i).style.visibility="hidden";}
}
