<!--
	var XMLHttpReq = false;
    function createXMLHttpRequest() {
		if(window.XMLHttpRequest) { 
			XMLHttpReq = new XMLHttpRequest();
		}
		else if (window.ActiveXObject) { 
			try {
				XMLHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					XMLHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e) {}
			}
		}
	}
	
	function sendRequest(url) 
	{
		createXMLHttpRequest();
		XMLHttpReq.open("GET", url, true);
		XMLHttpReq.onreadystatechange = processResponse;
		XMLHttpReq.send(null);  
	}
	
    function processResponse() 
	{
    	if (XMLHttpReq.readyState == 4) 
		{ 
        	if (XMLHttpReq.status == 200) 
			{ 
				var select_html = XMLHttpReq.responseXML;
				var flags = select_html.getElementsByTagName("flags");
				
				if(flags[0].firstChild.nodeValue==2)
				{
				  var receivePerson = select_html.getElementsByTagName("receivePerson");
				  var country = select_html.getElementsByTagName("country");
				  var province = select_html.getElementsByTagName("province");
				  var city = select_html.getElementsByTagName("city");
				  var address = select_html.getElementsByTagName("address");
				  var zip = select_html.getElementsByTagName("zip");
				  var phoneArea = select_html.getElementsByTagName("phoneArea");
				  var phone = select_html.getElementsByTagName("phone");
				  var phoneNext = select_html.getElementsByTagName("phoneNext");
				  var telPhone = select_html.getElementsByTagName("telPhone");
				  var method = select_html.getElementsByTagName("method");
				  var sendId = select_html.getElementsByTagName("sendId");
                  var cityId = select_html.getElementsByTagName("cityId");
				  var cityName = select_html.getElementsByTagName("cityName");
				  var provinceId = select_html.getElementsByTagName("provinceId");
				  var provinceName = select_html.getElementsByTagName("provinceName");
				  
				  
				  if(method[0].firstChild.nodeValue==0)
				  {
				  var po = "<TABLE class=textfont cellSpacing=1 cellPadding=2 width=500 border=0>"+
				  "<TBODY><TR><TD width='119'><DIV align=right>收货人：</DIV></TD>"+
				  "<TD width='370' style='padding-left:5px'>"+receivePerson[0].firstChild.nodeValue+
				  "</TD></TR><TR><TD><DIV align=right>国家：</DIV></TD><TD style='padding-left:5px'>"+
				  country[0].firstChild.nodeValue+"  省份/直辖市："+province[0].firstChild.nodeValue+"  市/县/区："+
				  city[0].firstChild.nodeValue+"</TD></TR><TR><TD><DIV align=right>详细地址：</DIV></TD>"+
				  "<TD style='padding-left:5px'>"+address[0].firstChild.nodeValue+"</TD></TR><TR><TD>"+ 
                  "<DIV align=right>邮政编码：</DIV></TD><TD style='padding-left:5px'>"+zip[0].firstChild.nodeValue+
				  "</TD></TR><TR><TD><DIV align=right>移动电话：</DIV></TD><TD style='padding-left:5px'>"
				  +telPhone[0].firstChild.nodeValue+"固定电话："+phone[0].firstChild.nodeValue+"</TD></TR></TABLE>";
				  document.getElementById("sendAddr").innerHTML = po;
				  }else if(method[0].firstChild.nodeValue==1)
				  {
				  var po110 = "<select name='select2' id='provinceId' style='width:80' onChange='selProvince()'>";
				  var po210 = "</select>";
				  var po310 ="";
				  for(var i=0;i<provinceId.length;i++)
				  {
					if(provinceName[i].firstChild.nodeValue==province[0].firstChild.nodeValue)
					{
						po310 = po310+"<option value='"+provinceId[i].firstChild.nodeValue+"' selected>"+provinceName[i].firstChild.nodeValue+"</option>";
				    }else{
					po310 = po310+"<option value='"+provinceId[i].firstChild.nodeValue+"'>"+provinceName[i].firstChild.nodeValue+"</option>";
					}
				  }
                  po310 = po110 + po310 + po210;
				  
				  var po11 = "<div id='ctId' style='position:absolute; width:80'><select name='select3' style='width:80'>";
				  var po21 = "</select></div>";
				  var po31 ="";
				  for(var i=0;i<cityId.length;i++)
				  {
					if(cityName[i].firstChild.nodeValue==city[0].firstChild.nodeValue)
					{
						po31 = po31+"<option value='"+cityId[i].firstChild.nodeValue+"' selected>"+cityName[i].firstChild.nodeValue+"</option>";
					}else{
					po31 = po31+"<option value='"+cityId[i].firstChild.nodeValue+"'>"+cityName[i].firstChild.nodeValue+"</option>";
					}
				  }
                  po31 = po11 + po31 + po21;
				  
					var po = "<TABLE class=textfont cellSpacing=1 cellPadding=2 width=500 border=0>"+
				  "<TBODY><TR><TD width='119'><DIV align=right>收货人：</DIV></TD>"+
				  "<TD width='370' style='padding-left:5px'><INPUT size=20 name=realname value="+
				  receivePerson[0].firstChild.nodeValue+" style='border:1px solid #999999;height:18'>"+
				  "</TD></TR><TR><TD><DIV align=right>国家：</DIV></TD>"+
				  "<TD style='padding-left:5px'><select name='select1' id='countryid'>"+
                  "<option value=1 selected>中国</option><option value=2>国外</option></select>省份/直辖市："
				  +po310+"市/县/区："+po31+"</TD></TR><TR><TD><DIV align=right>详细地址：</DIV></TD>"+
				  "<TD style='padding-left:5px'><input size=50  maxlength='50' value='"+address[0].firstChild.nodeValue
				  +"' name='where' style='border:1px solid #999999;height:18'></TD></TR><TR><TD>"+ 
                  "<DIV align=right>邮政编码：</DIV></TD><TD style='padding-left:5px'><INPUT size=10 name='postalCode'"+
				  " maxlength='6' value='"+zip[0].firstChild.nodeValue+"' style='border:1px solid #999999;height:18' >"+
				  "</TD></TR><TR><TD><DIV align=right>移动电话：</DIV></TD><TD style='padding-left:5px'>"
				  +"<INPUT size=11 name='move_phone' maxlength='12' value='"+telPhone[0].firstChild.nodeValue
				  +"' style='border:1px solid #999999;height:18' >  固定电话：<INPUT size=4 name='phone_Area' value='"
				  +phoneArea[0].firstChild.nodeValue+"' maxlength='4' style='border:1px solid #999999;height:18'>"+
				  "---<INPUT size='11' maxlength='11' name='phone_' value='"+phone[0].firstChild.nodeValue+
				  "' style='border:1px solid #999999;height:18'></TD></TR></TABLE>"
				  +"<table width='70%' border='0' cellspacing='0' cellpadding='0' style='margin-top:15px;margin-bottom:5px'>"                  +"<tr><td width='105'><span onClick='doSubmit("+sendId[0].firstChild.nodeValue+")' style='cursor:hand'>"
				  +"<img src='images/js_03.gif' width='105' height='20' border='0'></span></td><td align='center'>&nbsp;</td>"
				  +"<td width='126'><a href='/userSelf.html?method=sendAdrss'/>"
				  +"<img src='images/js_07.gif' width='126' height='20' border='0'></a></td></tr></table>";
				  document.getElementById("sendAddr").innerHTML = po;
				  }
				}else if(flags[0].firstChild.nodeValue==0)
				{
				document.getElementById("div1").style.display = "block";
				var category = select_html.getElementsByTagName("category");
				var categoryId = select_html.getElementsByTagName("categoryId");
				var categoryName = select_html.getElementsByTagName("categoryName");
				if(category.length>0)
				{
				var po1 ="<table width='100' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF' style='border:1px solid #D0CECE;border-left:1px solid #E5E5E5'>"
			+"<tr><td style='padding:5px 0px;padding-left:10px;line-height:200%;color: #7C7A7A'>";
		        var po2 = "</td></tr></table>";
				var po3="";
				if(categoryId.length>0)
				{
				for(var i=0;i<categoryId.length;i++)
			   	  {
					po3=po3+"<a href='productDesc.html?method=catogery&catogery="+categoryId[i].firstChild.nodeValue+"' class='bluediv'>"+categoryName[i].firstChild.nodeValue+"</a><br>";
			      }
				}else{
				  po1="";
				  po2="";
				}
				var po = po1 + po3 +po2;
				document.getElementById("div1").innerHTML = po;
				}
				}else if(flags[0].firstChild.nodeValue==1)
				{
				var cityTag = select_html.getElementsByTagName("city");
				var cityId = select_html.getElementsByTagName("cityId");
				var cityName = select_html.getElementsByTagName("cityName");
				if(cityTag.length>0)
				{
				 var po1 = "<select name='select3' style='width:80'>";
				 var po2 = "</select>";
				 var po3 ="";
				 for(var i=0;i<cityId.length;i++)
				 {
					po3 = po3+"<option value='"+cityId[i].firstChild.nodeValue+"'>"+cityName[i].firstChild.nodeValue+"</option>";
				 }
                 var po = po1 + po3 + po2;
                 document.getElementById("ctId").innerHTML = po;	
				}
				}else if(flags[0].firstChild.nodeValue==3)
				{
				  var cityId = select_html.getElementsByTagName("cityId");
				  var cityName = select_html.getElementsByTagName("cityName");
				  var provinceId = select_html.getElementsByTagName("provinceId");
				  var provinceName = select_html.getElementsByTagName("provinceName");
				  
				  var po110 = "<select name='select2' id='provinceId' style='width:80' onChange='selProvince()'>";
				  var po210 = "</select>";
				  var po310 ="";
				  for(var i=0;i<provinceId.length;i++)
				  {
					
					po310 = po310+"<option value='"+provinceId[i].firstChild.nodeValue+"'>"+provinceName[i].firstChild.nodeValue+"</option>";
				  }
                  po310 = po110 + po310 + po210;
				  
				  var po11 = "<div id='ctId' style='position:absolute; width:80'><select name='select3' style='width:80'>";
				  var po21 = "</select></div>";
				  var po31 ="";
				  for(var i=0;i<cityId.length;i++)
				  {
					po31 = po31+"<option value='"+cityId[i].firstChild.nodeValue+"'>"+cityName[i].firstChild.nodeValue+"</option>";
				  }
                  po31 = po11 + po31 + po21;
				  //添加新地址
					var po = "<TABLE class=textfont cellSpacing=1 cellPadding=2 width=500 border=0>"+
				  "<TBODY><TR><TD width='119'><DIV align=right>收货人：</DIV></TD>"+
				  "<TD width='370' style='padding-left:5px'><INPUT size=20 name=realname value=''"+
				  " style='border:1px solid #999999;height:18'>"+
				  "</TD></TR><TR><TD><DIV align=right>国家：</DIV></TD>"+
				  "<TD style='padding-left:5px'><select name='select1' id='countryid'>"+
                  "<option value=1 selected>中国</option><option value=2>国外</option></select>省份/直辖市："
				  +po310+"市/县/区："+po31+"</TD></TR><TR><TD><DIV align=right>详细地址：</DIV></TD>"+
				  "<TD style='padding-left:5px'><input size=50  maxlength='50' value='"
				  +"' name='where' style='border:1px solid #999999;height:18'></TD></TR><TR><TD>"+ 
                  "<DIV align=right>邮政编码：</DIV></TD><TD style='padding-left:5px'><INPUT size=10 name='postalCode'"+
				  " maxlength='6' value='' style='border:1px solid #999999;height:18' >"+
				  "</TD></TR><TR><TD><DIV align=right>移动电话：</DIV></TD><TD style='padding-left:5px'>"
				  +"<INPUT size=11 name='move_phone' maxlength='12' value='"
				  +"' style='border:1px solid #999999;height:18' >  固定电话：<INPUT size=4 name='phone_Area' value='"
				  +"' maxlength='4' style='border:1px solid #999999;height:18'>"+
				  "---<INPUT size='11' maxlength='11' name='phone_' value='"+
				  "' style='border:1px solid #999999;height:18'></TD></TR></TABLE>"
				  +"<table width='70%' border='0' cellspacing='0' cellpadding='0' style='margin-top:15px;margin-bottom:5px'>"                  +"<tr><td width='105'><span onClick='doSubmit()' style='cursor:hand'>"
				  +"<img src='images/js_03.gif' width='105' height='20' border='0'></span></td><td align='center'>&nbsp;</td>"
				  +"<td width='126'><a href='/userSelf.html?method=sendAdrss'/>"
				  +"<img src='images/js_07.gif' width='126' height='20' border='0'></a></td></tr></table>";
				  document.getElementById("sendAddr").innerHTML = po;
				}else if(flags[0].firstChild.nodeValue==4)
				{
				  var carr = select_html.getElementsByTagName("carr");
				    
				  var po1 = "<table width='500' border='0' cellspacing='0' cellpadding='0'><tr><td style='padding-left:100px;'>";
				  var po2 = "</td></tr></table>";
				  var po = po1;
				  if(carr[0].firstChild.nodeValue==1)
				  {
					  po = po1 + "北京 （10元,注：联通客户不收取运费）";
				  }else if(carr[0].firstChild.nodeValue==3)
				  {
					  po = po1 + "北京以外地区 （30元，注：暂不支持联通客户外地配送）";
				  }else if(carr[0].firstChild.nodeValue==4)
				  {
					  po = po1 + "自取货物 （0元）";
				  }
				  po = po + po2;
				  document.getElementById("Tse").innerHTML = po;
				}else if(flags[0].firstChild.nodeValue==5)
				{
				    
				  var po = "<table width='500' border='0' cellspacing='0' cellpadding='0'><tr><td>"+
				           "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"+ 
                           "<td width='108' height='25'>&nbsp;</td>"+
                           "<td><input id='radio1' type='radio'  name='carriageName' value='1' onClick='docarriage();'></td>"+
                           "<td><font color='#666666'>北京 （10元,注：联通客户不收取运费）</font></td></tr><tr>"+ 
                           "<td width='108' height='25'>&nbsp;</td><td width='25'>"+
                           "<input id='radio3' type='radio' name='carriageName' value='3' onClick='docarriage();'></td>"+
                           "<td><font color='#666666'>北京以外地区 （30元，注：暂不支持联通客户外地配送）</font></td></tr><tr>"+
                           "<td height='25'>&nbsp;</td>"+
                           "<td><input id='radio4' type='radio' name='carriageName' value='4' onClick='docarriage();'></td>"+
                           "<td><font color='#666666'>自取货物 （0元）</font></td></tr></table></td></tr></table>";
				  document.getElementById("Tse").innerHTML = po;
				}else if(flags[0].firstChild.nodeValue==6)
				{
				  var payType = select_html.getElementsByTagName("payType");
				  var total = select_html.getElementsByTagName("total");
				  var carriage = select_html.getElementsByTagName("carriage");
				  var po1 = "";
				  if(payType[0].firstChild.nodeValue==0)
				  {
					  po1 = po1 + "虚拟账户支付";
				  }else if(payType[0].firstChild.nodeValue==1)
				  {
					  po1 = po1 + "支付宝";
				  }else if(payType[0].firstChild.nodeValue==2)
				  {
					  po1 = po1 + "IPS";
				  }else if(payType[0].firstChild.nodeValue==3)
				  {
					  po1 = po1 + "PayPal";
				  }else if(payType[0].firstChild.nodeValue==4)
				  {
					  po1 = po1 + "货到付款";
				  }else if(payType[0].firstChild.nodeValue==5)
				  {
					  po1 = po1 + "工商银行";
				  }else if(payType[0].firstChild.nodeValue==6)
				  {
					  po1 = po1 + "中国银行";
				  }else if(payType[0].firstChild.nodeValue==7)
				  {
					  po1 = po1 + "招商银行";
				  }else if(payType[0].firstChild.nodeValue==8)
				  {
					  po1 = po1 + "现金支付";
				  }else if(payType[0].firstChild.nodeValue==9)
				  {
					  po1 = po1 + "刷卡支付";
				  }
				  var po = "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"+
                           "<td width='18%' class='fkfs'><strong>付款方式</strong></td>"+
                           "<td width='82%' class='fkfs'><a href='javascript:void(0);' onclick='editPayType()'>"+
						   "<font color='#222222'><strong>修改</strong></font></a></td></tr><tr>"+
						   "<td colspan='2' align='left' style='line-height:190%;padding:3px 0px;padding-left:100px;'>"+
						   "<font size='3'><strong>"
						   +po1+"</strong></font></td></tr></table>";
				 
				  document.getElementById("payType").innerHTML = po;
				  if(payType[0].firstChild.nodeValue==4)
				  {
					   var poCarrige = carriage[0].firstChild.nodeValue + "元";
				       var poTotal = total[0].firstChild.nodeValue + "元";
					   document.getElementById("ajaxCarriage").innerHTML = poCarrige;
				       document.getElementById("ajaxTotal").innerHTML = poTotal;
				  }				  
				}else if(flags[0].firstChild.nodeValue==7)
				{
				  var realMoney = select_html.getElementsByTagName("realMoney");
				  var totalMoney = select_html.getElementsByTagName("totalMoney");
				  var total = select_html.getElementsByTagName("total");
				  var carriage = select_html.getElementsByTagName("carriage");
				  var carriageMoney = select_html.getElementsByTagName("carriageMoney");
				  var cncIsCnc = select_html.getElementsByTagName("cncIsCnc");
				  
				  var po1 = "";
				  if(Number(realMoney[0].firstChild.nodeValue)==0)
				  {
					  po1 = po1 + "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"+
                                  "<td class='fkfs'><strong>付款方式</strong></td></tr></table>";
				  }else if(Number(realMoney[0].firstChild.nodeValue)>=Number(total[0].firstChild.nodeValue)){	
					  po1 = po1 + "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"+
                                  "<td class='fkfs'><strong>付款方式</strong></td></tr><tr><td>"+
								  "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"+
								  "<tr><td width='30'>"+
				"<input type='radio' name='pay'  id='pay0' value='0' onClick=dospay(document.getElementById('pay0').value)>"+
				                  "</td><td width='100' align='center' bgcolor='#ECE8E8' class='fkfs'>我的账户支付</td>"+
								  "<td class='fkfs'>　（<font color='#CC000'>您的账户目前余额为："+realMoney[0].firstChild.nodeValue+
								  "</font>）</td></tr></table></td></tr><tr>"+
								  "<td style='line-height:190%;padding:3px 0px;padding-bottom:10px'><font color='#cc0000'>"+
								  "您的帐户金额足够支付本次订单,帐户将被扣除"+total[0].firstChild.nodeValue+"</font></td></tr></table>";
				  }else if(Number(realMoney[0].firstChild.nodeValue)>0&&Number(realMoney[0].firstChild.nodeValue)<Number(total[0].firstChild.nodeValue)){
					  var otherMoney = total[0].firstChild.nodeValue - realMoney[0].firstChild.nodeValue; 
					  po1 = po1 + "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"+
                                  "<td class='fkfs'><strong>付款方式</strong></td></tr><tr><td>"+
								  "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"+
								  "<tr>"+
								  "<td class='fkfs'>"+
								  "<font color='#CC000'>（您的账户目前余额为："+realMoney[0].firstChild.nodeValue+
								  "）</font></td></tr></table></td></tr><tr>"+
								  "<td style='line-height:190%;padding:3px 0px;padding-bottom:10px'><font color='#cc0000'>"+
								  "　本次订单您还差"+otherMoney+"，请选择“其他支付方式”支付差额"+
								  "</font></td></tr></table>";
				  }
                  var po2 = "";
				  if(Number(realMoney[0].firstChild.nodeValue)<Number(total[0].firstChild.nodeValue))
				  {
				  if(carriage[0].firstChild.nodeValue=="1")
				  {
					po2 = po2 + "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
					+"<td style='padding-bottom:5px'> <table width='100%' border='0' cellspacing='0' cellpadding='0'>"
					+"<tr>"
					+"<td class='fkfs'>&nbsp;</td></tr></table></td></tr><tr><td style='line-height:190%;padding:3px 0px'>"
					+"<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
					+"<td width='45' align='right'>&nbsp; </td><td width='30' align='center'>&nbsp;</td>"
					+"<td width='70' align='center' bgcolor='#ECE8E8'><font color='#666666'>网上支付</font></td>"
					+"<td style='padding-top:5px;line-height:100%'><font color='#666666'>"
					+"使用:&quot;网上支付&quot;功能，您需要先拥有一张开通了网上支付功能的银行卡。</font></td></tr></table></td></tr>"
					+"<tr><td style='line-height:190%;padding:3px 0px'>"
					+"<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td height='25'>&nbsp;</td>"
					+"<td><input type='radio' name='pay' id='pay1' value='1' onClick=dospay(document.getElementById('pay1').value)>"
					+"</td><td><font color='#666666'>支付宝</font></td></tr><tr><td height='25'>&nbsp;</td>"
					+"<td><input type='radio' name='pay' id='pay2' value='2' onClick=dospay(document.getElementById('pay2').value)>"
					+"</td><td><font color='#666666'>IPS</font></td></tr><tr><td width='100' height='25'>&nbsp;</td>"
					+"<td width='25'><input type='radio' name='pay' id='pay3' value='3' onClick=dospay(document.getElementById('pay3').value)>"
					+"</td><td><font color='#666666'>PayPal</font></td></tr></table></td></tr><tr>"
					+"<td style='line-height:190%;padding:5px 0px'><table width='100%' border='0' cellspacing='0' cellpadding='0'>"                    +"<tr><td width='45' align='right'>&nbsp; </td><td width='30' align='center'><input type='radio' name='pay' id='pay4' value='4' onClick=dospay(document.getElementById('pay4').value)>"
					+"</td><td width='70' align='center' bgcolor='#ECE8E8'><font color='#666666'>货到付款</font></td>"
					+"<td style='padding-top:5px;line-height:100%'>&nbsp;</td></tr></table></td></tr><tr>"
					+" <td style='line-height:190%;padding:5px 0px'> <table width='100%' border='0' cellspacing='0' cellpadding='0'>"
					+"<tr><td width='45' align='right'>&nbsp; </td><td width='30' align='center'>&nbsp;</td>"
					+"<td width='70' align='center' bgcolor='#ECE8E8'><font color='#666666'>银行汇款</font></td>"
					+"<td style='padding-top:5px;line-height:100%'>&nbsp;</td></tr></table></td></tr><tr>"
					+"<td style='line-height:190%;padding:3px 0px'><table width='100%' border='0' cellspacing='0' cellpadding='0'>"
					+"<tr><td height='25'>&nbsp;</td><td>"
					+"<input type='radio' name='pay' id='pay5' value='5' onClick=dospay(document.getElementById('pay5').value)>"
					+"</td><td><font color='#666666'>工商银行</font></td></tr><tr><td height='25'>&nbsp;</td><td>"
					+"<input type='radio' name='pay' id='pay6' value='6' onClick=dospay(document.getElementById('pay6').value)>"
					+"</td><td><font color='#666666'>中国银行</font></td></tr><tr><td width='100' height='25'>&nbsp;</td>"
					+"<td width='25'><input type='radio' name='pay' id='pay7' value='7' onClick=dospay(document.getElementById('pay7').value)>"
					+"</td><td><font color='#666666'>招商银行</font></td></tr></table></td></tr></table>";
				  }else if(carriage[0].firstChild.nodeValue=="4")
				  {
					 po2 = po2 + "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
					+"<td style='padding-bottom:5px'> <table width='100%' border='0' cellspacing='0' cellpadding='0'>"
					+"<tr>"
					+"<td class='fkfs'>&nbsp;</td></tr></table></td></tr><tr><td style='line-height:190%;padding:5px 0px'>"
					+"<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
					+"<td width='45' align='right'>&nbsp; </td><td width='30' align='center'>"
					+"<input type='radio' name='pay' id='pay8' value='8' onClick=dospay(document.getElementById('pay8').value)>"
					+"</td><td width='70' align='center' bgcolor='#ECE8E8'><font color='#666666'>现金支付</font></td>"
					+"<td style='padding-top:5px;line-height:100%'>&nbsp;</td></tr></table><td></tr><tr>"
					+"<td style='line-height:190%;padding:5px 0px'>"
					+"<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='45' align='right'>&nbsp; </td>"                    +"<td width='30' align='center'><input type='radio' name='pay' id='pay9' value='9' onClick=dospay(document.getElementById('pay9').value)></td>"
					+"<td width='70' align='center' bgcolor='#ECE8E8'><font color='#666666'>刷卡支付</font></td>"
					+"<td style='padding-top:5px;line-height:100%'>&nbsp;</td></tr></table></td></tr></table>";
				  }else if(carriage[0].firstChild.nodeValue=="3")
				  {
					 po2 = po2 + "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
					+"<td style='padding-bottom:5px'> <table width='100%' border='0' cellspacing='0' cellpadding='0'>"
					+"<tr>"
					+"<td class='fkfs'>&nbsp;</td></tr></table></td></tr><tr><td style='line-height:190%;padding:3px 0px'>"
					+"<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
					+"<td width='45' align='right'>&nbsp; </td><td width='30' align='center'>&nbsp;</td>"
					+"<td width='70' align='center' bgcolor='#ECE8E8'><font color='#666666'>网上支付</font></td>"
					+"<td style='padding-top:5px;line-height:100%'><font color='#666666'>"
					+"使用:&quot;网上支付&quot;功能，您需要先拥有一张开通了网上支付功能的银行卡。</font></td></tr></table></td></tr>"
					+"<tr><td style='line-height:190%;padding:3px 0px'>"
					+"<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td height='25'>&nbsp;</td>"
					+"<td><input type='radio' name='pay' id='pay1' value='1' onClick=dospay(document.getElementById('pay1').value)>"
					+"</td><td><font color='#666666'>支付宝</font></td></tr><tr><td height='25'>&nbsp;</td>"
					+"<td><input type='radio' name='pay' id='pay2' value='2' onClick=dospay(document.getElementById('pay2').value)>"
					+"</td><td><font color='#666666'>IPS</font></td></tr><tr><td width='100' height='25'>&nbsp;</td>"
					+"<td width='25'><input type='radio' name='pay' id='pay3' value='3' onClick=dospay(document.getElementById('pay3').value)>"
					+"</td><td><font color='#666666'>PayPal</font></td></tr></table></td></tr><tr>"
					+"<td style='line-height:190%;padding:5px 0px'><table width='100%' border='0' cellspacing='0' cellpadding='0'>"
					+"<tr><td width='45' align='right'>&nbsp; </td><td width='30' align='center'>&nbsp;</td>"
					+"<td width='70' align='center' bgcolor='#ECE8E8'><font color='#666666'>银行汇款</font></td>"
					+"<td style='padding-top:5px;line-height:100%'>&nbsp;</td></tr></table></td></tr><tr>"
					+"<td style='line-height:190%;padding:3px 0px'><table width='100%' border='0' cellspacing='0' cellpadding='0'>"
					+"<tr><td height='25'>&nbsp;</td><td>"
					+"<input type='radio' name='pay' id='pay5' value='5' onClick=dospay(document.getElementById('pay5').value)>"
					+"</td><td><font color='#666666'>工商银行</font></td></tr><tr><td height='25'>&nbsp;</td><td>"
					+"<input type='radio' name='pay' id='pay6' value='6' onClick=dospay(document.getElementById('pay6').value)>"
					+"</td><td><font color='#666666'>中国银行</font></td></tr><tr><td width='100' height='25'>&nbsp;</td>"
					+"<td width='25'><input type='radio' name='pay' id='pay7' value='7' onClick=dospay(document.getElementById('pay7').value)>"
					+"</td><td><font color='#666666'>招商银行</font></td></tr></table></td></tr></table>"; 
				  }
				  }else{
					  }
				  var po = "";
				  po = po + po1 + po2;
				  document.getElementById("payType").innerHTML = po;
                  var poCarrige = carriageMoney[0].firstChild.nodeValue + "元";
				  var poTotal = total[0].firstChild.nodeValue + "元";
				  if(cncIsCnc[0].firstChild.nodeValue==1){
				  	document.getElementById("ajaxCarriage").innerHTML = 0.00 + "元";
				  }else{
				  	document.getElementById("ajaxCarriage").innerHTML = poCarrige;
				  }
				  document.getElementById("ajaxTotal").innerHTML = poTotal;
				}
             } 
			 else 
			{ 
               // window.alert("页面错误！");
            }
        }
    }
