
function showDlg(url,height,width)
{
	this.window.showModalDialog(url,"","help:no;scroll:no;status:no;dialogWidth:"+width+"px;dialogHeight:"+height+"px");
}

function RdlcPrint(RDLCName) //打印函数
{
    var strFrameId="ReportFrame" + RDLCName;  //asp.net自动生成的iframe 的id为：ReportFrame+报表控件id
    var RdlcFrame=window.frames[strFrameId].frames["report"];  //报表内容框架的id为report
    RdlcFrame.focus();//此句必须
    RdlcFrame.print();//打印
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// function Showform1()
  //  {
  //  var url="ORS_Line/Line_Order.aspx?KeyId=-1&LineId="+document.all.HiddenField1.value;
   // showDlg(url,530,590)
   // }

//function Showform2()
  //  {
    //var url="ORS_Vehicles/Vehicles_Order.aspx?KeyId=-1&VehiclesId="+document.all.HiddenField2.value;
    //showDlg(url,500,580)
    //}
//function Showform3()
  //  {
   // var url="ORS_Hotel/Hotel_Order.aspx?KeyId=-1&HotelId="+document.all.HiddenField3.value;
    //showDlg(url,530,590)
   // }

//var xmlHttpReq = null;
//function SendData()
//{
//   var PetName=document.form1.txtPetName.value;
//   xmlHttpReq = new ActiveXObject("MSXML2.XMLHTTP.3.0");
//   xmlHttpReq.onreadystatechange = ReturnData;
//   xmlHttpReq.open("GET", "GetData.aspx?","", false);
//   xmlHttpReq.send();
//}

//function ReturnData()
//{
//   try{
//      var result = xmlHttpReq.responseText;
//      var oDoc = new ActiveXObject("MSXML2.DOMDocument");    
//      oDoc.loadXML(result);
//      var items = oDoc.selectNodes("//Table1");
//      var txtLoginState = oDoc.selectNodes("//Table1/LoginState");
//　　  var txtLoginMsg = oDoc.selectNodes("//Table1/LoginMsg");　     
//　　  for(var item = items.nextNode(); item; item = items.nextNode())
//　　  {
//　　      var txtState = txtLoginState.nextNode();
//　　      var txtMsg = txtLoginMsg.nextNode();              
//          if(txtState.text == "LineOrder")
//          {
//             if(txtMsg.text != "")
//             document.all.labLineOrder.innerText = txtMsg.text;  
//          }
//          if(txtState.text == "VehiclesOrder")
//          {
//             if(txtMsg.text != "")
//             document.all.labVehiclesOrder.innerText = txtMsg.text;  
//          }
//          if(txtState.text == "HotelOder")
//          {
//             if(txtMsg.text != "")
//             document.all.labHotelOrder.innerText = txtMsg.text;  
//          } 
//      }
//      catch(e){}    
//}