var re = document.referrer;
var geturl=window.document.location.href;
var fen1=geturl.split("://");
//var fen2=fen1[1].split("=");
var getkey=fen1[1];
var HttpKey=false;
var xmlHttpheader = false;
var xmlHttp = false;
var xmlHttp2 = false;
var xmlHttp3 = false;
var xmlHttp4 = false;
var xmlHttpView_Cookie = false;
var xmlHttpabout_pro = false;
var xmlHttpadv_show = false;
var show_login=false;
var login_out_aspx_to_asp=false;
var guestbook=false;;
var pic=false;;
var xmlHttpyanzheng = false;
var xmlHttpsend=false;
var xmlHttpread=false;

var xmlHttpshou=false;
var xmlHttpshang=false;
var xmlHttpxia=false;
var xmlHttpmo=false;

var urlxx2 = "../iframe/guestbook_button_check.aspx";
var xmlHttpxx2=false;

var xmlHttpkuang=false;
var xmlHttpkuang_login=false;
var xmlHttpkuang_loginasp=false;
var xmlHttpkuang_loginasp2=false;
try {
  xmlHttpheader = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttp2 = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttp3 = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttp4 = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttpView_Cookie = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttpabout_pro = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttpadv_show = new ActiveXObject("Msxml2.XMLHTTP");
  show_login=new ActiveXObject("Msxml2.XMLHTTP");
  login_out_aspx_to_asp = new ActiveXObject("Msxml2.XMLHTTP");
  guestbook = new ActiveXObject("Msxml2.XMLHTTP");
  pic = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttpyanzheng = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttpsend = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttpread = new ActiveXObject("Msxml2.XMLHTTP");
  
  xmlHttpshou = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttpshang = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttpxia = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttpmo = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttpxx2 = new ActiveXObject("Msxml2.XMLHTTP");
  
  xmlHttpkuang = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttpkuang_login = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttpkuang_loginasp = new ActiveXObject("Msxml2.XMLHTTP");
  xmlHttpkuang_loginasp2 = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlHttpheader = new ActiveXObject("Microsoft.XMLHTTP");
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttp2 = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttp3 = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttp4 = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpView_Cookie = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpabout_pro = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpadv_show = new ActiveXObject("Microsoft.XMLHTTP");
	show_login=new ActiveXObject("Microsoft.XMLHTTP");
	login_out_aspx_to_asp = new ActiveXObject("Microsoft.XMLHTTP");
	guestbook = new ActiveXObject("Microsoft.XMLHTTP");
	pic = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpyanzheng = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpsend = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpread = new ActiveXObject("Microsoft.XMLHTTP");
	
	xmlHttpshou = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpshang = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpxia = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpmo = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpxx2 = new ActiveXObject("Microsoft.XMLHTTP");
	
	xmlHttpkuang = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpkuang_login = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpkuang_loginasp = new ActiveXObject("Microsoft.XMLHTTP");
	xmlHttpkuang_loginasp2 = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
    xmlHttpheader = false;
    xmlHttp = false;
	xmlHttp2 = false;
	xmlHttp3 = false;
	xmlHttp4 = false;
	xmlHttpView_Cookie = false;
	xmlHttpabout_pro = false;
	xmlHttpadv_show = false;
	show_login=false;
	login_out_aspx_to_asp = false;
	guestbook = false;
	pic = false;
	xmlHttpyanzheng = false;
	xmlHttpsend = false;
	xmlHttpread = false;
	
	xmlHttpshow = false;
	xmlHttpshang = false;
	xmlHttpxia = false;
	xmlHttpmo = false;
	xmlHttpxx2 = false;
	
	xmlHttpkuang = false;
	xmlHttpkuang_login = false;
	xmlHttpkuang_loginasp = false;
	xmlHttpkuang_loginasp2 = false;
  }
}

if (!xmlHttpheader && typeof XMLHttpRequest != 'undefined') {
  xmlHttpheader = new XMLHttpRequest();
}

if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}

if (!xmlHttp2 && typeof XMLHttpRequest != 'undefined') {
  xmlHttp2 = new XMLHttpRequest();
}

