function ShowStartPage(curPageID)
{
	if (inEditor)
		return;
	if (top == self && document.documentElement.MediaIndicator == undefined)
		window.location.href = "http://www.sellraintal.at/winter/ViewPage.asp?Site=SELLRAIN_WINTER&PageID=1&Params=PageID:" + curPageID;
	Resize();
}	

function Resize()
{
	//alert("Resize");
	if (inEditor)
		return;
	var objTable = document.getElementById("_CMSTable1");
	if (objTable)
	{
		if (parent.document.all.ContentFrame)
			parent.document.all.ContentFrame.style.height = objTable.clientHeight;
	}
	if (parent.document.getElementById("IFrameTD"))
		parent.document.all.IFrameTD.style.visibility = "visible";
}

function SetValueStore(id)
{
	var tmp = document.getElementById("ValueStore").value;
	
	if (document.getElementById(id))
	{
		tmp = tmp.replace(";" + id + ";", ";");
		if (document.getElementById(id).checked)
			tmp = tmp + ";" + id + ";";
		document.getElementById("ValueStore").value = tmp;
	}
}

function showHotels(ID)
{
	url = "http://www.sellraintal.at/winter/application/showUnterkunftsliste.asp?Site=SELLRAIN_WINTER&LanguageID=240&Search=|||||||||" + ID + "||&PageNr=1&CategoryID=50";
	newWindow = window.open(url, "TOSC", "width=830, height=600, left=200, top=100, location=no, menubar=yes, toolbar=yes, scrollbars=yes, resizable=yes");
	newWindow.focus();
}


function ShowWindow(ID, FC, FN, OC, LG, RG, GR, RB, Others) 
{
	//alert(Others);
	CF = "TOSC2";
	if (RB == undefined)
		RB = "";
	if (RG == undefined)
		RG = "OG";	
	if (GR == undefined)
		GR = "";		
	if (LG == undefined)
		LG = 1;
	if (Others == undefined)
		Others = "";
	
	url = "http://www.sellraintal.at/winter/application/loadTosc.asp?TOSCNEW=TRUE&CF=" + CF + "&OC=" + OC + "&RG=" + RG + "&ID=" + ID + "&FN=" + FN + "&FC=" + FC + "&LG=" + LG + "&RB=" + RB + "&GR=" + GR + Others;
	//alert(url);
	newWindow = window.open(url, "TOSC", "width=830, height=600, left=200, top=100, location=no, menubar=yes, toolbar=yes, scrollbars=yes, resizable=yes");
	newWindow.focus();
}
function showProspekte(lang) {
	url = "http://www.sellraintal.at/winter/application/loadProspekte.asp?RG=OG&ID=1000080&LG=" + lang;
	//alert(url);
	newWindow = window.open(url, "TOSC", "width=830, height=650, left=100, top=50, location=no, menubar=yes, toolbar=yes, scrollbars=yes, resizable=yes");
	newWindow.focus();
}
function ShowEvents(lang) {
	url = "http://www.sellraintal.at/winter/application/loadEvents.asp?RG=OG&ID=1000080&LG=" + lang;
	//alert(url);
	newWindow = window.open(url, "TOSC", "width=830, height=650, left=100, top=50, location=no, menubar=yes, toolbar=yes, scrollbars=yes, resizable=yes");
	newWindow.focus();
}


function showCam() { //v1.0
  win = window.open('http://panpic2.feratel.at/panpic2/index.jsp?ID=5240&bgColor=f2f9fd&textColor=000000&stream=on&adv=off', 'viewer',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=550,height=420");  
}

function dlink(url)
{
	url = url.replace(/~~amp~~/g,"&");
	pageURL = document.location.href;
	formHTML = "<form name=dlink method=post action='http://www.sellraintal.at/winter/application/dlink.asp' target=dlink><input type=hidden name=url value='" + url + "'></form>";
	with (document) {
  		open();
		write(formHTML);
		close();
	}
	window.open('about:blank','dlink','height=600,width=700,toolbar=yes, menubar=yes, scrollbars=no,resizable=no').focus();
	document.dlink.submit();
	document.location.href=pageURL;
}



