<!--

function searchjc()
{
if(form_search.jcgoogle.checked)
   window.open("http://www.google.com/search?hl=zh-CN&q="+form_search.key.value,"mspg0");
if(form_search.jcbaidu.checked)
   window.open("http://www.baidu.com/baidu?tn=ljktv_pg&word="+form_search.key.value,"mspg1");
if(form_search.jciask.checked)
   window.open("http://iask.com/s?tag=u&k="+form_search.key.value,"mspg2");
if(form_search.jcyahoo.checked)
   window.open("http://cn.search.yahoo.com/search/cn?p="+form_search.key.value,"mspg3");   
if(form_search.jcsogou.checked)
   window.open("http://www.sogou.com/sogou?query="+form_search.key.value+"&pid=sogou-site-70deea5cc4c9aa6e","mspg4");
if(form_search.jcsoso.checked)
   window.open("http://www.soso.com/q?w="+form_search.key.value,"mspg5");
if(form_search.jcchinasearch.checked)
   window.open("http://p.zhongsou.com/p?word=dt=1&w="+form_search.key.value,"mspg7");
if(form_search.jcbaidunews.checked)
   window.open("http://news.baidu.com/ns?word="+form_search.key.value,"mspg8");
if(form_search.jccidian.checked)
   window.open("http://www.erong.com/cd/?keyword="+form_search.key.value,"mspg10");
if(form_search.jcchengyu.checked)
   window.open("http://www.erong.com/cy/?keyword="+form_search.key.value,"mspg11");
if(form_search.jcyinghan.checked)
   window.open("http://www.erong.com/yh/?dc="+form_search.key.value,"mspg12");
if(form_search.jchanying.checked)
   window.open("http://www.erong.com/hy/?zw="+form_search.key.value,"mspg13");
if(form_search.jcmp3.checked)
   window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3&ct=134217728&lm=-1&rn=&word="+form_search.key.value,"mspg14");
if(form_search.jcbaidugeci.checked)
   window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3lyric&ct=150994944&lm=-1&rn=&word="+form_search.key.value,"mspg15");
if(form_search.jczhidao.checked)
   window.open("http://zhidao.baidu.com/q?ct=17&pn=0&tn=ljktv_pg&rn=10&word="+form_search.key.value,"mspg16");
if(form_search.jcbaidupic.checked)
   window.open("http://fs.tom.com/sms/smslist/smsearch_new.php?user_id=55876&code_id=&bt=&special_flag=&keyword="+form_search.key.value,"mspg18");
if(form_search.jcdriver.checked)
   window.open("http://so.mydrivers.com/drivers.aspx?classtype=all&q="+form_search.key.value,"mspg19");
if(form_search.jcsky.checked)
   window.open("http://www.skycn.com/search.php?sor=00&ss_name="+form_search.key.value,"mspg20");

return false;   
}
function $(o){
 var o=document.getElementById(o)?document.getElementById(o):'';
 return o;
}
function createXMLHttpRequest(){
  if(window.ActiveXObject){
      xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  }else if(window.XMLHttpRequest) {
      xmlHttp = new XMLHttpRequest();
  }
} 
function startRequest(url,returnfun) {
   createXMLHttpRequest(); 
   xmlHttp.onreadystatechange =returnfun;
   xmlHttp.open("GET",url,true);
   xmlHttp.send(null);    

}

function mod_editFavLink2(url)
{
        var pop=new Popup({ contentType:1, isReloadOnClose:true, width:700, height:460 });
        pop.setContent("title","城市切换选择&raquo;");
        pop.setContent("contentUrl",url);
        pop.build();
        pop.show();
        return false;
}