if (!xmlHttp3 && typeof XMLHttpRequest != 'undefined') {
  xmlHttp3 = new XMLHttpRequest();
}

if (!xmlHttp4 && typeof XMLHttpRequest != 'undefined') {
  xmlHttp4 = new XMLHttpRequest();
}

if (!xmlHttpView_Cookie && typeof XMLHttpRequest != 'undefined') {
  xmlHttpView_Cookie = new XMLHttpRequest();
}
if (!xmlHttpabout_pro && typeof XMLHttpRequest != 'undefined') {
  xmlHttpabout_pro = new XMLHttpRequest();
}
if (!xmlHttpadv_show && typeof XMLHttpRequest != 'undefined') {
  xmlHttpadv_show = new XMLHttpRequest();
}

if(!show_login && typeof XMLHttpRequest !='undefined')
{
  show_login=new XMLHttpRequest();	
}

if (!login_out_aspx_to_asp && typeof XMLHttpRequest != 'undefined') {
  login_out_aspx_to_asp = new XMLHttpRequest();
}

if (!guestbook && typeof XMLHttpRequest != 'undefined') {
  guestbook = new XMLHttpRequest();
}

if (!pic && typeof XMLHttpRequest != 'undefined') {
  pic = new XMLHttpRequest();
}

if (!xmlHttpyanzheng && typeof XMLHttpRequest != 'undefined') {
  xmlHttpyanzheng = new XMLHttpRequest();
}

if (!xmlHttpsend && typeof XMLHttpRequest != 'undefined') {
  xmlHttpsend = new XMLHttpRequest();
}

if (!xmlHttpread && typeof XMLHttpRequest != 'undefined') {
  xmlHttpread = new XMLHttpRequest();
}

if (!xmlHttpshou && typeof XMLHttpRequest != 'undefined') {
  xmlHttpshou = new XMLHttpRequest();
}

if (!xmlHttpshang && typeof XMLHttpRequest != 'undefined') {
  xmlHttpshang = new XMLHttpRequest();
}

if (!xmlHttpxia && typeof XMLHttpRequest != 'undefined') {
  xmlHttpxia = new XMLHttpRequest();
}

if (!xmlHttpmo && typeof XMLHttpRequest != 'undefined') {
  xmlHttpmo = new XMLHttpRequest();
}

if (!xmlHttpxx2 && typeof XMLHttpRequest != 'undefined') {
  xmlHttpxx2 = new XMLHttpRequest();
}

if (!xmlHttpkuang && typeof XMLHttpRequest != 'undefined') {
  xmlHttpkuang = new XMLHttpRequest();
}

if (!xmlHttpkuang_login && typeof XMLHttpRequest != 'undefined') {
  xmlHttpkuang_login = new XMLHttpRequest();
}

if (!xmlHttpkuang_loginasp && typeof XMLHttpRequest != 'undefined') {
  xmlHttpkuang_loginasp = new XMLHttpRequest();
}

if (!xmlHttpkuang_loginasp2 && typeof XMLHttpRequest != 'undefined') {
  xmlHttpkuang_loginasp2 = new XMLHttpRequest();
}

