var Apcnews={};

Apcnews.getXmlHttp = function(){
    var xmlHttp = null;
    try{
        xmlHttp = new XMLHttpRequest();
    }catch (e){
        var progIds = ['MSXML2.XMLHTTP', 'Microsoft.XMLHTTP', 'MSXML2.XMLHTTP.5.0', 'MSXML2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0'];
        var success = false;
        for (var iterator = 0; (iterator < progIds.length) && ( ! success); iterator ++){
            try{
                xmlHttp = new ActiveXObject(progIds[iterator]);
                success = true;
            }catch (e) {}
        }
        if ( ! success ) {
            return null;
        }
    }
    return xmlHttp;
}

Apcnews.sendRequest = function(method,url,callBack){   
    var xmlHttp = Apcnews.getXmlHttp();
    xmlHttp.open(method,url,true);   
    xmlHttp.onreadystatechange = function(){
        if (xmlHttp.readyState == 4){
            if (xmlHttp.status == 200){
                callBack(xmlHttp.responseText);
            }
        }
    }

    xmlHttp.send(null);
}

Apcnews.listMenu=function(data){
   document.getElementById("listMenu").innerHTML="hello";
   document.getElementById("listMenu").style.display="block";	
}

Apcnews.getCompanyNames=function(id){
   }