function mouseover(ev,arg)
	{ 
		ev = ev?ev:(window.event?window.event:null);
	    var mousePos = mouseCoords(ev);
		document.getElementById('div1').style.top = mousePos.y-10;
		sendRequest('/ajaxLeft.html?pid='+arg);
	}
function to_showhint(){	 
     document.getElementById("div1").style.display = "block";
}
function to_unshowhint(){
     document.getElementById("div1").style.display = "none";
}
function mouseoverdiv(){
		document.getElementById("div1").style.display = "block";
}
function mouseCoords(ev){
	if(ev.pageX || ev.pageY){
		return {x:ev.pageX, y:ev.pageY};
	}
	return {
		x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,
		y:ev.clientY + document.body.scrollTop  - document.body.clientTop
	};
}
function sea()
{
  var text = document.searchForm.textfield.value;
  document.searchForm.which.value = document.searchForm.select1.value;
  document.searchForm.priceWhich.value = document.searchForm.select2.value;
  var which = document.searchForm.which.value;
  var priceWhich = document.searchForm.priceWhich.value;
  if(document.getElementById("textfield").style.display=="block"){
  if(text=="")
  {
    alert("查询内容不能为空！");
	return false;
  }
  }
  if(document.getElementById("select_else").style.display=="")
  {
  	if(priceWhich==0)
  	{
    	alert("请选择价格区间！");
		return false;
  	}
  }
   searchForm.action="/search.html?method=product&which="+which+"&priceWhich="+priceWhich+"&text="+text;
   document.searchForm.submit();
}
function sub()
{
  	document.searchForm.priceWhich.value = document.searchForm.select2.value;
  	var priceWhich = document.searchForm.priceWhich.value;
	searchForm.action="/search.html?method=product&which=price&priceWhich="+priceWhich;
    document.searchForm.submit();
	}
//-->