function callServer() {
  var urlheader = "../iframe/head3.htm";
  xmlHttpheader.open("GET", urlheader, true);
  xmlHttpheader.onreadystatechange = updatePageheader;
  xmlHttpheader.send(null);

  var u_name = document.getElementById("u_name").value;
  if ((u_name == null) || (u_name == "")) return;
  var url = "../Html/ajax/cu.aspx?ID=" + escape(u_name) + "&key=" + escape(re);
  xmlHttp.open("GET", url, true);
  //xmlHttp.onreadystatechange = updatePage;
  xmlHttp.send(null);
  
  var url2 = "../iframe/Have_Been_View.aspx";
  xmlHttp2.open("GET", url2, true);
  xmlHttp2.onreadystatechange = updatePage2;
  //xmlHttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  xmlHttp2.send(null);
  
  var url3 = "../iframe/member.aspx";
  xmlHttp3.open("GET", url3, true);
  xmlHttp3.onreadystatechange = updatePage3;
  xmlHttp3.send(null);
  
  var url4 = "../iframe/Products_Search2.htm";
  xmlHttp4.open("GET", url4, true);
  xmlHttp4.onreadystatechange = updatePage4;
  xmlHttp4.send(null);
  
  var urlView_Cookie = "../iframe/Cookiestest.aspx?Key=" + escape(u_name);
  xmlHttpView_Cookie.open("GET", urlView_Cookie, true);
  //xmlHttpView_Cookie.onreadystatechange = updatePage;
  xmlHttpView_Cookie.send(null);
  
  var p_name = document.getElementById("p_name").value;
  if ((p_name == null) || (p_name == "")) return;
  var urlabout_pro = "../iframe/About_Product.aspx?Key=" + escape(p_name);
  xmlHttpabout_pro.open("GET", urlabout_pro, true);
  xmlHttpabout_pro.onreadystatechange = updatePageabout_pro;
  xmlHttpabout_pro.send(null);
  
  /*var url_show_login="../iframe/show_login2.aspx";
  show_login.open("GET",url_show_login,true);
  show_login.onreadystatechange=updatePageshowlogin;
  show_login.send(null);*/
  
  var url_adv_show="../iframe/adv_show_1.aspx?Key=" + escape(p_name);
  xmlHttpadv_show.open("GET",url_adv_show,true);
  xmlHttpadv_show.onreadystatechange=updatePageadv_show;
  xmlHttpadv_show.send(null);
  
  var url_guestbook="../iframe/show_guestbook.aspx?Key=" + escape(u_name);
  guestbook.open("GET",url_guestbook,true);
  guestbook.onreadystatechange=updatePageadv_guestbook;
  guestbook.send(null);
  
  var url_pic="../iframe/show_pic.aspx?Key=" + escape(u_name);
  pic.open("GET",url_pic,true);
  pic.onreadystatechange=updatePageadv_pic;
  pic.send(null);
  
  /*var urlxmlyanzheng = "../iframe/VNum.aspx";
  xmlHttpyanzheng.open("GET", urlxmlyanzheng, true);
  xmlHttpyanzheng.onreadystatechange = updatePageyanzheng;
  xmlHttpyanzheng.send(null); */
  
  var urlread = "../iframe/read_guestbook.aspx?Key=" + escape(u_name)+"&Pagekey=0";
  xmlHttpread.open("GET", urlread, true);
  xmlHttpread.onreadystatechange = updatePageread;
  xmlHttpread.send(null); 
  
  xmlHttpxx2.open("GET", urlxx2, true);
  xmlHttpxx2.onreadystatechange = updatePagexx2;
  xmlHttpxx2.send(null);
}

function updatePageheader() {
  if (xmlHttpheader.readyState < 4) {
	header.innerHTML="loading...";
	//alert(xmlHttp.readyState);
  }
  if (xmlHttpheader.readyState == 4) {
    var response = xmlHttpheader.responseText;
	header.innerHTML=response;
  }
}

/*function updatePage() {
  if (xmlHttp.readyState < 4) {
	test1.innerHTML="loading...";
	//alert(xmlHttp.readyState);
  }
  if (xmlHttp.readyState == 4) {
    var response = xmlHttp.responseText;
	test1.innerHTML=response;
  }
}*/

function updatePage2() {
  if (xmlHttp2.readyState < 4) {
	test2.innerHTML="<br><strong>Loading</strong><br><img src=../images/loading.gif>";
	//alert(xmlHttp.readyState);
  }
  if (xmlHttp2.readyState == 4) {
    var response = xmlHttp2.responseText;
	test2.innerHTML=response;
  }
}

function updatePage3() {
  if (xmlHttp3.readyState < 4) {
	test3.innerHTML="loading...";
	//alert(xmlHttp.readyState);
  }
  if (xmlHttp3.readyState == 4) {
    var response = xmlHttp3.responseText;
	test3.innerHTML=response;
  }
}

