function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
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!='<%=application("pl_stetag")%>')&&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;
  }
}
 function showhid(obj)
 { 
 	for (i=0; i<10;i++)
	{
		if (i==obj )
		{
			document.getElementById("m_1_" +i).className="m_1_a";
			document.getElementById("m_2_" +i).className="m_2_a";		
		
		}
		else 
		{
			document.getElementById("m_1_" +i).className="m_1";
			document.getElementById("m_2_" +i).className="m_21";			
		}
	}	
 }
 
 function cycle(i) {
        var tabCount = 9; 
        var contents, img, imgState;
        for (i2=1;i2<=tabCount;i2++) {
            if (i2==i) { 
                    contents = document.getElementById('tab' + i);
                    contents.style.display = "block";
                    img = document.getElementById('tabMenu' + i);
                    imgState = document.getElementById('tabMenu' + i + 'FocusOn');
                    img.src = imgState.innerHTML;   
            } else {
                contents = document.getElementById('tab' + i2);
                contents.style.display = "none";
                img = document.getElementById('tabMenu' + i2);
                
                if (i2==i-1) {
                        imgState = document.getElementById('tabMenu' + i2 + 'FocusRight');
                } else if (i2==i+1) {
                        imgState = document.getElementById('tabMenu' + i2 + 'FocusRight');
                } else {
                     imgState = document.getElementById('tabMenu' + i2 + 'FocusNone');
                }
                img.src = (imgState) ? imgState.innerHTML: img.src;   
                 
            } 
        }
 }
 
							function index_gg_xx(obj)
							{
								var index_zngg,index_znxw,index_more;
								index_zngg= document.getElementById ("index_zngg");
								index_znxw= document.getElementById ("index_znxw");
								index_more= document.getElementById ("index_more");
								if(obj==1)
								{
									index_zngg.style.display="";
									index_znxw.style.display="none";
									index_more.innerHTML="<a style='color:#000' href='/news/'><img src='style/img/bt_more2.gif' border='0'></a>";
									document.getElementById ("index_span_zngg").className="znggB";
									document.getElementById ("index_span_hyxw").className="hyxwB";
									
								}
								if(obj==2)
								{
									index_znxw.style.display="";
									index_zngg.style.display="none";
									index_more.innerHTML="<a style='color:#000' href='/article/'><img src='style/img/bt_more2.gif' border='0'></a>";
									document.getElementById ("index_span_zngg").className="znggA";
									document.getElementById ("index_span_hyxw").className="hyxwA";
									
									
								}
							}
function mid_s_h(obj)
			  {
			  	for(i =1;i<=6; i++)
				{
					window.document.getElementById("mid_"+i).className="mid_1";
					window.document.getElementById("mid_2_"+i).className="mid_2";
				}
				window.document.getElementById("mid_"+obj).className="mid_active";
				window.document.getElementById("mid_2_"+obj).className="mid_active_2";
				
			  }
function nTab (obj)
{
var top_ymcx,tywzcx,ymcx;
top_ymcx = window.document.getElementById("top_ymcx");
tywzcx   =window.document.getElementById("tywzcx");
ymcx     =window.document.getElementById("ymcx");
tywz     =window.document.getElementById("tywz_111");
if (obj==1)
{ 
    top_ymcx.className="zsc_active";
	tywzcx.className="zsc_no_active";
	tywz.className="h"
	ymcx.className="s"
   }
 if (obj ==2 )
 {
 
    tywzcx.className="zsc_active";
	top_ymcx.className="zsc_no_active";
	
	ymcx.className="h"
	tywz.className="s"
 }
}
function   checkForm(type)   
{  
var zwym,ywym;
zwym = window.document.getElementById("zwym");
ywym   =window.document.getElementById("ywym");

	if(type==1)
	{
	 zwym.style.display="block";
	 ywym.style.display="none";
	}
	if(type==0)
	{
	 ywym.style.display="block";
	 zwym.style.display="none";
	}
}
