function ShowAllRoom(HotelId,Rq1,Rq2)
{
    OpenWin("RoomStatus","../Hotel/ViewAllRoom.aspx?Id="+HotelId+"&Rq1="+Rq1+"&Rq2="+Rq2,750,300);
}
		
function ConfirmMsg(Msg){
    return(confirm(Msg));   
}

function btnClick()
{  
    if (event.keyCode==13)
    {   
	event.keyCode=9;
        event.returnValue = false;
	document.all.BtnSearch.click(); 
    }
}

function ShowHide(Id,HideText,ShowText){
     
     RowId="R"+Id; 
     TxtId="T"+Id;
     if (document.all[RowId].style.display=="none")
     {
        document.all[RowId].style.display="";
        document.all[TxtId].innerText=HideText;
     }
     else
     {
          document.all[RowId].style.display="none";
          document.all[TxtId].innerText=ShowText;
     }
  }     

var Win
function OpenWin(Name,strUrl,width,height)
{
var str = "height=" + height + ",innerHeight=" + height;
str += ",width=" + width + ",innerWidth=" + width;
if (window.screen) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;

var xc = (aw - width) / 2;
var yc = (ah - height) / 2;

str += ",left=" + xc + ",screenX=" + xc;
str += ",top=" + yc + ",screenY=" + yc;
}
  
   if (!Win || Win.closed)
   {
     Win=open(strUrl,Name,"resizable=0,scrollbars=1," + str);
   }else{
     Win.location.href=strUrl;
     Win.focus();
   }  
}