function updatePage4() {
  if (xmlHttp4.readyState < 4) {
	test4.innerHTML="loading...";
	//alert(xmlHttp.readyState);
  }
  if (xmlHttp4.readyState == 4) {
    var response = xmlHttp4.responseText;
	test4.innerHTML=response;
  }
}

function updatePageabout_pro() {
  if (xmlHttpabout_pro.readyState < 4) {
	about_pro.innerHTML="<br><strong>Loading</strong><br><img src=../images/loading.gif>";
	//alert(xmlHttp.readyState);
  }
  if (xmlHttpabout_pro.readyState == 4) {
    var response = xmlHttpabout_pro.responseText;
	about_pro.innerHTML=response;
  }
}

function updatePageshowlogin() {
if (show_login.readyState < 4) {
show_login_key.innerHTML="";
}
if (show_login.readyState == 4) {
var response = show_login.responseText;
show_login_key.innerHTML=response;
}
}

function login_out()
{
  var urllogin_out_aspx_to_asp = "../our_user/login.out.asp";
  login_out_aspx_to_asp.open('post', urllogin_out_aspx_to_asp, true);
  login_out_aspx_to_asp.send(null); 
  document.location='../our_user/login.out.aspx';
}


function updatePageadv_show() {
if (xmlHttpadv_show.readyState < 4) {
adv_show.innerHTML="";
}
if (xmlHttpadv_show.readyState == 4) {
var response = xmlHttpadv_show.responseText;
adv_show.innerHTML=response;
}
}

function updatePageadv_guestbook() {
if (guestbook.readyState < 4) {
show_guestbook.innerHTML="<br><strong>Loading</strong><br><img src=../images/loading.gif>";
}
if (guestbook.readyState == 4) {
var response = guestbook.responseText;
show_guestbook.innerHTML=response;
Review_VNum();
}
}

function updatePageadv_pic() {
if (pic.readyState < 4) {
show_pic.innerHTML="<center><br><strong>Loading</strong><br><img src=../images/loading.gif></center>";
}
if (pic.readyState == 4) {
var response = pic.responseText;
show_pic.innerHTML=response;
}
}

function updatePageyanzheng() {
  if (xmlHttpyanzheng.readyState < 4) {
	vnum_key.innerHTML="loading";
	//alert(xmlHttp.readyState);
  }
  if (xmlHttpyanzheng.readyState == 4) {
    var response = xmlHttpyanzheng.responseText;
	vnum_key.innerHTML=response;
  }
}

function Review_VNum() {
  var urlxmlyanzheng = "../iframe/VNum.aspx";
  xmlHttpyanzheng.open("GET", urlxmlyanzheng, true);
  xmlHttpyanzheng.onreadystatechange = updatePageyanzheng;
  xmlHttpyanzheng.send(null); 
}

function updatePageread() {
if (xmlHttpread.readyState < 4) {
Read_guestbook.innerHTML="<center><br><strong>Loading</strong><br><img src=../images/loading.gif></center>";
}
if (xmlHttpread.readyState == 4) {
var response = xmlHttpread.responseText;
Read_guestbook.innerHTML=response;
}
}

function Check_Input()
{
  if(document.form1.Product_Name.value=="") {
	document.form1.Product_Name.focus();
    alert("Please Input a search term!");
	return false;
  }
}

function liuyan_yanzheng()
{
  if(xingming.value=="")
  {
	  alert('Please input your name.');
	  xingming.focus();
	  return false;
  }
  
  if(youxiang.value=="")
  {
	  alert('Please input your Email.');
	  youxiang.focus();
	  return false;
  }
  
  if(yanzheng.value=="")
  {
	  alert('Please input the validatecode.');
	  Review_VNum();
	  yanzheng.focus();
	  return false;
  }
  
  if(neirong.value=="")
  {
	  alert('Please input the content.');
	  neirong.focus();
	  return false;
  }
  
  if(neirong.value.length>500)
  {
	  alert('Less than 500 letters in Content!\nCurrent length:'+neirong.value.length+' letters.');
	  neirong.focus();
	  return false;
  }
  send_to_guestbook();
}

