//*********************显示站点**********************CrownJoe*****************2007-8-21
function sAlert_CJ(txt,strType,s_name){
 var eSrc=(document.all)?window.event.srcElement:arguments[1];
 var shield = document.createElement("DIV");
	 shield.id = "shield";
	 shield.style.position = "absolute";
	 shield.style.left = "0px";
	 shield.style.top = "0px";
	 shield.style.width = "100%";
	 shield.style.height = document.body.scrollHeight+"px";
	 shield.style.background = "#333";
	 shield.style.textAlign = "center";
	 shield.style.zIndex = "10000"; 
	 shield.style.filter = "alpha(opacity=0)";
	 shield.style.opacity = 0;
 var alertFram = document.createElement("DIV");
	 alertFram.id="alertFram";
	 alertFram.style.position = "absolute";
	 alertFram.style.left = "50%";
	 alertFram.style.top = "50%";
	 alertFram.style.marginLeft = "-225px" ;
	 alertFram.style.marginTop = -280+document.documentElement.scrollTop+"px";
	 alertFram.style.width = "550px";
//	 //alertFram.style.height = "465px";
//	 alertFram.style.background = "#ccc";
//	 alertFram.style.textAlign = "center";
	 alertFram.style.lineHeight = "18px";
	 alertFram.style.zIndex = "10001"; 

//*****************************CrownJoe*******************2008-8-14*****************
 strHtml  ="<table width='550px'  border=0 cellpadding=0 cellspacing=0 class=border_green_tblr><tr>";
  strHtml  =strHtml+"<td width='11px' height=31  background=/images/zxjmhy_l_bg.gif><img src=/images/zxjmhy_l_l.gif width=11 height=31 /></td>";
  strHtml  =strHtml+"<td  style='width:125px;' align='center' valign='bottom' background='/images/zxjmhy_l_bg.gif' class='font_white_14bb'>商品分类</td>";
  strHtml  =strHtml+"<td width='4px' background=/images/zxjmhy_bg.gif><img src=/images/zxjmhy_l_r.gif width=4 height=31 /></td>";
  strHtml  =strHtml+"<td width='260px' align=right background=/images/zxjmhy_bg.gif></td>";
  strHtml  =strHtml+"<td width='97px' align=center valign=bottom background=/images/zxjmhy_bg.gif class=font_green_12><b><a href=# class=green onclick=\doOk()\>关闭</a></b></td>";
  strHtml  =strHtml+"</tr><tr><td height='171px' colspan=5 valign=top bgcolor=#FFFFFF>";
		//////////////////////////////////////////////////////
		//url="/pub/zhandian.asp";//调用页面
		//
		url="/public/catalog.aspx";
		//alert(url);
		if(window.XMLHttpRequest) { file://Mozilla 浏览器
		　　http_request_qm = new XMLHttpRequest();
		　　if (http_request_qm.overrideMimeType) {//设置MiME类别
		 　　http_request_qm.overrideMimeType('text/xml');
		　　}
		}
		else if (window.ActiveXObject) { // IE浏览器
		　　try {
		 　　http_request_qm = new ActiveXObject("Msxml2.XMLHTTP");
		　　} catch (e) {
			 　　try {
			  　　http_request_qm = new ActiveXObject("Microsoft.XMLHTTP");
			 　　} catch (e) {}
		　　}
		}
		if (!http_request_qm) { // 异常，创建对象实例失败
			  window.document.write("不能创建XMLHttpRequest对象实例"); 
		　　  return false;
		}
		else
		{
			//http_request_qm.onreadystatechange = processRequest;
			// 确定发送请求的方式和URL以及是否同步执行下段代码
			http_request_qm.open("GET",url, false);
			http_request_qm.send(null);
			var strHtml_CJ = http_request_qm.responseText;
		}
		
		//var http = new ActiveXObject("Microsoft.XMLHTTP");
		//http.open("GET",url,false);
		//http.send();
		//var strHtml_CJ = http.responseText;
		
		//////////////////////////////////////////////////////
		strHtml +=strHtml_CJ
		strHtml +="</td></tr></table>"
		alertFram.innerHTML=strHtml;
//*****************************CrownJoe*******************2008-8-14*****************
 document.body.appendChild(alertFram);
 document.body.appendChild(shield);
	 this.setOpacity = function(obj,opacity)
	 {
		  if(opacity>=1)opacity=opacity/100;
		  try{ obj.style.opacity=opacity; }catch(e){}
		  try{ 
			   if(obj.filters.length>0&&obj.filters("alpha")){
				obj.filters("alpha").opacity=opacity*100;
			   }else{
				obj.style.filter="alpha(opacity=\""+(opacity*100)+"\")";
			   }
		  }catch(e){}
	 }
 var c = 0;
	 this.doAlpha = function()
	 {
	  if (++c > 20){clearInterval(ad);return 0;}
	  setOpacity(shield,c);
	 }
 var ad = setInterval("doAlpha()",1);
 this.doOk = function(){
  //alertFram.style.display = "none"; Chinaz.com 
  //shield.style.display = "none";
  document.body.removeChild(alertFram);
  document.body.removeChild(shield);
  eSrc.focus();
  document.body.onselectstart = function(){return true;}
  document.body.oncontextmenu = function(){return true;}
 }
 document.getElementById("do_OK").focus();
 eSrc.blur();
 document.body.onselectstart = function(){return false;}
 document.body.oncontextmenu = function(){return false;}
}
//**************************************************CrownJoe*****************2007-8-21

