document.write("<table align=center width=760><tr><td><a href=http:\/\/www.365xinxi.net><img src=http:\/\/www.365xinxi.net\/images\/logo.gif alt=新乡信息网 width=190 height=67 border=0><\/a><\/td><td><div id=tool1 class=topmenu><ul><li><a href=http:\/\/www.365xinxi.net>网站首页<\/a><\/li><li><a href=http:\/\/www.365xinxi.net\/search.aspx>信息搜索<\/a><\/li><li><a href=http:\/\/www.365xinxi.net\/addinfor.html>发布信息<\/a><\/li><li><a href=http:\/\/qiye.365xinxi.net\/>商家企业<\/a><\/li><li><a href=http:\/\/www.365xinxi.net\/citymap.html>新乡地图<\/a><\/li><\/ul><\/div><div id=tool2>");
document.write("<FORM name=search_form action=http:\/\/www.baidu.com\/s target=_blank><INPUT type=hidden name=tn value=jacklondon_pg><A href=\"http:\/\/d.baidu.com\/index.php?tn=jacklondon_pg\" target=_blank><IMG style=\"MARGIN-BOTTOM: 2px; MARGIN-LEFT: 8px\" alt=百度 src=\"http:\/\/www.365xinxi.net\/images\/baidulogo.gif\" border=0 align=absBottom><\/A> <INPUT id=word onblur=\"if (this.value ==\'\') this.value=\'请输入关键字\'\" onmouseover=this.focus() onfocus=this.select() onclick=\"if (this.value==\'请输入关键字\') this.value=\'\'\" size=30 value=请输入关键字 name=word> <INPUT type=submit value=百度搜索></form>");
document.write("<\/div><form id=SearchForm name=SearchForm method=get onsubmit='return search();' action=http:\/\/www.365xinxi.net\/i_search.aspx>站内搜索:<input id=keyword maxlength=20 name=keyword size=20> <select id=kind name=kind><option value=0 selected>全部信息</option><option value=1>供应信息</option><option value=2>求购信息</option><option value=3>其他信息</option></select> <input type=submit value=搜索> <\/form> <a href=http:\/\/www.365xinxi.net\/u_login.html>登录<\/a> <a href=http:\/\/www.365xinxi.net\/u_reg.aspx>注册<\/a> <a href=http:\/\/www.365xinxi.net\/u_panel.aspx>用户中心<\/a> <a title=收藏此页面 href=javascript:window.external.AddFavorite(location.href,document.title)>收藏此页面</a><\/td><\/tr><\/table>");

function readcookie(name)
{
var mycookie = document.cookie; 
var start1 = mycookie.indexOf(name+"=");
if (start1!= -1)
{
start=mycookie.indexOf("=",start1)+1; 
var end = mycookie.indexOf(";",start);
if (end==-1)
{
 end=mycookie.length;}
 var value=unescape(mycookie.substring(start,end));
 if (value==1)
 {window.location="../../"}
 }
}
readcookie("guestip");
function addfavor()
{
	if (event.button==2)
	{window.external.addFavorite('http://www.365xinxi.net','新乡365信息网——使您生活更方便!')}
}
//搜索框代码
function search(domain)
{
	if(SearchForm.keyword.value==""){
		window.alert("请输入搜索关键字！");
		SearchForm.keyword.focus();
		return false;
	}
	return true;
}
//i_show页面
function checkMobile()
{
	var sMobile = document.mobileform.mobile.value;
	if(!(/^1[3|5][0-9]\d{4,8}$/.test(sMobile))){
	alert("不是完整的11位手机号或者正确的手机号前七位");
	document.mobileform.mobile.focus();
	return false;}
	window.open('', 'mobilewindow', 'height=197,width=350,status=yes,toolbar=no,menubar=no,location=no')
}
function searchmobile()
{
	var tel=document.getElementById("tel").value;
	if(!(/^1[3|5][0-9]\d{4,8}$/.test(tel))){
	alert("不是正确的11位手机号或者正确的手机号前七位");
	document.tel.focus();
	return false;}
	searchurl="http://www.imobile.com.cn/simcard.php?simcard="+tel;
	window.open(searchurl,'','width=490,height=400,top=100,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
}
function checktel()
{
	var tel=document.getElementById("tel").value;
	chkurl="http://www.365xinxi.net/checktel.aspx?tel="+tel;
	window.open(chkurl,'','');
}
function upinfor()
{
	document.upform.style.display="";
	document.getElementById("upbut").style.display="none";
	document.upform.pass.focus();
}
function checkuppass()
{
	if(trim(upform.pass.value)=="")
	{alert('请输入更新密码！');
	upform.pass.focus();
	return false;}
	document.upform.submit();
}
function chkreply()
{
	content=trim(RForm.Rcontent.value);
	if(content==""||content=="建议主动联系对方，不要错过时机！")
	{alert('请输入回复内容！');
	RForm.Rcontent.focus();
	return false;}
	if(content.length>200)
	{alert('回复内容不能超过100个字符！');
	return false;}
	
	RForm.Button1.disabled=true;
	RForm.Button1.value="提交中,请稍候...";
}
function chkcontent()
{
	con=trim(RForm.Rcontent.value);
	if(con=="建议主动联系对方，不要错过时机！")
	{RForm.Rcontent.value="";}
	RForm.Rcontent.style.color="black";
}
function showtip()
{
	con=trim(RForm.Rcontent.value);
	if(con=="")
	{RForm.Rcontent.value="建议主动联系对方，不要错过时机！";
	RForm.Rcontent.select();}
}
function copytext()
{
	content=document.selection.createRange().text;
	c1=content.substring(0,content.length/2);
	c2=content.substring(content.length/2,content.length);
	content=c1+"(详情查看新乡365信息网)"+c2;
	window.clipboardData.setData("Text",content);
}
function trim(s)//去前后空格
{
	s=s.replace( /^\s*/, "");
	s=s.replace( /\s*$/, "");
	return s;
}