Apcnews.search=function(){
   window.open('http://search.p5w.net/newsIndexSearch.action?keyword='+encodeURI(document.getElementById('keyword').value.substring(0,80).replace(/[#$%'^&*()]/g,'').replace(/\r\n/ig,'')));
}

Apcnews.showSearch=function(){
document.writeln("<table cellpadding='0' cellspacing='0'>");
document.writeln("<tr>");
document.writeln("<td>");
document.writeln("<input type='text' onkeyup='Apcnews.getCompanyNames(this.value);' style='line-height:18px;height:18px;width:150px;border:1px solid #c7c6c4' id='keyword' />");
document.writeln("<div style='position:relative;'><div id='listMenu' style='left:20px;top:54px;'></div></div>");
document.writeln("</td>");
document.writeln("<td>");
document.writeln("&nbsp;<input type='button' style='font-size:12px;width:48px;' onclick='Apcnews.search();' value='搜&nbsp;索' />");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("</table>");
}

Apcnews.showSearchFile=function(){
document.writeln("<table align='left' style='margin-left:5px' cellpadding='0' cellspacing='0'>");
document.writeln("<tr>");
document.writeln("<td>");
document.writeln("<input type='text' onkeyup='Apcnews.getCompanyNames(this.value);' style='line-height:18px;height:18px;width:160px;border:1px solid #c7c6c4' id='keyword' />");
document.writeln("<div style='position:relative;'><div id='listMenu' style='left:20px;top:54px;'></div></div>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td align='center'>");
document.writeln("&nbsp;<input type='button' style='margin-top:10px;font-size:12px;height:24px;' onclick='Apcnews.search();' value='搜&nbsp;索' />");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("</table>");
}

var filename=window.location.href;
var bookmarkurl,bookmarktitle;
var filename=window.location.href;


function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function sendmail(){
var Curl="http://market.p5w.net/docs/sendmail.asp?title="+bookmarktitle+"&url="+bookmarkurl;
var newwindow=open(Curl,'newtxt','top=0,left=0,width=400,height=350,scrollbars=yes,resizable=yes');
newwindow.focus();
}


function search_time()
{
}
function search_time1()
{
	document.write('<form  method="post" name="DateSearchForm" action="">'+'\n');
        document.write('<tr> <td valign="top"><img src="/images/doct.gif" width="8" height="11"></td>'+'\n');
        document.write('<td>按时间检索：<br>'+'\n');
        document.write('      输入如2002－03－31</td></tr>'+'\n');
        document.write('<tr><td>&nbsp;</td>'+'\n');
        document.write('<td>'+'\n');
        document.write('<input type="hidden" name="txt_position" size="12" value="'+filename+'">'+"\n") ;
	document.write('<input type="text" name="txt_date" size="15">'+"\n") ;
	document.write('<input type="image" border="0" name="imageField222" src="/images/search.gif" width="59" height="16"  onclick="historyFind(this.form)">'+'\n') ;
	document.write('</td></tr></form>');
}

function search_stock()
{}

function chkStockCode() {
  strCode=document.gsda_form.companyid.value;
  if (strCode.length==6 &&  strCode.substring(0,3)=="002")
  {
	var Curl="http://www.cninfo.com.cn/sme/gszx/gszx" + strCode + ".html";
	var newwindow=open(Curl,'newtxt','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,scrollbars=yes,resizable=yes');
	newwindow.focus();
	return false
  }
  else
  {
	alert("证券代码错误!")
	document.gsda_form.companyid.focus()
	document.gsda_form.companyid.select()
	return false
  }		
}
	
function search_stock1()
{ 
	document.write('<form name="gsda_form" method="post"  action="http://market.p5w.net/p5w/company/files/index_0.asp"  onsubmit="return chkStockCode()">'+'\n') ; 
	document.write('<tr><td valign="top">'+'\n');
        document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">'+'\n');
        document.write('<tr><td valign="top"><img src="./images/doct.gif" width="8" height="11"></td>'+'\n');
        document.write('<td>个股档案查询：</td></tr>'+'\n');
        document.write('<tr> <td valign="top">&nbsp;</td>'+'\n');
        document.write('<td> <input name="companyid" type="text" value="002001" size="15">');
        document.write('<input type="image" border="0" name="imageField2222" src="/images/search.gif" width="59" height="16">'+'\n') ;
	document.write('</td></tr>'+'\n');
        document.write('</table>'+'\n');
	document.write('</td></tr></form>'+'\n');

}

function search_file1()
{
	document.write('<form method="post" action="http://index.p5w.net:7777/search.wct" name="SearchForm" >');
	document.write('<tr> <td valign="top"><img src="/images/doct.gif" width="8" height="11"></td>'+'\n');
        document.write('    <td>全景全文检索：</td></tr>'+'\n');
        document.write('<tr> <td valign="top">&nbsp;</td>'+'\n');
        document.write('<td>'+'\n');
        document.write('<input type="radio" name="radTitle" value="detail" checked>'+'\n');
        document.write('      检索全文 '+'\n');
        document.write('<input type="radio" name="radTitle" value="title">');
        document.write('检索标题</td></tr>'+'\n');
        document.write('<tr> <td valign="top">&nbsp;</td>'+'\n');
        document.write('<td>'+'\n');
        document.write('<input type="hidden" name="ChannelID" value="1205">');
        document.write('<input type="text" name="SearchWord" size="15" onFocus="search_tipkey()">'+'\n') ;
        document.write('<input type="image" border="0" name="imageField22" src="/images/search.gif" width="59" height="16">'+'\n');
        document.write('</td></tr></form>');

}
function search_field()
{
}
function search_field1()
{
 	document.write('<form name="frmhyfl" method="post" action="">'+'\n');
 	document.write('<tr> <td valign="top"><img src="/images/doct.gif" width="8" height="11"></td>'+'\n');
        document.write('<td>行业检索：</td></tr>'+'\n');
        document.write('<tr> <td valign="top">&nbsp;</td>'+'\n');
        document.write('    <td><select name="selhy" class="sps">'+'\n');
        document.write('<option value="it" selected>信息技术业</option>'+'\n');
        document.write('<option value="architecture">建筑业</option>'+'\n');
        document.write('<option value="manuoil">制造业--石化、塑胶、塑料</option>'+'\n');
        document.write('<option value="manumetal">制造业--金属、非金属</option>'+'\n');
	document.write('<option value="manumachine">制造业--机械、设备、仪表</option>'+'\n');
        document.write('<option value="manuweave">制造业--纺织、服装、皮毛</option>'+'\n');
        document.write('<option value="manuelec">制造业--电子</option>'+'\n');
        document.write('<option value="manubiology">制造业--医药、生物制品</option>'+'\n');
        document.write('<option value="manuwood">制造业--木材、家具</option>'+'\n');
        document.write('<option value="manufood">制造业--食品、饮料 </option>'+'\n');
        document.write('<option value="manuother">制造业--其他制造业</option>'+'\n');
        document.write('<option value="power">电力、煤气及水的生产供应业 </option>'+'\n');
        document.write('<option value="excavate">采掘业</option>'+'\n');
        document.write('<option value="culture">传播与文化产业</option>'+'\n');
        document.write('<option value="distribution">批发和零售贸易</option>'+'\n');
        document.write('<option value="farm">农、林、牧、渔业</option>'+'\n');
        document.write('<option value="social">社会服务业</option>'+'\n');
        document.write('<option value="transportation">交通运输、仓储业</option>'+'\n');
        document.write('<option value="realestate">房地产业</option>'+'\n');
        document.write('<option value="others">综合类</option>'+'\n');
        document.write('<option value="finance">金融、保险业</option>'+'\n');
        document.write('</select> <input type="image" border="0" name="imageHylb" src="/images/search.gif" width="59" height="16" onclick="sField(selhy.value);"></td>'+'\n');
	document.write('</tr></form>'+'\n');
}

function search_month()
{
}
function search_month1()
{
	document.write('<form name="frm_Month" method="post" action="">'+'\n');
	document.write('<tr><td valign="top"><img src="/images/doct.gif" width="8" height="11"></td>'+'\n');
        document.write('<td>按时间检索：</td></tr>'+'\n');
        document.write('<tr><td>&nbsp;</td>'+'\n');
        document.write('<td> <select name="selyear">'+'\n');
        document.write('<option value="2000">2000</option>'+'\n');
        document.write('<option value="2001">2001</option>'+'\n');
        document.write('<option value="2002">2002</option>'+'\n');
        document.write('<option value="2003" selected>2003</option>'+'\n');
        document.write('</select>'+'\n');
        document.write('<select name="selmonth">'+'\n');
        document.write('<option value="01" selected>1</option>'+'\n');
        document.write('<option value="02">2</option>'+'\n');
        document.write('<option value="03">3</option>'+'\n');
        document.write('<option value="04">4</option>'+'\n');
        document.write('<option value="05">5</option>'+'\n');
        document.write('<option value="06">6</option>'+'\n');
        document.write('<option value="07">7</option>'+'\n');
        document.write('<option value="08">8</option>'+'\n');
        document.write('<option value="09">9</option>'+'\n');
        document.write('<option value="10">10</option>'+'\n');
        document.write('<option value="11">11</option>'+'\n');
        document.write('<option value="12">12</option>'+'\n');
        document.write('</select>'+'\n');
        document.write('<input type="hidden" name="txt_position" size="12" value="'+filename+'">'+"\n") ;
        document.write(' <input type="image" border="0" name="imageMonth" src="/images/search.gif" width="59" height="16" onclick="monthFind(this.form)"></td></tr>'+'\n');
        document.write('</form>'+'\n');
}

function search_hkstock()
{
}

function search_hkstock1()
{
	document.write('<form name="gsdahk_form" method="post" action="http://market.p5w.net/docs/hk/list/gsgk.asp" onsubmit="return gsdaform_search();">'+'\n') ; 
        document.write('<tr><td valign="top"><img src="/images/doct.gif" width="8" height="11"></td>'+'\n');
        document.write('<td>香港个股档案查询：<br>'+'\n');
        document.write('请输入股票代码，如：0031</td></tr>'+'\n');
        document.write('<tr> <td valign="top">&nbsp;</td>'+'\n');
        document.write('<td> <input name="jbqk" type="text" size="15">'+'\n');
        document.write('<input type="image" border="0" name="imagehk" src="/images/search.gif" width="59" height="16" onClick="gsdahk_search(this.form)">'+'\n');
        document.write('<input type="hidden" name="companyid" value="0001">'+"\n");        
        document.write('</td></tr></form>'+'\n');

}


function send_letter()
{
        document.write('<br><table width="198" border="0" cellspacing="0" cellpadding="0">'+'\n');
        document.write('<tr><td><img src="/images/letter.gif" width="198" height="22"></td></tr>'+'\n');
        document.write('</table>'+'\n');
        document.write('<table width="95%" border="0" cellpadding="1" cellspacing="2">'+'\n');
				document.write('<form name="form1" method="post" action="">'+'\n');
        document.write('<tr><td valign="top"><img src="/images/doct.gif" width="8" height="11"></td>'+'\n');
        document.write('<td>对方号码:<br>(最多2个,用“，”隔开，0.2元/条)</td></tr>'+'\n');
        document.write('<tr><td>&nbsp;</td><td> '+'\n');
        document.write('<input name="textfield4" type="text" size="14">'+'\n');
        document.write('</td></tr>'+'\n');
        document.write(' <tr><td valign="top"><img src="/images/doct.gif" width="8" height="11"></td>'+'\n');
        document.write('<td>短信内容:<br>(最多60个中文字符）</td></tr>'+'\n');
        document.write('<tr><td valign="top">&nbsp;</td>'+'\n');
        document.write('<td><textarea name="textfield32" cols="24"></textarea></td></tr>'+'\n');
        document.write('<tr><td valign="top"><img src="/images/doct.gif" width="8" height="11"></td>'+'\n');
        document.write('<td>手机号码</td></tr>'+'\n');
        document.write(' <tr><td valign="top">&nbsp;</td>'+'\n');
        document.write(' <td><input name="textfield42" type="text" size="14">　　注　册</td></tr>'+'\n');
        document.write('<tr><td valign="top"><img src="/images/doct.gif" width="8" height="11"></td>'+'\n');
        document.write(' <td>密码:</td></tr>'+'\n');
        document.write('<tr><td valign="top">&nbsp;</td>'+'\n');
        document.write('<td><input name="textfield422" type="text" size="14">　　查询密码</td></tr>'+'\n');
        document.write('<tr><td valign="top"><img src="/images/doct.gif" width="8" height="11"></td>'+'\n');
        document.write('<td>签名:</td></tr>'+'\n');
        document.write('<tr><td valign="top">&nbsp;</td>'+'\n');
        document.write(' <td><input name="textfield423" type="text" size="14"></td></tr>'+'\n');
        document.write(' <tr><td valign="top">&nbsp;</td>'+'\n');
        document.write('<td><br><img src="/images/sent.gif" width="59" height="16"> <img src="/images/delete.gif" width="59" height="16"></td></tr></form>'+'\n');
        document.write('</table>'+'\n');
            
	}
	
	//从控件的值中获得时间
function getMyDate( year , month , day ) {

	yearStr=year.value;
	monthStr=month.value;
	dayStr=day.value;
	
	if( yearStr==null ||  monthStr==null ||  dayStr==null  )  {
		alert( "输入的日期不合法" ) ;
		return null;
	}	
			
	if(yearStr.indexOf("0")==0)
	yearStr= yearStr.substring(1,yearStr.length);
	
	if(monthStr.indexOf("0")==0)
	monthStr= monthStr.substring(1,monthStr.length);
	
	if(dayStr.indexOf("0")==0)
	dayStr= dayStr.substring(1,dayStr.length);			

	yearValue = parseInt( yearStr ) ;
	monthValue = parseInt( monthStr ) ;
	dayValue = parseInt( dayStr ) ;
	
	if( isNaN( yearValue ) || isNaN( monthValue ) || isNaN( dayValue ) )  {
		alert( "输入的日期不合法" ) ;
		return null;
	}	
	
	yearValue -= 1900 ;
	monthValue -= 1 ;
	NewDate = new Date( yearValue , monthValue , dayValue ) ;

	newYearValue=NewDate.getYear();
	newMonthValue=NewDate.getMonth();
	newDayValue=NewDate.getDate();
	
    //检验时间是否合法
	if (yearValue!= newYearValue || monthValue!= newMonthValue || dayValue!=newDayValue){
		return null;
	}else{
		return NewDate;
	}
}
function chkform(myform)
{
	myform.from_date.value='';
	myform.to_date.value='';

	if(myform.yf.value!='' && myform.mf.value!='' && myform.df.value!=''
	&& myform.yt.value!='' && myform.mt.value!='' && myform.dt.value!='' )
	{
	  	datef=getMyDate(myform.yf,myform.mf,myform.df);
	  	datet=getMyDate(myform.yt,myform.mt,myform.dt);
		if (datef==null){
			alert("时间范围(从)不是有效的时间,请重新输入");
			return false;
		}else if (datet==null){
			alert("时间范围(到)不是有效的时间,请重新输入");
			return false;
		}else if(datef>datet){
			alert("时间范围(从)不能大于时间范围(到),请重新输入");
			return false;
		}
		datetInMs=datet.getTime();
		datetInMs=datetInMs+60*1000*60*24;		
		datet.setTime(datetInMs);
		myform.from_date.value=myform.yf.value+'/'+myform.mf.value+'/'+myform.df.value;
		if (datet.getYear()<=100){
			myform.to_date.value=(""+(datet.getYear()+1900))+'/';
		}else {
			myform.to_date.value=(""+(datet.getYear()))+'/';
		}	
		if (datet.getMonth()+1<10){
			myform.to_date.value=myform.to_date.value+'0'+(""+(datet.getMonth()+1))+'/';
		}else {
			myform.to_date.value=myform.to_date.value+(""+(datet.getMonth()+1))+'/';
		}	
		if (datet.getDate()<10){
			myform.to_date.value=myform.to_date.value+'0'+(""+datet.getDate());
		}else {
			myform.to_date.value=myform.to_date.value+(""+datet.getDate());
		}	
}

	return true;
}
function check(myform) 
{
		var aaa = myform.daima.value;
		if(myform.xjump.value==7)
		{
			if(aaa.length !=4)
  		{
				alert("请您输入4位证券代码");
				return false;
			}
		}						
		else
		{
			if(aaa.length !=6)
  		{
				alert("请您输入6位证券代码");
				return false;
			}
		}
switch (myform.xjump.value)
{
	case "1":
		window.open("http://quote.p5w.net/quote/hdpt.asp?gpdm="+aaa);
		break;
	case "2":
		window.open("http://company.p5w.net/ggzx.asp?zqdm="+aaa);
		break;
	case "3":
		window.open("http://quote.p5w.net/quote/fszs.asp?gpdm="+aaa);
		break;
	case "4":
		window.open("http://bbs.p5w.net/searchzqdm.php?fid=4&zqdm="+aaa);
		break;
	case "5":
		window.open("http://www.p5w.net/fund/jingzhi.html?daima="+aaa);
		break;
	case "6":
		window.open("http://company.p5w.net/commentjump.asp?zqdm="+aaa);
		break;
	case "7":
		window.open("http://company.p5w.net/hongkong/ggzx.asp?zqdm="+aaa);
		break;
	case "8":
		window.open("http://company.p5w.net/gszl/gsgk.asp?zqdm="+aaa);
		break;
	case "9":
		window.open("http://company.p5w.net/gszl/ggry.asp?zqdm="+aaa);
		break;
	case "10":
		window.open("http://company.p5w.net/gszl/cwzb.asp?zqdm="+aaa);
		break;
	case "11":
		window.open("http://company.p5w.net/gszl/fhpg.asp?zqdm="+aaa);
		break;
	case "12":
		window.open("http://company.p5w.net/gszl/fxss.asp?zqdm="+aaa);
		break;
	case "13":
		window.open("http://company.p5w.net/gszl/gbzk.asp?zqdm="+aaa);
		break;
	case "14":
		window.open("http://company.p5w.net/gszl/sdgd.asp?zqdm="+aaa);
		break;
	case "15":
		window.open("http://company.p5w.net/gszl/ltgd.asp?zqdm="+aaa);
		break;
	case "16":
		window.open("http://company.p5w.net/gszl/lsgg.asp?zqdm="+aaa);
		break;
	case "17":
		window.open("http://company.p5w.net/gszl/dqbg.asp?zqdm="+aaa);
		break;		
	default:
		window.open("http://company.p5w.net/gszl/gszc.asp?zqdm="+aaa);
}
		return false;
}

function search_file()
{
calendar = new Date();
day = calendar.getDay();
month = calendar.getMonth();
date = calendar.getDate();
year = calendar.getYear();
if (year<=100) year = 1900 + year;
month=month+1;
document.writeln(" 	<tr><td valign=\"top\">");
document.writeln("	  <table width=\"198\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("        <tr valign=\"top\"> ");
document.writeln("          <td background=\"http://www.p5w.net/site5/qw03.gif\" height=\"140\"> ");
document.writeln("            <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"8\">");

document.writeln("		<tr><td><div align=\"center\">");
Apcnews.showSearchFile();
document.writeln("    </div></td></tr>");
document.writeln("              <tr> ");
document.writeln("<form  name=\"frmStock\" method=\"get\" onsubmit=\"javascript:return check(frmStock)\">");
document.writeln("                <td> &nbsp;<img src=\"http://www.p5w.net/site5/cc.gif\" width=\"12\" height=\"12\">输入证券代码查询相关资讯：");
document.writeln("                  &nbsp;&nbsp;&nbsp; ");
document.writeln("                  <input name=\"daima\" type=\"text\" size=\"10\" maxlength=\"6\"><input type=\"hidden\" name=\"companyid\" value=\"0001\">");
document.writeln("<select name=\"xjump\">");
document.writeln(" <option value=\"1\">互动平台</option>");
document.writeln(" <option value=\"2\" selected>个股新闻</option>");
document.writeln(" <option value=\"3\">实时行情</option>");
document.writeln(" <option value=\"4\">个股论坛</option>");
document.writeln(" <option value=\"6\">网友评论</option>");
document.writeln(" <option value=\"8\">公司概况</option>");
document.writeln(" <option value=\"9\">高管人员</option>");
document.writeln(" <option value=\"10\">财务指标</option>");
document.writeln(" <option value=\"11\">分红配股</option>");
document.writeln(" <option value=\"12\">发行筹资</option>");
document.writeln(" <option value=\"13\">股本结构</option>");
document.writeln(" <option value=\"14\">十大股东</option>");
document.writeln(" <option value=\"15\">流通股东</option>");
document.writeln(" <option value=\"16\">临时公告</option>");
document.writeln(" <option value=\"17\">报告全文</option>");
document.writeln(" <option value=\"18\">公司制度</option>");
document.writeln(" <option value=\"7\">港股资讯</option>");
document.writeln(" <option value=\"5\">基金净值</option>");
document.writeln(" </select>");
document.writeln("				  <center><input type=\"image\" border=\"0\" name=\"imageField2222\" src=\"http://www.p5w.net/images2006/soso02_07.gif\" width=\"48\" height=\"20\"></center>");
document.writeln("                </td>");
document.writeln("              </form></tr>");
document.writeln("            </table>");
document.writeln("          </td>");
document.writeln("        </tr>");
document.writeln("      </table>");
document.writeln("	</td></tr>");
}




function search_home()
{
	document.write('<form method="post" action="http://index.p5w.net:7777/search.wct" name="SearchForm" onsubmit="return KeySearch_onsubmit()">'+'\n');
        document.write('<tr> <td bgcolor="A8A8A8" colspan="2"><img src="/images/blank.gif" width="1" height="1"></td></tr>'+'\n');
        document.write('<tr> <td align="center" bgcolor="f3f3f3" colspan="2"><img src="/images/doct.gif"> '+'\n');
        document.write('全景全文检索：'+'\n');
        document.write('<input type="hidden" name="ChannelID" value="1205">'+'\n');
	document.write('<input type="text" name="SearchWord" size="15" onFocus="search_tipkey()">'+'\n') ;
        document.write('<input type="radio" name="radTitle" value="detail" checked>'+'\n');
        document.write('检索全文 '+'\n');
	document.write('<input type="radio" name="radTitle" value="radiobutton">'+'\n');
        document.write('检索标题 <input type="image" border="0" name="imageField22" src="/images/search.gif" width="18" height="26" align="absmiddle">'+'\n'); 
	document.write('</td></tr>'+'\n');        
        document.write('</td></tr>'+'\n'); 
        document.write('<tr> <td bgcolor="A8A8A8" colspan="2"><img src="/images/blank.gif" width="1" height="1"></td></tr>'+'\n');
        document.write('</form>'+'\n');
}

function search_title()
{
        
        document.write('<form method="get" action="http://search.p5w.net/cgi-bin/wstsearch" name="WstForm" target="_blank"><table width=550 border=0 cellpadding=0 cellspacing=0 background="./images/cx03.gif" height="40">'+'\n');
        document.write('<tr><td width="129" valign="top"> <img src="./images/cx01.gif" width="129" height="40"></td>'+'\n');
        document.write('<td width="348" valign="middle"> '+'\n');
        document.write('<input type="hidden" name="tn" value="wst">'+'\n');
        document.write('<input type="hidden" name="relative" value="1">'+'\n');
        document.write('<input type="text" name="query" size="15">'+'\n');
        document.write('<select name=iftitle class="p1">'+'\n');
        document.write('<option value=0 selected>全文检索</option>'+'\n');
        document.write('<option value=1>标题检索</option></select>'+'\n');
        document.write('<select name=ch_id size=1 class="p1">'+'\n');
        document.write('<option value="" selected>所有频道</option>'+'\n');
        document.write('<option value="1">全景网络</option>'+'\n');
        document.write('<option value="2">巨潮资讯</option>'+'\n');
        document.write('<option value="3">全景-新闻</option>'+'\n');
        document.write('<option value="4">全景-股票</option>'+'\n');
        document.write('<option value="5">全景-基金</option>'+'\n');
        document.write('<option value="6">全景-港股</option>'+'\n');
        document.write('<option value="7">全景-中小板</option>'+'\n');
        document.write('<option value="8">全景-期货</option>'+'\n');
        document.write('<option value="9">全景-外汇</option>'+'\n');
        document.write('<option value="10">全景-银行</option>'+'\n');
        document.write('<option value="11">全景-保险</option>'+'\n');
        document.write('<option value="12">全景-债券</option>'+'\n');
        document.write('<option value="13">全景独家</option></select></td>'+'\n');
        document.write('<td width="73" valign="top"> '+'\n');
        document.write('<div align="right">'+'\n');
        document.write('<input type="image" border="0" name="imageField" src="./images/cx05.gif">'+'\n');
        document.write('</div></td></tr></form> '+'\n');
}

function search_channel() 
{
document.writeln("<tr><td>");
document.writeln("<td bgcolor=\"E6E6E6\"><div align=\"center\">");	
Apcnews.showSearch();
document.writeln("    </div></td>");

document.writeln("<form  name=\"form1\" method=\"post\" action=\"\" onsubmit=\"javascript:return check(form1)\">");
document.writeln("<td  bgcolor=\"E6E6E6\" class=\"title\">证券代码:");
document.writeln("<input name=\"daima\" id=\"daima\" type=\"text\" class=\"forms\" size=\"6\" maxlength=\"6\">");
document.writeln("<select name=\"xjump\" class=\"forms\">");
document.writeln(" <option value=\"1\">互动平台</option>");
document.writeln(" <option value=\"2\" selected>个股新闻</option>");
document.writeln(" <option value=\"3\">实时行情</option>");
document.writeln(" <option value=\"4\">个股论坛</option>");
document.writeln(" <option value=\"6\">网友评论</option>");
document.writeln(" <option value=\"8\">公司概况</option>");
document.writeln(" <option value=\"9\">高管人员</option>");
document.writeln(" <option value=\"10\">财务指标</option>");
document.writeln(" <option value=\"11\">分红配股</option>");
document.writeln(" <option value=\"12\">发行筹资</option>");
document.writeln(" <option value=\"13\">股本结构</option>");
document.writeln(" <option value=\"14\">十大股东</option>");
document.writeln(" <option value=\"15\">流通股东</option>");
document.writeln(" <option value=\"16\">临时公告</option>");
document.writeln(" <option value=\"17\">报告全文</option>");
document.writeln(" <option value=\"18\">公司制度</option>");
document.writeln(" <option value=\"7\">港股资讯</option>");
document.writeln(" <option value=\"5\">基金净值</option>");
document.writeln(" </select>");
document.writeln(" <input type=\"image\" border=\"0\" name=\"imageField\" src=\"http://www.p5w.net/images2006/soso02_07.gif\" width=\"48\" height=\"20\" align=\"absmiddle\">");
document.writeln("</td></form>");
document.writeln("</td></tr>");
}

function search_channel_one() 
{
document.writeln("<tr><td>");
document.writeln("<form name=\"sform\" method=\"get\" action=\"http://search.p5w.net/cgi-bin/wstsearch\" target=\"_blank\" onSubmit=\"javascript:return chkform(sform)\">");
document.writeln("<td  class=\"title\">全景检索:");
document.writeln(" <input name=\"query\" type=\"text\" class=\"forms\" size=\"8\">");
document.writeln(" <select name=\"iftitle\" class=\"forms\">");
document.writeln(" <option value=0 selected>全文检索</option>");
document.writeln(" <option value=1>标题检索</option>");
document.writeln(" </select>");
document.writeln(" <input type=\"image\" border=\"0\" name=\"imageField\" src=\"/site5/q4.gif\" width=\"67\" height=\"21\" align=\"absmiddle\">");
document.write('<input type="hidden" name="tn" value="wst">'+'\n');
document.write('<input type="hidden" name="relative" value="1">'+'\n');
document.writeln("<input type=\"hidden\" value=\"\" name=\"yf\">");
document.writeln("<input type=\"hidden\" value=\"\" name=\"from_date\">");
document.writeln(" <input type=\"hidden\" value=\"\"  name=\"to_date\">");
document.writeln("</td></form>");
document.writeln("</td></tr>");
}

function search_channel_2line() 
{

document.writeln("   <table width=\"100%\"  border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\">");
document.writeln("		<tr>");
document.writeln("       <form  name=\"form1\" method=\"post\" action=\"\" onsubmit=\"javascript:return check(form1)\"><td valign=\"middle\"><div align=\"center\">");
document.writeln("        <input name=\"daima\" id=\"daima\" class=\"forms\" type=\"text\" value=\"证券代码\" size=\"10\" maxlength=\"6\" onblur=\"if (this.value =='') this.value='证券代码'\" onmouseover=this.focus() onfocus=this.select() onclick=\"if (this.value=='证券代码') this.value=''\">");
document.writeln("				<select name=\"xjump\" class=\"forms\">");
document.writeln(" <option value=\"1\">互动平台</option>");
document.writeln(" <option value=\"2\" selected>个股新闻</option>");
document.writeln(" <option value=\"3\">实时行情</option>");
document.writeln(" <option value=\"4\">个股论坛</option>");
document.writeln(" <option value=\"6\">网友评论</option>");
document.writeln(" <option value=\"8\">公司概况</option>");
document.writeln(" <option value=\"9\">高管人员</option>");
document.writeln(" <option value=\"10\">财务指标</option>");
document.writeln(" <option value=\"11\">分红配股</option>");
document.writeln(" <option value=\"12\">发行筹资</option>");
document.writeln(" <option value=\"13\">股本结构</option>");
document.writeln(" <option value=\"14\">十大股东</option>");
document.writeln(" <option value=\"15\">流通股东</option>");
document.writeln(" <option value=\"16\">临时公告</option>");
document.writeln(" <option value=\"17\">报告全文</option>");
document.writeln(" <option value=\"18\">公司制度</option>");
document.writeln(" <option value=\"7\">港股资讯</option>");
document.writeln(" <option value=\"5\">基金净值</option>");
document.writeln("				 </select>");
document.writeln("			 <input type=\"image\" border=\"0\" name=\"imageField\" src=\"http://www.p5w.net/images2006/soso02_07.gif\" width=\"48\" height=\"20\" align=\"absmiddle\">");
document.writeln("            </div></td>");
document.writeln("            </form>");
document.writeln("    </tr>");
document.writeln("    <tr><td height=\"5\"></td></tr>");

document.writeln("		<tr>");
document.writeln("<input type=\"hidden\" name=\"client\" value=\"pub-0788409772529961\"></input>");	
document.writeln("<input type=\"hidden\" name=\"forid\" value=\"1\"></input>");	
document.writeln("<input type=\"hidden\" name=\"ie\" value=\"GB2312\"></input>");	
document.writeln("<input type=\"hidden\" name=\"oe\" value=\"GB2312\"></input>");	
document.writeln("<input type=\"hidden\" name=\"cof\" value=\"GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:37;LW:87;L:http://www.p5w.net/images_detail/p5wlogo.jpg;S:http://www.p5w.net/;LP:1;FORID:1\"></input>");	
document.writeln("<input type=\"hidden\" name=\"hl\" value=\"zh-CN\"></input>");	
document.writeln("<td><div align=\"center\">");	
Apcnews.showSearch();
document.writeln("    </div></td>");
document.writeln("  </tr>");	
document.writeln("</table>");	
}
