// JavaScript Document
function showurl(url)
{
if (top.showurlinfrm_dtl)
{
if ( ! top.canResize )
			{
				parent.parent.frm_btm.chgfrm() ;
				parent.frm_dtl.location.href=url;
			}
else
parent.frm_dtl.location.href=url;			
}
else
location.href=url;
}
function confirmit()
{
if(confirm("是否确认此操作？"))
return true;
else
return false;
}
function formconfirm(confirmstr)
{
if(confirm(confirmstr))
return true;
else
return false;
}
function urlconfirm(confirmstr,url)
{
if(confirm(confirmstr))
location.href=url;
}
function tourl(myurl)
{
if(confirm("是否确认此操作？"))
location.href=myurl;
else
return false;
}
function tofrmsite(frmsite)
{
if((frmsite!='mastersite')&&frmsite!="")
showurl('/master/pdtmng/hst_mng/hst_idx.asp?hnme='+frmsite);
else
alert("您打开的是本站点!");
}
function   getnamestring(tempitem)
{
tempitem.value="";
for (var i=0;i<pdtfrm.namestring.length;i++)
{
if(pdtfrm.namestring[i].checked)
tempitem.value=tempitem.value+","+pdtfrm.namestring[i].value;
}
}
function gettarget(frmid)
{
if (top.showurlinfrm_dtl)
{
if ( ! top.canResize )
			{
				parent.parent.frm_btm.chgfrm() ;
				frmid.target="frm_dtl";
			}
else
frmid.target="frm_dtl";
}
else
frmid.target="";
}
function submitfrm(frmid)
{
frmid=eval(frmid);
gettarget(frmid);
frmid.submit();
}

var oldid=0;
function showmytab(nowid){
  if(nowid!=oldid){
    mytabsitm[oldid].className='showtab01';
    mytabsitm[nowid].className='showtab02';
    mytabs[oldid].style.display='none';
    mytabs[nowid].style.display='';
    oldid=nowid;
  }
}

