document.listName=('Racingtours%2Edk%20Nyhedsbrev');var hotListMailname='';var hotListID='EDE1BF95DE425DDFC125700B0039DB3F';var ENCA='404240.134837962962963';var WindowBackground='';var HeaderText='';var InputText='';var TilmeldText='';var Tilmeldte='1280';var FrameldText='';var BetweenButtons='';document.write('<style type=text/css> <!--');document.write('.HeaderLine {height:; text-align:; width:; color:; background-color:; font-size:; font-family:; font-weight:; font-style:; text-decoration:;} ');document.write('.InputField {height:; text-align:; width:; color:; background-color:; font-size:; font-family:; font-weight:; font-style:; text-decoration:;} ');document.write('.Tilmeld {height:; text-align:; width:; color:; background-color:; font-size:; font-family:; font-weight:; font-style:; text-decoration:;} ');document.write('.Frameld {height:; text-align:; width:; color:; background-color:; font-size:; font-family:; font-weight:; font-style:; text-decoration:;} ');document.write('--> </style>');
function addToList(listName,mailName,butNum) {
  listName=unescape(unescape(listName));

  if (mailName.indexOf("'")!=-1 || mailName.indexOf('"')!= -1) {
    alert("Din eMail-adresse indeholder ulovlige tegn. Ret venligst adressen.");
    return;
  }

  if (mailName.toLowerCase()=='admin') {     

hotListWin=window.open("http://samson.eplugs.net/inet/hotList.nsf/displayAdminProfile?openagent&listName="+listName+"&password=&enca="+ENCA+"&fname=admLogin","hotListWin","toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,scrollbars=yes,width=495,height=350");
  } 
  else { 
    if ( (mailName.indexOf('.')!=-1) && (mailName.indexOf('@')!=-1) && (mailName.length>5)) { 
      forceUnsub="";
      if (butNum==1) forceUnsub="&confirmdeletion=true";
s="http://samson.eplugs.net/inet/hotList.nsf/toggleMailingListAgent?openAgent&listName="+escape(listName)+"&mailName="+mailName+"&enca="+ENCA+"&host="+escape(location.href)+forceUnsub;
hotListWin=window.open(s,"hotListWin","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,width=295,height=200")
    } 
    else { 
      alert('eMail-adresse ikke korrekt');
    }
  }
}

function infoMsg(s,msg) { 
  if (s==1) setStatus(msg,20);
  else setStatus('',20);
}

function setFormAction(objForm,flag) {
  if (!document.origAction) document.origAction=objForm.onsubmit;
  if (flag==1) objForm.onsubmit=new Function("addToList('"+document.listName+"','"+objForm.hotListName.value+"',0);return false");
  else objForm.onsubmit=document.origAction;
}

function setStatus(t,c) {
  if (c>=1) {
    s="";
    for (i=0;i<c;i++) s+="  ";
    window.status=s+t;
    c--;
    tID=setTimeout('setStatus("'+t+'",'+c+')',5);   
  } 
  else {
    window.status=t;
  }
}

function proxySetFormAction(objForm,flag,s,msg,clear) {
  setFormAction(objForm,flag);
  if (clear==1) objForm.hotListName.value="";
  infoMsg(s,unescape(msg));
}

function dw(html) {document.write(html);}


// ------------------------------------------------------- HotList visual stuff -----------------------------------------------------------------


// Styles
dw('<style><!-- ');
dw('.emLink'+hotListID+' {text-decoration:none;}');
dw('.emLink'+hotListID+':hover {background-color:#cccccc;text-decoration:none;}');
dw('.emFont7'+hotListID+' {font-size:7pt;}');
dw('.emFont7low'+hotListID+' {font-size:7pt;line-height:0.9em;}');
dw('.emInput'+hotListID+' {background-color:#ECD586; height:20px; width:145px; color:#333333; font-family:verdana; font-weight:normal; font-size:8pt;}');
dw('.emBtn'+hotListID+' {background-color:black; color:#FAE59E; height:20px; font-family:verdana; font-weight:bold; font-size:8pt;}');
dw(' --></style>');


// Border table
dw('</form><form name=HL'+hotListID+'>');
dw('<table border=0 width=180 cellspacing=0 cellpadding=1 align=center bgcolor=555555><tr><td>');

// Inner table
dw('<table border=0 width=100% cellspacing=0 cellpadding=2 align=center bgcolor=#FAE59E #B89A34 c3c3c3><tr><td colspan=2>');

// Topbar
dw('<table border=0 width=100% cellpadding=0 cellspacing=0 bgcolor=black><tr><td><font face="verdana" color=dddddd size=1><b><div align=left><font color=white id=dispListname>&nbsp;'+unescape(document.listName)+'</td><td valign=top width=20><a href=http://eplugs.net target=_blank><img src=http://samson.eplugs.net/eplugs/eplugs_small.gif border=0 alt="Powered by ePlugs.net" onmouseover="if (document.all) this.style.border=\'solid white 1px\';" onmouseout="if(document.all)this.style.border=\'solid 0px\';"></a></div></b></td></tr></table>');

// Input
dw('</td></tr><tr><td nowrap>');
dw('<small><b><input name=hotListName size=15 value="eMail-address" class=emInput'+hotListID+' onFocus=proxySetFormAction(this.form,1,1,"'+escape("Indtast E-mail adresse.")+'",1) onBlur=proxySetFormAction(this.form,0,0,"",0)>');
dw('</b></small></td>');

// Button
dw('<td><small><b>');
dw('<input type=button name=hotListAddToList value="OK" onFocus=setFormAction(this.form,1) onClick=addToList("'+escape(document.listName)+'",this.form.hotListName.value,0) onBlur=setFormAction(this.form,0) class=emBtn'+hotListID+'>');
dw('</b></small></td></tr>');

//footer
dw("<tr><td colspan=2 align=right><font size=1 face=verdana color=666666>"+Tilmeldte+" tilmeldte i alt&nbsp;</font></tr></td>");


// End inner table
dw('</td></tr></table>');

// End border table (and end the form between td and tr to avoid linebreak in some browsers)
dw('</td>');
for (q=0;q<document.forms.length;q++) if (document.forms[q].name=="HL"+hotListID) dw("</form>");
dw('</tr></table>');