function send_to_guestbook()
{
  eval("Submit.disabled=true;");
  var u_xm = document.getElementById("xingming").value;
  var u_yx = document.getElementById("youxiang").value;
  var u_yz = document.getElementById("yanzheng").value;
  var u_nr = document.getElementById("neirong").value;
  var u_sy = document.getElementById("u_name").value;
  if ((u_xm == null) || (u_xm == "")) return;
  if ((u_yx == null) || (u_yx == "")) return;
  if ((u_yz == null) || (u_yz == "")) return;
  if ((u_nr == null) || (u_nr == "")) return;
  if ((u_sy == null) || (u_sy == "")) return;
  
  var urlsend = "../iframe/guestbook_send.aspx?XM="+escape(u_xm)+"&YX="+escape(u_yx)+"&YZ="+escape(u_yz)+"&NR="+escape(u_nr)+"&SY="+escape(u_sy);
  xmlHttpsend.open('POST', urlsend, true);
  xmlHttpsend.onreadystatechange = updatePagesend;
  xmlHttpsend.send(null);	
}

function updatePagesend() {
  if (xmlHttpsend.readyState < 4) {
	send.innerHTML="sending";
	//alert(xmlHttp.readyState);
  }
  if (xmlHttpsend.readyState == 4) {
    var response = xmlHttpsend.responseText;
	send.innerHTML=response;
	eval("Submit.disabled=false;");
	if(response.length==6)
	{
	  Review_VNum();
	}
	
	if(response.length==119)
	{
	  xingming.value="";
	  youxiang.value="";
	  yanzheng.value="";
	  neirong.value="";
	  Review_VNum();
	}
	
	if(response.length==106)
	{
	  youxiang.focus();
	}
	
	if(response.length==108)
	{
	  yanzheng.focus();
	  Review_VNum();
	}
	
	if(response.length==120)
	{
	  neirong.focus();
	}
	
	  /*xingming.value="";
	  youxiang.value="";
	  yanzheng.value="";
	  neirong.value=response.length;*/
  }
}

function shou()
{
  var u_name = document.getElementById("u_name").value;
  if ((u_name == null) || (u_name == "")) return;
  var urlshou = "../iframe/read_guestbook.aspx?Key=" + escape(u_name)+"&Pagekey=shou";
  xmlHttpshou.open('post', urlshou, true);
  xmlHttpshou.onreadystatechange = updatePageshou;
  xmlHttpshou.send(null);	
}

function updatePageshou() {
if (xmlHttpshou.readyState < 4) {
Read_guestbook.innerHTML="<center><br><strong>Loading</strong><br><img src=../images/loading.gif></center>";
}
if (xmlHttpshou.readyState == 4) {
var response = xmlHttpshou.responseText;
Read_guestbook.innerHTML=response;
}
xmlHttpxx2.open("GET", urlxx2, true);
xmlHttpxx2.onreadystatechange = updatePagexx2;
xmlHttpxx2.send(null);
}

function shang()
{
  var u_name = document.getElementById("u_name").value;
  if ((u_name == null) || (u_name == "")) return;
  var urlshang = "../iframe/read_guestbook.aspx?Key=" + escape(u_name)+"&Pagekey=shang";
  xmlHttpshang.open('post', urlshang, true);
  xmlHttpshang.onreadystatechange = updatePageshang;
  xmlHttpshang.send(null);	
}

function updatePageshang() {
if (xmlHttpshang.readyState < 4) {
Read_guestbook.innerHTML="<center><br><strong>Loading</strong><br><img src=../images/loading.gif></center>";
}
if (xmlHttpshang.readyState == 4) {
var response = xmlHttpshang.responseText;
Read_guestbook.innerHTML=response;
}
xmlHttpxx2.open("GET", urlxx2, true);
xmlHttpxx2.onreadystatechange = updatePagexx2;
xmlHttpxx2.send(null);
}

function xia()
{
  var u_name = document.getElementById("u_name").value;
  if ((u_name == null) || (u_name == "")) return;
  var urlxia = "../iframe/read_guestbook.aspx?Key=" + escape(u_name)+"&Pagekey=xia";
  xmlHttpxia.open('post', urlxia, true);
  xmlHttpxia.onreadystatechange = updatePagexia;
  xmlHttpxia.send(null);	
}

