function testCookie() {

	var sName = "tEst_cOOkIE";
	var sValue = "FaiNT_GoD_aND_You";

	document.cookie = sName + "=" + sValue + ";expires=";

	var aCookie = document.cookie.split(";");

	for (var i=0; i < aCookie.length; i++) {
		var aCrumb = aCookie[i].split("=");
		if (sName == aCrumb[0]) 
			return true;
	}

return false;
}
//if (testCookie() == false){ window.open("atention.htm","","width=300,height=200,top=100,left=200");}
function showIntro() {
        window.open("http://puhuo.biz/feedback.php","","WIDTH=390,HEIGHT=420,top=90,left=400")
}
function cars(id){  //加入购物车
         var sendurl="./sess/cars.php?id="+id;
         window.open(sendurl,"sendurl","left=130,top=110,width=630,resizable=1,status=0,menubar=0,scrollbars=1');");
}

function inquir(){  //查看购物车
         var sendurl="./sess/inquir.php";
         window.open(sendurl,"sendurl","left=130,top=110,width=630,resizable=1,status=0,menubar=0,scrollbars=1');");
}

function register() {   //用户注册
	var modurl="./ttxsw/register.php";
	window.open(modurl,'modurl','left=150, top=90, width=485,height=425,resizable=1,status=0,menubar=0,scrollbars=1');
}

function ordsearch(name) {  //查看订单信息
	var perurl="./ttxsw/ordsearch.php?CarID="+name;
	window.open(perurl,'perurl','left=70, top=20, width=640,height=480,resizable=1,status=0,menubar=0,scrollbars=1');
}

function modify_info() {    //修改用户信息
	var modurl="./ttxsw/modify_info.php";
	window.open(modurl,'modurl','left=150, top=90, width=490,height=390,resizable=1,status=0,menubar=0,scrollbars=1');
}

function forgetpass() {     //忘记密码
	if(document.loginform.name.value=="") {
		alert('请在登陆框输入用户名！');
		document.loginform.name.focus();
		return;
	}
	var fgpurl="./ttxsw/forgetpass.php?name="+document.loginform.name.value;
	window.open(fgpurl, 'fgpwin', 'left=300, top=10, width=220,height=160,resizable=0,status=0,menubar=0,scrollbars=0');
}

function logout() {  //退出网站 
	if(comfirm('您确定要退出吗？')) {
		window.top.location.href = "./ttxsw/logout.php";
	}
}

function showmsg() {  //显示短消息
	var msgurl="./ttxsw/show.php";
	window.open(msgurl, 'showmsgwin', 'left=80, top=50, width=700,height=460,resizable=1,status=0,menubar=0,scrollbars=1');
}

function newmsg() {  //写新消息
	var msgurl="./ttxsw/message.php";
	window.open(msgurl, 'newmsgwin', 'left=80, top=50, width=700,height=460,resizable=1,status=0,menubar=0,scrollbars=1');
}

function replymsg(accepter) {  //回复消息
	var msgurl="./ttxsw/message.php?name="+accepter;
	window.open(msgurl, 'replymsgwin', 'left=80, top=50, width=700,height=460,resizable=1,status=0,menubar=0,scrollbars=1');
}

