function NewWindow(url) 
{ 
	popupWindow = window.open(url,'popUpWindow','height=400,width=700,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes');
}
function newWindowtariff(url) 
{ 
	popupWindow = window.open(url,'popUpWindow','height=400,width=630,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes');
}
function newWindowloc(url) 
{ 
	popupWindow = window.open(url,'popUpWindow','height=240,width=330,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes');
}
function newWindowweather(a,b)
{
	popupWindow = window.open('http://203.92.40.236/ITCWeather/WeatherPopup.asp?city='+a+'&template='+b,'popUpWindow','height=633,width=446,left=50,top=30,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no, status=yes');
}
function windowWeatherNew(fname)
{
	popupWindow = window.open('http://203.92.40.236/itc/itcweather/'+fname,'popUpWindow','height=440,width=650,left=50,top=30,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no, status=yes');
}
function changelink(id,act)
	{  
		 var str='<P align=left><IFRAME name=FRAMENAME src=../Hotels/scripts/'
		     if(act==1)
				{ 
					alert("Rose");
					str +='H_overview.aspx'
				}
			 if(act==2)
				{ 
					str +='H_LuxAccommodation.aspx'
				}
			 if(act==3)
				{ 
					str +='H_LuxCuisine.aspx'
				}
			 if(act==4)
				{ 
					str +='H_LuxEvents.aspx'
				}
			 if(act==6)
				{ 
					str +='H_Localarea.aspx'
				}		     
			  str +='?hotel=';		
		      str += id +'&active='+ act;	
		      str +=' frameBorder=0 width=500 scrolling=yes height=350 allowautotransparency=true></IFRAME></P>';
		 
	document.write(str);
    }

function changecolor ()
{
	urlquery=location.href.split("=");
	var pagename = urlquery[urlquery.length-1];	
	if(pagename=="0")
	{
		document.getElementById("link0").className = 'currentpage';
	}
	if(pagename=="1")
	{
		document.getElementById("link1").className = 'linktxt2a';
	}
	if(pagename=="2")
	{
		document.getElementById("link2").className = 'linktxt2a';
	}
	if(pagename=="3")
	{
		document.getElementById("link3").className = 'linktxt2a';
	}
	if(pagename=="4")
	{
		document.getElementById("link4").className = 'linktxt2a';
	}
	if(pagename=="5")
	{
		document.getElementById("link5").className = 'linktxt2a';
	}
	if(pagename=="6")
	{
		document.getElementById("link6").className = 'linktxt';
	}
	
}