function updatePagexia() {
if (xmlHttpxia.readyState < 4) {
Read_guestbook.innerHTML="<center><br><strong>Loading</strong><br><img src=../images/loading.gif></center>";
}
if (xmlHttpxia.readyState == 4) {
var response = xmlHttpxia.responseText;
Read_guestbook.innerHTML=response;
}
xmlHttpxx2.open("GET", urlxx2, true);
xmlHttpxx2.onreadystatechange = updatePagexx2;
xmlHttpxx2.send(null);
}

function mo()
{
  var u_name = document.getElementById("u_name").value;
  if ((u_name == null) || (u_name == "")) return;
  var urlmo = "../iframe/read_guestbook.aspx?Key=" + escape(u_name)+"&Pagekey=mo";
  xmlHttpmo.open('post', urlmo, true);
  xmlHttpmo.onreadystatechange = updatePagemo;
  xmlHttpmo.send(null);	
}

function updatePagemo() {
if (xmlHttpmo.readyState < 4) {
Read_guestbook.innerHTML="<center><br><strong>Loading</strong><br><img src=../images/loading.gif></center>";
}
if (xmlHttpmo.readyState == 4) {
var response = xmlHttpmo.responseText;
Read_guestbook.innerHTML=response;
}
xmlHttpxx2.open("GET", urlxx2, true);
xmlHttpxx2.onreadystatechange = updatePagexx2;
xmlHttpxx2.send(null);
}

function updatePagexx2() {
if (xmlHttpxx2.readyState < 4) {
	
}
if (xmlHttpxx2.readyState == 4) {
var response = xmlHttpxx2.responseText;
  if(response=="o")
  {
	eval("sy.disabled=true;");
    eval("xs.disabled=true;");
	eval("xx.disabled=true;");
    eval("my.disabled=true;");
  }
  
  if(response=="l")
  {
	eval("sy.disabled=true;");
    eval("xs.disabled=true;");
	eval("xx.disabled=false;");
    eval("my.disabled=false;");
  }

  if(response=="e")
  {
    eval("sy.disabled=false;");
    eval("xs.disabled=false;");
	eval("xx.disabled=true;");
    eval("my.disabled=true;");
  }
  
  if(response!="o" && response!="l" && response!="e")
  {
    eval("sy.disabled=false;");
    eval("xs.disabled=false;");
	eval("xx.disabled=false;");
    eval("my.disabled=false;");
  }
  //window.location="#";
  //show_xxx.innerHTML=response;
}
}

function show_kuang()
{
  eval("kuang.style.display=\"block\"");
  
  var u_id = document.getElementById("u_name").value;
  var p_title = document.getElementById("p_title").value;
  var p_retail = document.getElementById("p_retail").value;
  var p_specialprice = document.getElementById("p_specialprice").value;
  var p_saleprice = document.getElementById("p_saleprice").value;
  var p_small_image = document.getElementById("p_small_image").value;
  var p_link = document.getElementById("p_link").value;
  var urlkuang = "../iframe/Watch_Item.aspx?Key=" + escape(u_id) + "&Key_name=" + escape(p_title) + "&Key_retail=" + escape(p_retail) + "&Key_specialprice=" + escape(p_specialprice) + "&Key_saleprice=" + escape(p_saleprice) + "&Key_small_image=" + escape(p_small_image) + "&Key_link=" + escape(p_link);
  xmlHttpkuang.open('post', urlkuang, true);
  xmlHttpkuang.onreadystatechange = updatePagekuang;
  xmlHttpkuang.send(null);
}

function updatePagekuang() {
if (xmlHttpkuang.readyState < 4) {
bian_kuang.innerHTML="<img src=../images/loading.gif></center>";
}
if (xmlHttpkuang.readyState == 4) {
var response = xmlHttpkuang.responseText;
bian_kuang.innerHTML=response;
}
}

function cang_kuang()
{
  bian_kuang.innerHTML="";
  eval("kuang.style.display=\"none\"");
}

