Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with java script menu

Status
Not open for further replies.

mikezx10

Programmer
Mar 5, 2010
3
US
I know this is really lame, but I just started at a place and dont know java script (they never mentioned it either) Could any one help me understand this? I posted the html and the JS for the menu it reads an xml file but im not sure how the menu and sub menus work

I will be looking at it all weekend :(

Thanks in advance ( hope my karma from posts on others sites does me good)
Peace!
Html:
<BODY topmargin=0 rightmargin=0 leftmargin=0 bottommargin=0 onunload="vbscript:WindowClose">


<input type="hidden" id="appSpcRole" value="2">
<input type="hidden" id="IsSetupDone" value="0">
<input type="hidden" id="WindowsUserLogin" value="C:\FT Excel 2007">
<div id=lyr1 style="position:absolute;display:none;zIndex:15;" onmouseover="this.style.display='block'"></div>
<div id=lyr2 style="position:absolute;display:none;zIndex:15;" onmouseover="this.style.display='block'"></div>
<div id=lyr3 style="position:absolute;display:none;zIndex:15;" onmouseover="this.style.display='block'"></div>
<div id=lyr4 style="position:absolute;display:none;zIndex:15;" onmouseover="this.style.display='block'"></div>
<div id=lyr5 style="position:absolute;display:none;zIndex:15;" onmouseover="this.style.display='block'"></div>
<table border="0" cellspacing="0" cellpadding="0" id="Hedder" >

<tr onmouseover="HideTemp(1)" style="height:58px">
<td width="20%" align="left" valign="top"><img src="images/logo.jpg" width="199" height="58"></td>
<td width="10%" align="left" valign="top"><img src="images/header1.jpg" width="164" height="58"></td>
<td width="62%" align="left" valign="top" background= "images/header2.jpg" height="58"></td>
<td width="4%" align="right" valign="top"><img src="images/header3.jpg" width="296" height="58"></td>
<td width="4%" align="right" valign="top"><img src="images/header4.jpg" width="179" height="58"></td>
</tr>

<tr valign="top" style="height:30px" >
<td width="20%" align="left" ><img src="images/logo2.jpg" width="199"></td>
<td colspan="4" bgcolor="#93A7C6" valign="center"><span id="mainmenu" style="display:none"></span></td>
</tr>

<tr bgcolor="#D9E3F2">
<td colspan=5 >
<div id="menu" style="display:none" ></div>
</td>
</tr>

<tr bgcolor="#D9E3F2">
<td colspan=5 ><div id="SelCri" style="display:none"></div></td>
</tr>
</table>



<table id="Ct" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>

<iFRAME id="Cnt" src="#" border='0' scrolling="yes" WIDTH='100%' height='100%'></iframe>
<a HREF="javascript:TPB();" onclick="window.status='';return true;" id="TPS">

</td>
</tr>

</table>
</body>
</html>
Java script:
/* Function for Main Menu , to rescrict some links depending on appSpcRole ( Application sepecific role ) */

function Process()
{
var xmlObj=xmlDoc.documentElement;
var i=0,Objs=0;

Objs=xmlObj.childNodes.length;
str="<table border=0 cellpadding=0 cellspacing=0 width='90%'><tr>";

var wi= Math.floor((100/Objs));



for(i=0;i<Objs;i++)
{

if (xmlObj.childNodes(i).getAttribute("Dire")=="D")
{

if((xmlObj.childNodes(i).getAttribute("Code")=="FIRMS") ||
(xmlObj.childNodes(i).getAttribute("Code")=="PORT") ||
(xmlObj.childNodes(i).getAttribute("Code")=="TOOLS")||
(xmlObj.childNodes(i).getAttribute("Code")=="ADM")||
(xmlObj.childNodes(i).getAttribute("Code")=="RSADTEST"))
str =str+ "<td align=center id="+ xmlObj.childNodes(i).getAttribute("Code")
+" class='menu_text'style='background:#93A7C6' width="+ wi +"% ><span id="
+ xmlObj.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onmouseover= ClearAll();ProcessDiv('"
+ xmlObj.childNodes(i).getAttribute("Code") + "',0); class='menu_text'>"
+ xmlObj.childNodes(i).getAttribute("id") + "</a></span></td>"+ Bar;
}

if (xmlObj.childNodes(i).getAttribute("Dire")=="")
{
if ((xmlObj.childNodes(i).getAttribute("Code")!="LOUT"))
str =str+ "<td align=center id="+ xmlObj.childNodes(i).getAttribute("Code")
+" class='menu_text'style='background:#93A7C6' width="+ wi +"%><span id="
+ xmlObj.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onmouseover='ClearAll();' onclick= menu.innerHTML='';SelCri.innerHTML='';ClearAll();ShowContent('"
+ xmlObj.childNodes(i).getAttribute("Link") +"','"+xmlObj.childNodes(i).getAttribute("Code")
+"'); class='menu_text'>" + xmlObj.childNodes(i).getAttribute("id") + "</a></span></td>"+ Bar;
else
str =str+ "<td align=center id="+ xmlObj.childNodes(i).getAttribute("Code")
+" class='menu_text'style='background:#93A7C6' width="+ wi +"%><span id="
+ xmlObj.childNodes(i).getAttribute("Code")
+"_T>  <a href='#'onmouseover='ClearAll();' onclick= menu.innerHTML='';SelCri.innerHTML='';ClearAll();ShowContent('"
+ xmlObj.childNodes(i).getAttribute("Link") +"','"+xmlObj.childNodes(i).getAttribute("Code")+"'); class='menu_text'>"
+ xmlObj.childNodes(i).getAttribute("id") + "</a></span></td>";
}

}

mainmenu.innerHTML = str +"</tr></table>";

document.getElementById("mainmenu").style.display="block";
ShowContent('Home.asp','HELP');
}


/* Function drop down menu */

function ProcessDiv(a,x)
{
document.getElementById("menu").style.display="block";

var obj = document.getElementById(a+"_T");
le=0;
to=0;
while (obj.offsetParent != null)
{
le += obj.offsetLeft;
to += obj.offsetTop;
obj = obj.offsetParent;
}
if(document.getElementById("lyr2")!=null)
document.getElementById("lyr2").style.display="none";

var xmlObj1 = (xmlDoc.getElementsByTagName(a))[0];
var na = (xmlObj1).getAttribute("id");
var i=0,Objs=0,le,to;
Objs=xmlObj1.childNodes.length;


/*if(a=="ADMDMS" || a=="FIRMS2" || a=="FIRMS5"||a=="RTOOLS" RSSSTA1)*/



if (a=="RSSSTA11" || a=="RSMRE3")
{
str="<div onmouseover=this.style.display='block'; ><table border='1' bordercolor='#C3C9D2' cellspacing=0 cellpadding=0><tr><td><table bgcolor='#D9E3F2' border='0' cellspacing='1' cellpadding='2' >";

for(i=0;i<Objs-1;++i)
{
if((xmlObj1.childNodes(i).childNodes.length==null) ||(xmlObj1.childNodes(i).childNodes.length==0))
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href=javascript:ShowContent('"+ xmlObj1.childNodes(i).getAttribute("Link")
+"','"+xmlObj1.childNodes(i).getAttribute("Code")+"') class='submenu_text' >"
+ xmlObj1.childNodes(i).getAttribute("id") +"</a></span></td></tr>";
str=str+"<tr><td bgcolor='#ffffff'></td></tr>";
}
}
if((xmlObj1.childNodes(Objs-1).childNodes.length==null) ||(xmlObj1.childNodes(Objs-1).childNodes.length==0))
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href=javascript:ShowContent('"+ xmlObj1.childNodes(i).getAttribute("Link")
+"','"+xmlObj1.childNodes(i).getAttribute("Code")+"') class='submenu_text' >"
+ xmlObj1.childNodes(Objs-1).getAttribute("id") +"</a></span></td></tr>";
}
str=str+"</table></td></tr></table></div>";



}

else if(a=="RSSSTA1")
{
str="<div onmouseover=this.style.display='block'; ><table border='1' bordercolor='#C3C9D2' cellspacing=0 cellpadding=0><tr><td><table bgcolor='#D9E3F2' border='0' cellspacing='1' cellpadding='2' >";

for(i=0;i<Objs-1;++i)
{
if((xmlObj1.childNodes(i).childNodes.length==null) ||(xmlObj1.childNodes(i).childNodes.length==0))
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left onmousemove=HideTemp3('"
+ xmlObj1.childNodes(i).getAttribute("Code") +"')><span id="
+ xmlObj1.childNodes(i).getAttribute("Code") +"_T>  <a href=javascript:ShowContent('"
+ xmlObj1.childNodes(i).getAttribute("Link") +"','"
+xmlObj1.childNodes(i).getAttribute("Code")+"') class='submenu_text' >"
+ xmlObj1.childNodes(i).getAttribute("id") +"</a></span></td></tr>";
str=str+"<tr><td bgcolor='#ffffff'></td></tr>";
}

else
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onmousemove=Process1('"+ xmlObj1.childNodes(i).getAttribute("Code")
+"',0) class='submenu_text' >" + xmlObj1.childNodes(i).getAttribute("id")
+"</a></span></td></tr>";
str=str+"<tr><td bgcolor='#ffffff'></td></tr>";
}



}
if((xmlObj1.childNodes(Objs-1).childNodes.length==null) ||(xmlObj1.childNodes(Objs-1).childNodes.length==0))
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left onmousemove=HideTemp3('"
+ xmlObj1.childNodes(i).getAttribute("Code") +"')><span id="
+ xmlObj1.childNodes(i).getAttribute("Code") +"_T>  <a href=javascript:ShowContent('"
+ xmlObj1.childNodes(i).getAttribute("Link") +"','"+xmlObj1.childNodes(i).getAttribute("Code")
+"') class='submenu_text' >" + xmlObj1.childNodes(Objs-1).getAttribute("id") +"</a></span></td></tr>";
}
str=str+"</table></td></tr></table></div>";

}

else if(a=="RSPCT" || a=="RSFCT" || a=="RSSSTA" || a=="RSMRE" || a=="RSDATE" || a=="RSDEN" || a=="RSMRST")
{

if(a=="RSSSTA")
{
// alert(Objs);
}


str="<div onmouseover=this.style.display='block'; ><table border='1' bordercolor='#C3C9D2' cellspacing=0 cellpadding=0><tr><td><table bgcolor='#D9E3F2' border='0' cellspacing='1' cellpadding='2' >";

for(i=0;i<Objs-1;++i)
{
if((xmlObj1.childNodes(i).childNodes.length==null) ||(xmlObj1.childNodes(i).childNodes.length==0))
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left onmousemove=HideTemp2('"
+ xmlObj1.childNodes(i).getAttribute("Code") +"')><span id="
+ xmlObj1.childNodes(i).getAttribute("Code") +"_T>  <a href=javascript:ShowContent('"
+ xmlObj1.childNodes(i).getAttribute("Link") +"','"+xmlObj1.childNodes(i).getAttribute("Code")+"') class='submenu_text' >" + xmlObj1.childNodes(i).getAttribute("id") +"</a></span></td></tr>";
str=str+"<tr><td bgcolor='#ffffff'></td></tr>";
}

else
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onmousemove=Process1('"+ xmlObj1.childNodes(i).getAttribute("Code")
+"',0) class='submenu_text' >" + xmlObj1.childNodes(i).getAttribute("id")
+"</a></span></td></tr>";
str=str+"<tr><td bgcolor='#ffffff'></td></tr>";
}


}
if((xmlObj1.childNodes(Objs-1).childNodes.length==null) ||(xmlObj1.childNodes(Objs-1).childNodes.length==0))
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left > <span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href=javascript:ShowContent('"+ xmlObj1.childNodes(i).getAttribute("Link")
+"','"+xmlObj1.childNodes(i).getAttribute("Code")+"') class='submenu_text' >"
+ xmlObj1.childNodes(Objs-1).getAttribute("id") +"</a></span></td></tr>";
}
else
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onmousemove=Process1('"+ xmlObj1.childNodes(i).getAttribute("Code")
+"',0) class='submenu_text'>" + xmlObj1.childNodes(Objs-1).getAttribute("id")
+"</a></span></td></tr>";

str=str+"</table></td></tr></table></div>";

}
else if (a=="ADMDMS" || a=="FIRMS2" || a=="FIRMS5" ||a=="RTOOLS")
{

str="<div onmouseover=this.style.display='block'; ><table border='1' bordercolor='#C3C9D2' cellspacing=0 cellpadding=0><tr><td><table bgcolor='#D9E3F2' border='0' cellspacing='1' cellpadding='2' >";

for(i=0;i<Objs-1;++i)
{
if((xmlObj1.childNodes(i).childNodes.length==null) ||(xmlObj1.childNodes(i).childNodes.length==0))
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left onmousemove= HideTemp1('"
+ xmlObj1.childNodes(i).getAttribute("Code") +"')><span id="
+ xmlObj1.childNodes(i).getAttribute("Code") +"_T>  <a href=javascript:ShowContent('"
+ xmlObj1.childNodes(i).getAttribute("Link") +"','"+xmlObj1.childNodes(i).getAttribute("Code")
+"') class='submenu_text' >" + xmlObj1.childNodes(i).getAttribute("id") +"</a></span></td></tr>";
str=str+"<tr><td bgcolor='#ffffff'></td></tr>";
}
else
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onmousemove=Process1('"+ xmlObj1.childNodes(i).getAttribute("Code")
+"',0) class='submenu_text' >" + xmlObj1.childNodes(i).getAttribute("id") +"</a></span></td></tr>";
str=str+"<tr><td bgcolor='#ffffff'></td></tr>";
}
}
if((xmlObj1.childNodes(Objs-1).childNodes.length==null) ||(xmlObj1.childNodes(Objs-1).childNodes.length==0))
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left onmousemove= HideTemp1('"
+ xmlObj1.childNodes(i).getAttribute("Code") +"') > <span id="
+ xmlObj1.childNodes(i).getAttribute("Code") +"_T>  <a href=javascript:ShowContent('"
+ xmlObj1.childNodes(i).getAttribute("Link") +"','"+xmlObj1.childNodes(i).getAttribute("Code")
+"') class='submenu_text' >" + xmlObj1.childNodes(Objs-1).getAttribute("id") +"</a></span></td></tr>";
}
else
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onmousemove=Process1('"+ xmlObj1.childNodes(i).getAttribute("Code")
+"',0) class='submenu_text'>" + xmlObj1.childNodes(Objs-1).getAttribute("id") +"</a></span></td></tr>";

str=str+"</table></td></tr></table></div>";
}
else
{

str="<div onmouseover=this.style.display='block';><table border='1' bordercolor='#C3C9D2' cellspacing=0 cellpadding=0><tr><td><table bgcolor='#D9E3F2' border='0' cellspacing='1' cellpadding='2' >";

for(i=0;i<Objs-1;++i)
{
if((xmlObj1.childNodes(i).childNodes.length==null) ||(xmlObj1.childNodes(i).childNodes.length==0))
{
if(a=='ADM' || a=='TOOLS' || a=='FIRMS'||a=='RSADTEST')
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left onmousemove= HideTemp('"
+ xmlObj1.childNodes(i).getAttribute("Code") +"')><span id="
+ xmlObj1.childNodes(i).getAttribute("Code") +"_T>  <a href=javascript:ShowContent('"
+ xmlObj1.childNodes(i).getAttribute("Link") +"','"+xmlObj1.childNodes(i).getAttribute("Code")
+"') class='submenu_text' >" + xmlObj1.childNodes(i).getAttribute("id") +"</a></span></td></tr>";
}
else if((xmlObj1.parentNode.getAttribute("Code").length==4) && (xmlObj1.parentNode.getAttribute("Code").substring(0,3)) )
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left onmousemove= HideTemp('"
+ xmlObj1.childNodes(i).getAttribute("Code") +"')><span id="
+ xmlObj1.childNodes(i).getAttribute("Code") +"_T>  <a href=javascript:ShowContent('"
+ xmlObj1.childNodes(i).getAttribute("Link") +"','"+xmlObj1.childNodes(i).getAttribute("Code")
+"') class='submenu_text' >" + xmlObj1.childNodes(i).getAttribute("id") +"</a></span></td></tr>";
}
else
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href=javascript:ShowContent('"+ xmlObj1.childNodes(i).getAttribute("Link")
+"','"+xmlObj1.childNodes(i).getAttribute("Code")+"') class='submenu_text' >"
+ xmlObj1.childNodes(i).getAttribute("id") +"</a></span></td></tr>";
}

str=str+"<tr><td bgcolor='#ffffff'></td></tr>";
}
else
{
if(a!="ADM")
{
if(a!="PORT")
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onmousemove=Process1('"
+ xmlObj1.childNodes(i).getAttribute("Code") +"',0) class='submenu_text'>"
+ xmlObj1.childNodes(i).getAttribute("id") +"</a></span></td></tr>";
else
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onclick=Process1('"+ xmlObj1.childNodes(i).getAttribute("Code")
+"',0) class='submenu_text'>" + xmlObj1.childNodes(i).getAttribute("id")
+"</a></span></td></tr>";
}
else
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onmousemove=Process1('"
+ xmlObj1.childNodes(i).getAttribute("Code") +"',0) class='submenu_text'>"
+ xmlObj1.childNodes(i).getAttribute("id") +"</a></span></td></tr>";

str=str+"<tr><td bgcolor='#ffffff'></td></tr>";
}

}

if((xmlObj1.childNodes(Objs-1).childNodes.length==null) ||(xmlObj1.childNodes(Objs-1).childNodes.length==0))
{

if (xmlObj1.childNodes(i).getAttribute("Code")=="FIRMS3")
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left onmousemove= HideTemp('"
+ xmlObj1.childNodes(i).getAttribute("Code") +"')><span id="
+ xmlObj1.childNodes(i).getAttribute("Code") +"_T>  <a href=javascript:ShowContent('"
+ xmlObj1.childNodes(i).getAttribute("Link") +"','"+xmlObj1.childNodes(i).getAttribute("Code")
+"') class='submenu_text' >" + xmlObj1.childNodes(Objs-1).getAttribute("id") +"</a></span></td></tr>";
else
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left)><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href=javascript:ShowContent('"+ xmlObj1.childNodes(i).getAttribute("Link")
+"','"+xmlObj1.childNodes(i).getAttribute("Code")+"') class='submenu_text' >"
+ xmlObj1.childNodes(Objs-1).getAttribute("id") +"</a></span></td></tr>";
}
else
{
if(a!="ADM")
{
if(menu.innerHTML == "")
{
if (a=="TOOLS")
{
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onmousemove=Process1('"+ xmlObj1.childNodes(i).getAttribute("Code")
+"',0) class='submenu_text'>" + xmlObj1.childNodes(Objs-1).getAttribute("id")
+"</a></span></td></tr>";
}
else
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onclick=Process1('"+ xmlObj1.childNodes(i).getAttribute("Code")
+"',0) class='submenu_text'>" + xmlObj1.childNodes(Objs-1).getAttribute("id")
+"</a></span></td></tr>";
}
else
{
if(a!="PORT")
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onmousemove=Process1('"+ xmlObj1.childNodes(i).getAttribute("Code")
+"',0) class='submenu_text'>" + xmlObj1.childNodes(Objs-1).getAttribute("id")
+"</a></span></td></tr>";
else
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onclick=Process1('"+ xmlObj1.childNodes(i).getAttribute("Code")
+"',0) class='submenu_text'>" + xmlObj1.childNodes(Objs-1).getAttribute("id")
+"</a></span></td></tr>";

}
}
else
str=str+"<tr><td id="+ xmlObj1.childNodes(i).getAttribute("Code")
+" class='submenu_text' align=left><span id="+ xmlObj1.childNodes(i).getAttribute("Code")
+"_T>  <a href='#' onmousemove=Process1('"+ xmlObj1.childNodes(i).getAttribute("Code")
+"',0) class='submenu_text'>" + xmlObj1.childNodes(Objs-1).getAttribute("id") +"</a></span></td></tr>";
}
str=str+"</table></td></tr></table></div>";
}


if (a=="FIRMS2" || a=="FIRMS5" || a=="RTOOLS" ||a=="ADMDMS" || a=="ADMOTH" || a=="TPMG")

{
lyr2.innerHTML= str;
document.getElementById("lyr2").style.left= le+ document.all['lyr1'].clientWidth-3;

if ((a=="ADMOTH") && ((document.getElementById("appSpcRole").value==1)||(document.getElementById("appSpcRole").value==2)))
document.getElementById("lyr2").style.top = to-300;
else
document.getElementById("lyr2").style.top = to;

document.getElementById("lyr2").style.zIndex =999;
document.getElementById("lyr1").style.display="block";
document.getElementById("lyr2").style.display="block";
if ((a=="ADMOTH") && ((document.getElementById("appSpcRole").value==1)||(document.getElementById("appSpcRole").value==2)))
IfFun(2,le+document.all['lyr1'].clientWidth-3,to-300,document.getElementById("lyr2").offsetHeight,document.getElementById("lyr2").offsetWidth);
else
IfFun(2,le+document.all['lyr1'].clientWidth-3,to,document.getElementById("lyr2").offsetHeight,document.getElementById("lyr2").offsetWidth);
IfFunHide3();IfFunHide4();IfFunHide5();document.getElementById("lyr3").style.display="none";

}
else if(a=="RSPCT")
{
lyr3.innerHTML= str;
if ((a=="RSPCT") && ((document.getElementById("appSpcRole").value==1)||(document.getElementById("appSpcRole").value==10)))
document.getElementById("lyr3").style.left= le-75;
else
document.getElementById("lyr3").style.left= le-58;
document.getElementById("lyr3").style.top= to
document.getElementById("lyr3").style.zIndex =999;
document.getElementById("lyr1").style.display="block";
document.getElementById("lyr2").style.display="block";
document.getElementById("lyr3").style.display="block";
IfFunHide4();IfFunHide5();
if ((a=="RSPCT") && ((document.getElementById("appSpcRole").value==1)||(document.getElementById("appSpcRole").value==10)))
IfFun(3,le-75,to,document.getElementById("lyr3").offsetHeight,document.getElementById("lyr3").offsetWidth);
else
IfFun(3,le-58,to,document.getElementById("lyr3").offsetHeight,document.getElementById("lyr3").offsetWidth);
}

else if(a=="RSFCT")
{
lyr3.innerHTML= str;
document.getElementById("lyr3").style.left= le-58;
document.getElementById("lyr3").style.top= to
document.getElementById("lyr3").style.zIndex =999;
document.getElementById("lyr1").style.display="block";
document.getElementById("lyr2").style.display="block";
document.getElementById("lyr3").style.display="block";

IfFun(3,le-58,to,document.getElementById("lyr3").offsetHeight,document.getElementById("lyr3").offsetWidth);
}
else if((a=="RSSSTA"))
{
lyr3.innerHTML= str;
document.getElementById("lyr3").style.left= le-83
document.getElementById("lyr3").style.top= to
document.getElementById("lyr3").style.zIndex =999;
document.getElementById("lyr1").style.display="block";
document.getElementById("lyr2").style.display="block";
document.getElementById("lyr3").style.display="block";
IfFun(3,le-83,to,document.getElementById("lyr3").offsetHeight,document.getElementById("lyr3").offsetWidth);
}
else if((a=="RSSSTA1"))
{
lyr4.innerHTML= str;
document.getElementById("lyr4").style.left= le-45;
document.getElementById("lyr4").style.top= to-4
document.getElementById("lyr4").style.zIndex =999;
document.getElementById("lyr1").style.display="block";
document.getElementById("lyr2").style.display="block";
document.getElementById("lyr3").style.display="block";
document.getElementById("lyr4").style.display="block";

IfFun(4,le-45,to-4,document.getElementById("lyr4").offsetHeight,document.getElementById("lyr4").offsetWidth);
}

else if((a=="RSSSTA11"))
{
lyr5.innerHTML= str;
document.getElementById("lyr5").style.left= le-55;
document.getElementById("lyr5").style.top= to-4
document.getElementById("lyr5").style.zIndex =999;
document.getElementById("lyr1").style.display="block";
document.getElementById("lyr2").style.display="block";
document.getElementById("lyr3").style.display="block";
document.getElementById("lyr4").style.display="block";
document.getElementById("lyr5").style.display="block";


IfFun(5,le-55,to-4,document.getElementById("lyr5").offsetHeight,document.getElementById("lyr5").offsetWidth);
}
else if((a=="RSMRE3"))
{
lyr5.innerHTML= str;
document.getElementById("lyr5").style.left= le-96;
document.getElementById("lyr5").style.top= to-4
document.getElementById("lyr5").style.zIndex =999;
document.getElementById("lyr1").style.display="block";
document.getElementById("lyr2").style.display="block";
document.getElementById("lyr3").style.display="block";
document.getElementById("lyr4").style.display="block";
document.getElementById("lyr5").style.display="block";


IfFun(5,le-96,to-4,document.getElementById("lyr5").offsetHeight,document.getElementById("lyr5").offsetWidth);
}
else if ((a=="RSMRE"))
{
lyr3.innerHTML= str;
document.getElementById("lyr3").style.left= le-118;
document.getElementById("lyr3").style.top= to
document.getElementById("lyr3").style.zIndex =999;
document.getElementById("lyr1").style.display="block";
document.getElementById("lyr2").style.display="block";
document.getElementById("lyr3").style.display="block";
IfFunHide4();IfFunHide5();
IfFun(3,le-118,to,document.getElementById("lyr3").offsetHeight,document.getElementById("lyr3").offsetWidth);
}
else if ((a=="RSDEN"))
{

lyr3.innerHTML= str;
document.getElementById("lyr3").style.top= to
document.getElementById("lyr3").style.zIndex =999;
document.getElementById("lyr1").style.display="block";
document.getElementById("lyr2").style.display="block";
document.getElementById("lyr3").style.display="block";
document.getElementById("lyr3").style.left= le-(document.getElementById("lyr3").offsetWidth+3);
IfFunHide4();IfFunHide5();
IfFun(3,le-(document.getElementById("lyr3").offsetWidth+3),to,document.getElementById("lyr3").offsetHeight,document.getElementById("lyr3").offsetWidth);
}
else if ((a=="RSMRST"))
{

lyr3.innerHTML= str;
document.getElementById("lyr3").style.top= to
document.getElementById("lyr3").style.zIndex =999;
document.getElementById("lyr1").style.display="block";
document.getElementById("lyr2").style.display="block";
document.getElementById("lyr3").style.display="block";
document.getElementById("lyr3").style.left= le-(document.getElementById("lyr3").offsetWidth+3);
IfFunHide4();IfFunHide5();
IfFun(3,le-(document.getElementById("lyr3").offsetWidth+3),to,document.getElementById("lyr3").offsetHeight,document.getElementById("lyr3").offsetWidth);
}
else if ((a=="RSDATE"))
{
lyr3.innerHTML= str;
document.getElementById("lyr3").style.left= le-143;
document.getElementById("lyr3").style.top= to
document.getElementById("lyr3").style.zIndex =999;
document.getElementById("lyr1").style.display="block";
document.getElementById("lyr2").style.display="block";
document.getElementById("lyr3").style.display="block";
IfFun(3,le-143,to,document.getElementById("lyr3").offsetHeight,document.getElementById("lyr3").offsetWidth);
}
else
{
if ((xmlObj1.parentNode.getAttribute("Dire")=='D') && (x==0))
{


lyr2.innerHTML= str;
document.getElementById("lyr2").style.left= le+document.all['lyr1'].clientWidth-3;
document.getElementById("lyr2").style.zIndex =999;
document.getElementById("lyr2").style.top= to;
document.getElementById("lyr1").style.display="block";
document.getElementById("lyr2").style.display="block";
IfFun(2,le+document.all['lyr1'].clientWidth-3,to,document.getElementById("lyr2").clientHeight,document.getElementById("lyr2").clientWidth);
}
else
{
if(x==0)
{
document.getElementById("lyr1").innerHTML ="";
document.getElementById("lyr1").innerHTML=str;
document.getElementById("lyr1").style.zIndex =999;
document.getElementById("lyr1").style.left= le;
document.getElementById("lyr1").style.top= to+25;
document.getElementById("lyr1").style.display="block";
IfFun(1,le,to+25,document.getElementById("lyr1").clientHeight,document.getElementById("lyr1").clientWidth);
}
else
{
document.getElementById("lyr1").innerHTML ="";
document.getElementById("lyr1").innerHTML=str;
document.getElementById("lyr1").style.zIndex =999;
document.getElementById("lyr1").style.left= le;
document.getElementById("lyr1").style.top= to+15;
document.getElementById("lyr1").style.display="block";
IfFun(1,le,to+15,document.getElementById("lyr1").clientHeight,document.getElementById("lyr1").clientWidth);



}


}

}

}




-->
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top