this.ns4 = (navigator.appName.indexOf('Netscape') != -1 &&  parseInt(navigator.appVersion) >= 4);
function codes(e,form)
{
	var ns4 = (navigator.appName.indexOf('Netscape') != -1 && parseInt(navigator.appVersion) >= 4);
	if (ns4) var whichCode = e.which;
	else if (e.type == "keypress") var whichCode = e.keyCode;
	else var whichCode = e.button;
	if (whichCode == 13) {
		top.checksearch(form);
	}
}
function writeapplet(d, setup)
{
	d.write('<APPLET CODE="Menu.class" NAME="MenuApplet" WIDTH="158" HEIGHT="208" ARCHIVE="menu.jar" CODEBASE="/HogH/Applet/">');
	d.write('<PARAM NAME="Color" VALUE="', setup.applettopcolor, '">');
	for (i = 0; i < setup.appletmenulabels.length; i++)
	{
		d.write('<PARAM NAME="', i, '" VALUE="', setup.appletmenulabels[i], ';', setup.appletmenuurls[i], ';', setup.appletmenuframe[i], ';ID',i,'">');
	}
	d.write('</APPLET>');
	return false;
}
function writesearch(d, setup)
{
	d.write('<TABLE width="158" height="18" BORDER="0" CELLPADDING="0" CELLSPACING="0" VALIGN="TOP">');
	d.write('<TR BGCOLOR=', setup.boxheadercolor, '>');	
	d.write('<TD CLASS="BHeadline" VALIGN="TOP" width="3" height="18"><IMG SRC="', setup.boxleftcornergif, '"></TD>');
	d.write('<TD CLASS="BHeadline" height="18" >S&oslash;gning</TD>');
	d.write('<TD CLASS="BHeadline" VALIGN="TOP" ALIGN="RIGHT" height="18" ><IMG SRC="', setup.boxrightcornergif, '"></TD>');
	d.write('</TR><TR BGCOLOR="', setup.boxheadercolor, '"><TD COLSPAN="3">');
	d.write('<TABLE width="100%" BORDER="0" CELLPADDING="2" CELLSPACING="1" VALIGN="TOP">');
	d.write('<TR><TD CLASS="BContents"  BGCOLOR="', setup.searchboxbodycolor, '">');
	d.write('<FORM Name="MainForm" onsubmit="return false">');
	d.write('<TABLE width="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" VALIGN="TOP" COLS="2">');
	d.write('<TR><TD NOWRAP COLSPAN="2">');
	d.write('S&oslash;g i Huset & Haven:<BR><BR>');
	d.write('<INPUT NAME=Query SIZE="10" MAXLENGTH="30"Class="SearchField" VALUE="" onKeyPress="top.codes(event,document.forms[0])">');
	d.write('&nbsp&nbsp<INPUT TYPE=BUTTON Class="InputButton" VALUE=S&oslash;g onclick=top.checksearch(document.forms[0]);>');
	d.write('</TD></TR>');
	d.write('<TR>');
	d.write('<TD CLASS="BContents" BGCOLOR="', setup.searchboxbodycolor, '" ALIGN="LEFT">');
	d.write('<A HREF="/C12568BE004A4059/Udvidet?OpenForm" TARGET="ContentFrame">Udvidet s&oslash;gning</A></TD>');
	d.write('<TD CLASS="BContents"  BGCOLOR="', setup.searchboxbodycolor, '" ALIGN="RIGHT">');
	d.write('<A HREF="HomePageLoad?ReadForm&S1=Soegetips&" TARGET="ContentFrame">S&oslash;getips</A>');
	d.write('</TD></TR></TABLE></FORM>');
	d.write('</TD></TR></TABLE>');	
	d.write('</TD></TR></TABLE>');
	return false;
}
function writeteaser(setup, targetFrame, teaserHeader, teaserBody)
{
	var frame = top.frames[targetFrame];
	with (frame)
	{
		document.write('<TABLE width="158" height="18" BORDER="0" CELLPADDING="0" CELLSPACING="0" VALIGN="TOP"><TR  BGCOLOR=', setup.boxheadercolor, '>');
		document.write('<TD CLASS="BHeadline" VALIGN="TOP" width="3" height="18"><IMG SRC="', setup.boxleftcornergif, '"></TD>');
		document.write('<TD CLASS="BHeadline" height="18">', teaserHeader, '</TD>');
		document.write('<TD CLASS="BHeadline" VALIGN="TOP" ALIGN="RIGHT" height="18"><IMG SRC="', setup.boxrightcornergif, '"></TD>');
		document.write('</TR><TR  BGCOLOR="', setup.boxheadercolor, '"><TD COLSPAN="3">');
		document.write('<TABLE width="100%" BORDER="0" CELLPADDING="2" CELLSPACING="1" VALIGN="TOP"><TR><TD CLASS="BContents"  BGCOLOR="', setup.boxbodycolor, '">');
		document.write(unescape(teaserBody));
		document.write('</TD></TR></TABLE>');
		document.write('</TD></TR></TABLE>');	
	}
	return false;
}
function writeteaserwithbodycolor(setup, targetFrame, teaserHeader, teaserBody, bodycolor)
{
	var frame = top.frames[targetFrame];
	with (frame)
	{
		document.write('<TABLE width="158" height="18" BORDER="0" CELLPADDING="0" CELLSPACING="0" VALIGN="TOP"><TR  BGCOLOR=', setup.boxheadercolor, '>');
		document.write('<TD CLASS="BHeadline" VALIGN="TOP" width="3" height="18"><IMG SRC="', setup.boxleftcornergif, '"></TD>');
		document.write('<TD CLASS="BHeadline" height="18">', teaserHeader, '</TD>');
		document.write('<TD CLASS="BHeadline" VALIGN="TOP" ALIGN="RIGHT" height="18"><IMG SRC="', setup.boxrightcornergif, '"></TD>');
		document.write('</TR><TR  BGCOLOR="', setup.boxheadercolor, '"><TD COLSPAN="3">');
		document.write('<TABLE width="100%" BORDER="0" CELLPADDING="2" CELLSPACING="1" VALIGN="TOP"><TR><TD CLASS="BContents"  BGCOLOR="', bodycolor, '">');
		document.write(unescape(teaserBody));
		document.write('</TD></TR></TABLE>');
		document.write('</TD></TR></TABLE>');	
	}
	return false;
}
function writepartialteaser(setup, targetFrame, teaserHeader)
{
	var frame = top.frames[targetFrame];
	with (frame)
	{
		document.write('<TABLE width="100%" height="18" BORDER="0" CELLPADDING="0" CELLSPACING="0" ALIGN="RIGHT" VALIGN="TOP"><TR  BGCOLOR=', setup.boxheadercolor, '>');
		document.write('<TD CLASS="BHeadline" VALIGN="TOP" width="3" height="18"><IMG SRC="', setup.boxleftcornergif, '"></TD>');
		document.write('<TD CLASS="BHeadline" height="18">', teaserHeader, '</TD>');
		document.write('<TD CLASS="BHeadline" VALIGN="TOP" ALIGN="RIGHT" height="18"><IMG SRC="', setup.boxrightcornergif, '"></TD>');
		document.write('</TR><TR  BGCOLOR="', setup.boxheadercolor, '"><TD COLSPAN="3">');
		document.write('<TABLE width="100%" BORDER="0" CELLPADDING="2" CELLSPACING="1" VALIGN="TOP"><TR><TD CLASS="BContents"  BGCOLOR="', setup.boxbodycolor, '">');
	}
}
function writepartialteaser_end(targetFrame)
{
	var frame = top.frames[targetFrame];
	with (frame)
	{
		document.write('</TD></TR></TABLE>');	
		document.write('</TD></TR></TABLE>');	
	}
	return false;
}
function setURL(ID, d, url)
{
	top.NavFrame.document.MenuApplet.selectItemNow(ID)
	d.location.href = url;
}
function setURLandMenu(ID, d, url,Div)
{
	top.HeaderFrame.setlinkAndMenuItem(Div,ID);
	d.location.href = url;
}
function setMenu(ID, d, url,Div)
{
	top.HeaderFrame.setlinkAndMenuItem(Div,ID);
}
function setbanner(url)
{
	var ns4 = (navigator.appName.indexOf('Netscape') != -1 &&  parseInt(navigator.appVersion) >= 4 && parseInt(navigator.appVersion) < 6);
	if (ns4) { 
		var NSFrameBanner = top.frames["HeaderFrame"].document.layers[0];
		if (typeof NSFrameBanner == "object")
		{
				NSFrameBanner.load(url, 0);
		}
	}
	else
	{
		var IEFrameBanner = top.frames["HeaderFrame"].IEBanner;
		if (typeof IEFrameBanner  == "object")
		{
				IEFrameBanner.location.href = url;
		}
	}
}
function checksearch(form)
{
	var msg;
	var msgflag;
	msgflag = "false";
	msg="Indtast venligst et søgeord.\r";
	 if(form.Query.value == "")  
	{
		msg;
		msgflag="true";
	}
	if(msgflag == "true")
	{
		alert(msg);
		form.Query.focus
	}
	if(msgflag == "false")
	{
		top.ContentFrame.location.href = '/C12568BE004A4059/Search?OpenAgent&q='+escape(form.Query.value);
	}
 }
