function showlaw(currid,ok)
{
    var xmlhttp;
    if(window.XMLHttpRequest){//IE7, Mozilla ,Firefox 等浏览器内置该对象
       xmlhttp = new XMLHttpRequest();
    }
	else if(window.ActiveXObject){//IE6、IE5
       try { 
	      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	   } catch (e) { }
       if (xmlhttp == null){
	     try { 
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		 } catch (e) { }
	   }
    }
    xmlhttp.onreadystatechange = function(){
	  if(xmlhttp.readyState == 4){
        if(xmlhttp.status == 200){
           var data = xmlhttp.responseText;
		   showdata(currid,data,ok);
           xmlhttp = null;
        }
        else alert('下载数据失败');
      };
    };
	xmlhttp.open("POST","ajcxzysx.asp",true);
	xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=GB2312");
	xmlhttp.send("id="+currid);
}
function showdata(currid,str,ok)
{
  var i,str1,str2;
  i=str.indexOf('~');
  if (i>0){
    str1=str.substring(0,i);
    str2=str.substring(i+1,1000);
	str=str2;
	i=str.indexOf('~');
	if(i>0){
      str2=str.substring(0,i);
      str3=str.substring(i+1,1000);
	}
	else str3=str;
  }
  else{
    str1=str;
	str2=str;
	str3=str;
  };
  window.top.mytitle=str3;
  window.top.mycontent=str1;
  window.top.myprompt=str2;
  window.top.mybuttontext=ok;
  window.top.currid="0";
  window.top.lzw();
}