function Check_Form()
{
  if(ZH.value=="") {
    alert("Please Input Email ID!");
	ZH.focus();
	return false;
  }
  
  if(MM.value=="") {
    alert("Please Input User Password!");
	MM.focus();
	return false;
  }
  kuang_login()
}

function kuang_login()
{
  var u_zh = document.getElementById("ZH").value;
  var u_mm = document.getElementById("MM").value;
  var u_id = document.getElementById("u_name").value;
  var p_title = document.getElementById("p_title").value;
  var p_retail = document.getElementById("p_retail").value;
  var p_specialprice = document.getElementById("p_specialprice").value;
  var p_saleprice = document.getElementById("p_saleprice").value;
  var p_small_image = document.getElementById("p_small_image").value;
  var p_link = document.getElementById("p_link").value;
  if ((u_zh == null) || (u_zh == "") || (u_mm == null) || (u_mm == "")) return;
  var urlkuang_login = "../our_user/Kuang_Check_Login.aspx?user_ID=" + escape(u_zh) + "&user_PW=" + escape(u_mm) + "&Key=" + escape(u_id) + "&Key_name=" + escape(p_title) + "&Key_retail=" + escape(p_retail) + "&Key_specialprice=" + escape(p_specialprice) + "&Key_saleprice=" + escape(p_saleprice) + "&Key_small_image=" + escape(p_small_image) + "&Key_link=" + escape(p_link);
  xmlHttpkuang_login.open('post', urlkuang_login, true);
  xmlHttpkuang_login.onreadystatechange = updatePagekuang_login;
  xmlHttpkuang_login.send(null);	
  
  var urlkuang_loginasp = "../our_user/Return_asp_Login_ID.aspx?user_ID=" + escape(u_zh) + "&user_PW=" + escape(u_mm);
  xmlHttpkuang_loginasp.open('post', urlkuang_loginasp, true);
  xmlHttpkuang_loginasp.onreadystatechange = updatePagekuang_loginasp;
  xmlHttpkuang_loginasp.send(null);	
  
}

function updatePagekuang_login() {
if (xmlHttpkuang_login.readyState < 4) {
bian_kuang.innerHTML="<img src=../images/loading.gif></center>";
}
if (xmlHttpkuang_login.readyState == 4) {
var response = xmlHttpkuang_login.responseText;
bian_kuang.innerHTML=response;
}
}

function updatePagekuang_loginasp() {
if (xmlHttpkuang_loginasp.readyState < 4) {
}
if (xmlHttpkuang_loginasp.readyState == 4) {
var response = xmlHttpkuang_loginasp.responseText;
  var urlkuang_loginasp2 = "../our_user/aspx_to asp3.asp?total_key=" + response;
  xmlHttpkuang_loginasp2.open('post', urlkuang_loginasp2, true);
  xmlHttpkuang_loginasp2.send(null);	
}
}

function show_big_pic()
{
  var pass_key = document.getElementById("u_name").value;  
  window.open('../iframe/show_big_pic.aspx?Key='+escape(pass_key));	
}

function Email_to_a_friend()
{
  var pass_url = getkey;  
  window.open('../our_user/Send_Email.html?'+escape(pass_url));	
}

function show_menu(key)
{
  for(i=1;i<=10;i++)
  {
	if(i==key)
	{
	  var get_menu=document.getElementById("menu"+i);
      get_menu.style.display="block";
	}
	else
	{
	  var get_menu=document.getElementById("menu"+i);
      get_menu.style.display="none";
	}
  }
  if(key==1 || key==3 || key==6 || key==7 || key==10)
  {
	get_Size.style.display="none";
	get_Type.style.display="none";
	get_Color.style.display="none";
  }
  else
  {
	get_Size.style.display="block";
	get_Type.style.display="block";
	get_Color.style.display="block";
  }
}

function cang_menu(key)
{
  for(i=1;i<=key;i++)
  {
	get_Size.style.display="block";
	get_Type.style.display="block";
	get_Color.style.display="block";
    var get_menu=document.getElementById("menu"+i);
    get_menu.style.display="none";
  }
}