﻿//----------------------

function CheckSelected(SelectedId, ButtonId, MaxValue)
{
    var  SelectedControl;
	var  ButtonControl;
	SelectedControl = document.getElementById(SelectedId) ;
		        
    ButtonControl = document.getElementById(ButtonId) ;
	if (SelectedControl.value < MaxValue) {
          ButtonControl.disabled = false;
	}
	else {
	    //  alert(document.getElementById("txtGenericMessage").value);
          ShowDetails("MessageRoms.aspx");
          ButtonControl.disabled = true;
    }	            
}

//----------------------
function ShowTips(Page)
{

window.open (Page,"PopUpWin","location=1,status=1,scrollbars=1,width=600,height=400");

}

function ShowRoomInfo(Page)
{

window.open (Page,"PopUpWin","location=1,status=1,scrollbars=1,width=600,height=400");

}


function Disablebutton(ButtonId)
{
var  ButtonControl;
ButtonControl = document.getElementById(ButtonId);
ButtonControl.disabled = true;
}

function ShowDetails(Page)
{
    window.open (Page,"PopUpWin","location=1,status=1,scrollbars=1,width=900,height=560");
} 
        
//----------------------

function GotoPage(Page)
{
    window.location.href = Page; //"Confirmation.aspx";
}        

function disableEnterKey(e)
{
     var key;      
     if(window.event)
          key = window.event.keyCode; //IE
     else
          key = e.which; //firefox      

     return (key != 13);
}