var showsoft=false;
var showgame=false;
var showyinyue=false;
var showyinshi=false;
var showshop=false;
var shownews=false;
function showStm(n){
	if(n==0)showindexhtml();
	if(showsoft==false && n==1){
		$("indexsoft").innerHTML="<iframe src='http://www.jdxz.com/dnc8.html' frameborder='0' scrolling='no' frameborder='0' width='528' height='329'></iframe>";
		showsoft=true;
	}
	if (showgame==false && n==2)
	{        
		$("indexgame").innerHTML="<iframe src='http://www.yxc8.com/dnc8.htm' frameborder='0' scrolling='no' frameborder='0' width='528' height='329'></iframe>";
		showgame=true;
	}
	if (showyinyue==false && n==3)
	{        
		$("indexyinyue").innerHTML="<iframe src='http://www.ktvc8.com/dnc8.html' frameborder='0' scrolling='no' frameborder='0' width='528' height='329'></iframe>";
		showyinyue=true;
	}
	if (showyinshi==false && n==4)
	{        
		$("indexyinshi").innerHTML="<iframe src='http://www.dnc8.cc/ysc8.html' frameborder='0' scrolling='no' frameborder='0' width='528' height='329'></iframe>";
		showyinshi=true;
	}
	if (showshop==false && n==5)
	{        
		$("indexshop").innerHTML="<iframe src='../shop.html' frameborder='0' scrolling='no' frameborder='0' width='528' height='329'></iframe>";
		showshop=true;
	}
	if (shownews==false && n==6)
	{        
		$("indexnews").innerHTML="<iframe src='../news/index.asp' frameborder='0' scrolling='no' frameborder='0' width='528' height='329'></iframe>";
		shownews=true;
	}
	for (i=0;i<=6;i++){
		 document.getElementById("stgm" + i).className = "blur";
		 document.getElementById("stm" + i).style.display = "none";
    }
	document.getElementById("stgm" + n).className = "";
	document.getElementById("stm" + n).style.display = "block";
}
var tmptxt='';
function showindexhtml(){
 if(tmptxt!=''){
   $("indexhtml").innerHTML=tmptxt;
 }
}
function ChkAdDiv(divid,value){
	var  i=divid; 
	var  v=value;
	document.getElementById(i).innerHTML=document.getElementById(v).innerHTML;
} 
function getNames(obj,name,tij)
	{	
		var p = document.getElementById(obj);
		var plist = p.getElementsByTagName(tij);
		var rlist = new Array();
		for(i=0;i<plist.length;i++)
		{
			if(plist[i].getAttribute("name") == name)
			{
				rlist[rlist.length] = plist[i];
			}
		}
		return rlist;
	}

		function butong_net(obj,name)
		{
			var p = obj.parentNode.getElementsByTagName("td");
			var p1 = getNames(name,"f","div");
			for(i=0;i<p1.length;i++)
			{
				if(obj==p[i])
				{
					p[i].className = "s";
					p1[i].className = "dis";
				}
				else
				{
					p[i].className = "";
					p1[i].className = "undis";
				}
			}
		}
function killErrors(){return true;} window.onerror = killErrors;

function change_subcat1(id){ var k=id/10; k= Math.floor(k); var dname1="left_l"+k; var dname2="left_c"+k;for(i=1;i<=3;i++) { document.getElementById(dname1+i).className = "left_l2"; document.getElementById(dname2+i).style.display = "none"; } document.getElementById("left_l"+id).className = "left_l1"; document.getElementById("left_c"+id).style.display = "block"; }

function change_subcat(id){ var j=id/10; j= Math.floor(j); var dname1="right_l"+j; var dname2="right_c"+j;for(i=1;i<=2;i++) { document.getElementById(dname1+i).className = "right_l2"; document.getElementById(dname2+i).style.display = "none"; } document.getElementById("right_l"+id).className = "right_l1"; document.getElementById("right_c"+id).style.display = "block"; }

function CopyToClipBoard(){
	window.clipboardData.setData("Text",'电脑查吧网址导航---上网就上电脑查吧!http://www.dnc8.net');
	alert("复制成功，请粘贴到你的QQ/MSN上推荐给你的好友，谢谢！");
}

function check(input){
if(input.mailSelect.options.selectedIndex==0){
alert("提示：请正确选择你使用的邮箱");
return false;}
if(input.name.value==""){
alert("提示：邮箱用户名必须填写！");
input.name.focus();
return false;}
if(input.password.value=="" || input.password.value.length<3){
alert("提示：邮箱密码必须填写完整！");
input.password.focus();
return false;}
else{go();
return false;}}

function makeURL(){   
var objForm=document.mailForm;   
var intIndex=objForm.mailSelect.options.selectedIndex;   
var varInfo=objForm.mailSelect.options[intIndex].value;    /*获取的表单中邮件服务器及用户账号和密码信息*/   
var arrayInfo=varInfo.split(';');    /*将以上获取的信息进行分割，并赋给数组变量*/   
var strName=objForm.name.value,varPasswd=objForm.password.value;   
var length=arrayInfo.length,strProvider=arrayInfo[0],strIdName=arrayInfo[1],varPassName=arrayInfo[2];   
if(length==3){   
var strUrl=strProvider+'?'+strIdName+'='+strName+'&'+varPassName+'='+varPasswd;    /*合并字符串，得到形如“http://mail.sina.com.cn/cgi-bin/log...”的字符串型URL*/   
}
else{
if(arrayInfo[3]=='suffix') strName+='@'+arrayInfo[4]
var strUrl='<form name="tmpForm" action="'+strProvider+'" method="post"><input type="hidden" name="'+strIdName+'" value="'+strName+'"><input type="hidden" name="'+varPassName+'" value="'+varPasswd+'">';   
if(arrayInfo[3]=='hidden') strUrl+='<input type="hidden" name="'+arrayInfo[4]+'" value="'+arrayInfo[5]+'">'
strUrl+='</form>';   
}
return strUrl; 
}

