<!--控制某个项目是否显示 -->
function ShowOff(idno,stas,ale){
var msg;
<!--需要进行提醒 -->
if (ale == 'alert')
{
msg = window.confirm('Are you sure you want to delete the selected part?');
if (!msg)
{
return;
}
}
document.getElementById(idno).style.display = stas;
}
function ShowOffBySelf(idno,stas){
if (stas == 'none')
{
document.getElementById(idno).style.display = 'block';
}else
{
document.getElementById(idno).style.display = 'none';
}
}
function showDetail2(h,b,f,a,m,n)
{
h=h||window.event;
var e=h.target||h.srcElement;
var c=document.getElementById(b);
var o,p;
if(m != ""){o=document.getElementById(m);}
if(n != ""){p=document.getElementById(n);}
if(e.childNodes[0]==null)
{
var g=new Array(e)
}else{
var g=new Array(e,e.childNodes[0],e.childNodes[0].childNodes[0])
}
var i=e.getElementsByTagName("img");
if(c.style.display=="block"||c.style.display=="")
{
c.style.display="none";
if(m != ""){o.style.display="none";}
if(n != ""){p.style.display="none";}
for(var d=0;d<g.length;d++)
{
if(g[d]!=null&&g[d].tagName=="IMG"){g[d].src=a}
}
}else{
c.style.display="";
if(m != ""){o.style.display="";}
if(n != ""){p.style.display="";}
for(var d=0;d<g.length;d++){if(g[d]!=null&&g[d].tagName=="IMG"){g[d].src=f}}
}
}