
//document.write ('<script language="javascript" type="text/javascript" src="http://js.users.51.la/2420829.js"></script>');

document.write("<div id=changadidas></div>")

function checkdatac()
{
if (document.form.c1.value=="" || document.form.c2.value=="" || document.form.c6.value=="") {
f_erorr.innerHTML = "<div id=f_erorr_text><img src=Img/Error.gif>有必填项未填写</div>";
return false
}
else
{
f_erorr.innerHTML = "<div id=f_erorr_text>正在提交…</div>";
}
return true
}

var A='go';
var B='go';
var C='go';
function menuz(X,Y,Z){
if (X.style.display=="none")
{
if (A!='go') A.style.display="none";
if (B!='go') B.style.color="";
if (C!='go') C.src="../../Img/arrow_type.gif";
X.style.display="";
Y.style.color="#FF0000";
Z.src="../../Img/arrow_type1.gif";
A=X;
B=Y;
C=Z;
}
else
{
X.style.display="none";
Y.style.color="";
Z.src="../../Img/arrow_type.gif";
}
} 


if (!document.layers&&!document.all)
event="test"
function showtip2(current,e,text){

if (document.all&&document.readyState=="complete"){
document.all.tooltip2.innerHTML=''+text+''
document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft-80
document.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+20
document.all.tooltip2.style.visibility="visible"
}

else if (document.layers){
document.tooltip2.document.nstip.document.write('<b>'+text+'</b>')
document.tooltip2.document.nstip.document.close()
document.tooltip2.document.nstip.left=0
currentscroll=setInterval("scrolltip()",100)
document.tooltip2.left=e.pageX+10
document.tooltip2.top=e.pageY+10
document.tooltip2.visibility="show"
}
}
function hidetip2(){
if (document.all)
document.all.tooltip2.style.visibility="hidden"
else if (document.layers){
clearInterval(currentscroll)
document.tooltip2.visibility="hidden"
}
}

function scrolltip(){
if (document.tooltip2.document.nstip.left>=-document.tooltip2.document.nstip.document.width)
document.tooltip2.document.nstip.left-=5
else
document.tooltip2.document.nstip.left=150
}

function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}


function changeselect(locationid)
{
document.form.n_tsid.length = 0; 
document.form.n_tsid.options[0] = new Option('请选择','');
for (i=0; i<subcat.length; i++) 
{
if (subcat[i][0] == locationid) 
{document.form.n_tsid.options[document.form.n_tsid.length] = new Option(subcat[i][1], subcat[i][2]);} 
}
}

function changeselect1(locationid)
{
document.form1.n_tsid.length = 0; 
document.form1.n_tsid.options[0] = new Option('请选择','');
for (i=0; i<subcat.length; i++) 
{
if (subcat[i][0] == locationid) 
{document.form1.n_tsid.options[document.form1.n_tsid.length] = new Option(subcat[i][1], subcat[i][2]);} 
}
}


id=location.search.substring(8,location.search.length); 


var dismissafter=0
var initialvisible=0
if (document.all)
document.write('<div id="curscroll" style="position:absolute;visibility:hidden"><img src=../../img/mouse.gif></div>')

function followcursor(){
//move cursor function for IE

if (initialvisible==0){
curscroll.style.visibility="visible"
initialvisible=1
}

curscroll.style.left=document.body.scrollLeft+event.clientX+10
curscroll.style.top=document.body.scrollTop+event.clientY+10
}

function dismissmessage(){
curscroll.style.visibility="hidden"
}


if (document.all){
document.onmousemove=followcursor
document.ondblclick=dismissmessage
if (dismissafter!=0)
setTimeout("dismissmessage()",dismissafter*1000)
}



function f_info()
{
 AjaxHelper.Updater2("cp/index_f_info.asp", "content3");
}

function f_list(pagec)
{
 AjaxHelper.Updater2("cp/index_f_recall.asp?p="+pagec+"", "content2");
}

function f_del(reid,pagec)
{
 AjaxHelper.Updater2('cp/index_f_do.asp?DO=del&reid='+reid+'&p='+pagec+'', 'content2');
}

