function pop_details(Func, Param1, Param2, Param3, Param4) 
{	
	          
	pURL ='http://'+document.domain+'/hms/HCity/hotelDetails.aspx?Func='+Func+'&Param1='+Param1+'&Param2='+Param2+'&Param3='+Param3+'&Param4='+Param4;
	
    var width = 600;
	var height = 450;
	
	pInfo='toolbar=0,';
    pInfo+='top='+((screen.height - height)/2)+',';
    pInfo+='left='+((screen.width - width)/2)+',';
    pInfo+='directories=0,';
    pInfo+='status=0,';
    pInfo+='menubar=0,';
    pInfo+='scrollbars=1,';
    pInfo+='resizable=0,';
    pInfo+='width='+width+',';
    pInfo+='height='+height;
    window.open(pURL, '', pInfo);
}

function send_mail(MailFrom, MailTo) 
{
	var pURL='http://'+document.domain+'/hms/HCity/hotelMail.aspx?MailFrom='+MailFrom+'&MailTo='+MailTo+'&Width='+screen.width+'&Height='+screen.height;
    
    var width = 600;
	var height = 410;
	
	pInfo='toolbar=0,';
    pInfo+='top='+(((screen.height - height)/2)+30)+',';
    pInfo+='left='+(((screen.width - width)/2)+30)+',';
    pInfo+='directories=0,';
    pInfo+='status=0,';
    pInfo+='menubar=0,';
    pInfo+='scrollbars=0,';
    pInfo+='resizable=0,';
    pInfo+='width='+width+',';
    pInfo+='height='+height;
    window.open(pURL, 'SendMail', pInfo);
}

function popup_guest(GuestID)
{
	var pURL='http://'+document.domain+'/hms/reservation/guest.aspx?Guest='+GuestID;
            
    var width = 600;
	var height = 480;
	
	pInfo='toolbar=0,';
    pInfo+='top='+((screen.height - height)/2)+',';
    pInfo+='left='+((screen.width - width)/2)+',';
    pInfo+='directories=0,';
    pInfo+='status=0,';
    pInfo+='menubar=0,';
    pInfo+='scrollbars=0,';
    pInfo+='resizable=0,';
    pInfo+='width='+width+',';
    pInfo+='height='+height;
    window.open(pURL, '', pInfo);
}

function change_Password()
{
	var pURL='http://'+document.domain+'/hms/HCity/ChangePass.aspx';
	
	var width = 400;
	var height = 250;
	
	pInfo='toolbar=0,';
    pInfo+='top='+((screen.height - height)/2)+',';
    pInfo+='left='+((screen.width - width)/2)+',';
    pInfo+='directories=0,';
    pInfo+='status=0,';
    pInfo+='menubar=0,';
    pInfo+='scrollbars=0,';
    pInfo+='resizable=0,';
    pInfo+='width='+width+',';
    pInfo+='height='+height;
    window.open(pURL, '', pInfo);
}

function show_help(filename)
{
	var pURL = 'http://'+document.domain+'/hms/help/' + filename;
            
    var width = 700;
	var height = 400;	
	
	pInfo='toolbar=0,';
    pInfo+='top='+((screen.height - height)/2)+',';
    pInfo+='left='+((screen.width - width)/2)+',';
    pInfo+='directories=0,';
    pInfo+='status=0,';
    pInfo+='menubar=0,';
    pInfo+='scrollbars=1,';
    pInfo+='resizable=0,';
    pInfo+='width='+width+',';
    pInfo+='height='+height;
    window.open(pURL, 'Help', pInfo);    
}

function view_mail(MailID)
{
	var pURL = 'http://'+document.domain+'/hms/reservation/view_mail.aspx?MailID='+MailID;
            
    var width = 700;
	var height = 500;	
	
	pInfo='toolbar=0,';
    pInfo+='top='+((screen.height - height)/2)+',';
    pInfo+='left='+((screen.width - width)/2)+',';
    pInfo+='directories=0,';
    pInfo+='status=0,';
    pInfo+='menubar=0,';
    pInfo+='scrollbars=1,';
    pInfo+='resizable=0,';
    pInfo+='width='+width+',';
    pInfo+='height='+height;
    window.open(pURL, '', pInfo);    
}