function go(){   
var strLocation=makeURL();   
if(strLocation.indexOf('<form name="tmpForm"')!=-1){/*对于只能用“post”来获取表单数据的邮箱使用自动提交的临时表单*/   
outWin=window.open('','','scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes');   
doc=outWin.document;   
doc.open('text/html');   
doc.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>邮箱登录</title></head><body onload="document.tmpForm.submit()">');   
doc.write('<p align="center" style="font-size: 14px; color: #FF0000">欢迎使用☆金电网址 www.jdxz.com ☆电子邮局快速登录系统，请稍候......</p>'+strLocation+'</body></html>');   
doc.close();   
}
else window.open(strLocation,'','scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes');   
}

function ClearPass(){
document.mailForm.password.value="";
}

function News_Window(theURL,winName,features) {
window.open(theURL,winName,features);
}

function search4()
{
if(form1.abc0.checked)
   window.open("http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey="+form1.key.value,"mspg0");
if(form1.abc1.checked)
   window.open("http://site.search.sohu.com/sitesearch.jsp?page_index=0&key_word="+form1.key.value,"mspg1");
if(form1.abc2.checked)
   window.open("http://psearch.163.com/Psearch?q="+form1.key.value,"mspg2");
if(form1.abc3.checked)
   window.open("http://www.google.com/search?hl=zh-CN&lr=lang_zh-CN&q="+form1.key.value,"mspg3");
if(form1.abc4.checked)
   window.open("http://cn.search.yahoo.com/search/cn?p="+form1.key.value,"mspg4");
if(form1.abc5.checked)
   window.open("http://union.3721.com/search_result.htm?pid=S_265265_2585&fw=union&name="+form1.key.value,"mspg5");
if(form1.abc6.checked)
   window.open("http://search.yahoo.com/bin/search?p="+form1.key.value,"mspg6");
if(form1.abc7.checked)
      window.open("http://www1.baidu.com/baidu?tn=ljktv_pg&word="+form1.key.value,"mspg7");
if(form1.abc8.checked)
   window.open("http://mp3search.baidu.com/wstsearch?tn=ljktv_pg&ct=134217728&lm=-1&rn=&word="+form1.key.value,"mspg8");
if(form1.abc9.checked)
   window.open("http://www.baidu.com/m?rn=10&tn=ljktv_pg&ct=150994944&lm=-1&word="+form1.key.value,"mspg9");
if(form1.abc10.checked)
   window.open("http://images.google.com/images?ie=GB2312&hl=zh-CN&q="+form1.key.value,"mspg10");
if(form1.abc11.checked)
   window.open("http://cn.search.yahoo.com/search/cn?p="+form1.key.value,"mspg11");
return false;
}

function setPCTab02Syn(i){
	selectPCTab02Syn(i);
}
function selectPCTab02Syn(i){
	switch(i){
		case 1:
			document.getElementById("TabPCTab02Con1").style.display="block";
			document.getElementById("TabPCTab02Con2").style.display="none";
			document.getElementById("TabPCTab02Con3").style.display="none";
			document.getElementById("TabPCTab02Con4").style.display="none";
		break;
		case 2:
			document.getElementById("TabPCTab02Con1").style.display="none";
			document.getElementById("TabPCTab02Con2").style.display="block";
			document.getElementById("TabPCTab02Con3").style.display="none";
			document.getElementById("TabPCTab02Con4").style.display="none";
		break;
		case 3:
			document.getElementById("TabPCTab02Con1").style.display="none";
			document.getElementById("TabPCTab02Con2").style.display="none";
			document.getElementById("TabPCTab02Con3").style.display="block";
			document.getElementById("TabPCTab02Con4").style.display="none";
		break;
		case 4:
			document.getElementById("TabPCTab02Con1").style.display="none";
			document.getElementById("TabPCTab02Con2").style.display="none";
			document.getElementById("TabPCTab02Con3").style.display="none";
			document.getElementById("TabPCTab02Con4").style.display="block";
		break;
	}
}
function setPCTab03Syn(i){
	selectPCTab03Syn(i);
}
function selectPCTab03Syn(i){
	switch(i){
		case 1:
			document.getElementById("TabPCTab03Con1").style.display="block";
			document.getElementById("TabPCTab03Con2").style.display="none";			
		break;
		case 2:
			document.getElementById("TabPCTab03Con1").style.display="none";
			document.getElementById("TabPCTab03Con2").style.display="block";			
		break;		
	}
}
//-->