function f_login()
{
 AjaxHelper.Updater2('cp/index_f_do.asp?do=login&un='+document.form1.un.value+'&up='+document.form1.up.value+'','ccxl');
 AjaxHelper.Updater2('cp/index_f_info.asp','content3');
 document.form1.un.value='';
 document.form1.up.value='';
}


function show_login(n){
if(n==0){
var str="";
str+="<div id=m1>";
str+="<div id=f_ku  onmousedown=f_mdown(ccxl)>登 陆</div>";
str+="<div id=f_login1>";
str+="<div id=f_login_erorr>&nbsp</div>";
str+="<form action=User_regedit.asp?do=login method=post id=form1 name=form1>";
str+="<div id=f_login>用 户：<input type=text name=un id=f_login_input></div>";
str+="<div id=f_login>密 码：<input type=password name=up id=f_login_input></div>";
str+="<div id=f_login><input type=button value='登 陆' onclick=f_login()> <input type=button src=# value='关 闭' onclick=show_login(1) class=bottom></div>";
str+="</form>";
str+="</div>";
str+="</div>";
}
if(n==1){ str=""; }
ccxl.innerHTML=str;
}

var currentMoveObj = null;  
var relLeft;  
var relTop;
function f_mdown(obj)
{
  currentMoveObj = obj;    
  currentMoveObj.style.position = "absolute";
  relLeft = event.x - currentMoveObj.style.pixelLeft;
  relTop = event.y - currentMoveObj.style.pixelTop;
}
window.document.onmouseup = function()
{
  currentMoveObj = null;  
}
window.document.onmousemove=function()
{
  if(currentMoveObj != null)
  {
    currentMoveObj.style.pixelLeft=event.x-relLeft;
    currentMoveObj.style.pixelTop=event.y-relTop;
  }
}

function f_choose()
{
 window.open('index_p.htm','','width=600,height=260,scrollbars=yes');
}

function get_passinfo()
{
 urlstr=window.location.href;
 urllen=urlstr.length;
 offset=urlstr.indexOf("?");
 querystr=urlstr.substr(offset+1,urllen)
 queryinfos=querystr.split("&");
 queryinfo=queryinfos[0].split("=");
 queryname=queryinfo[0];
 queryvalue=queryinfo[1];
 //document.write(""+queryvalue+"");
 document.form.c1.value =""+queryvalue+"";
}

function choose(cname){
window.opener.form.c1.value='';
window.opener.form.c1.value=''+cname+'';
window.close();
}



var NewsTime = 3500; 
var TextTime = 20; 
var newsi = 0;
var txti = 0;
var txttimer;
var newstimer;
var newstitle = new Array(); 
var newshref = new Array(); 

function shownews()
{
var endstr = "_"
hwnewstr = newstitle[newsi];
newslink = newshref[newsi];
if(txti==(hwnewstr.length-1)){endstr="";}
if(txti>=hwnewstr.length){
clearInterval(txttimer);
clearInterval(newstimer);
newsi++;
if(newsi>=newstitle.length){
newsi = 0
}
newstimer = setInterval("shownews()",NewsTime);
txti = 0;
return;
}
clearInterval(txttimer);
document.getElementById("printWord").href=newslink;
document.getElementById("printWord").innerHTML = hwnewstr.substring(0,txti+1)+endstr;
txti++;
txttimer = setInterval("shownews()",TextTime);
}











function showFocus(num)
{
 for(var id = 1;id<=4;id++)
 {
  var fpid="focusPic"+id;
  var fcid="focusContent"+id;
  var fnid="focusnav"+id;
  if(id==num){
  	try{document.getElementById(fpid).style.display="block"}catch(e){};
	try{document.getElementById(fcid).style.display="block"}catch(e){};
	try{document.getElementById(fnid).className="active"}catch(e){};
  }else{
	try{document.getElementById(fpid).style.display="none"}catch(e){};
	try{document.getElementById(fcid).style.display="none"}catch(e){};
	try{document.getElementById(fnid).className=""}catch(e){};
  }
 }  
}