function fenster1(url)
 {
 launch = window.open(url,"launch","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=468,height=307");
 launch.focus();
 }

function fenster2(url)
 {
 launch = window.open(url,"launch","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=323,height=377");
 launch.focus();
 }

function fenster3(url)
 {
 launch = window.open(url,"launch","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=270,height=240");
 launch.focus();
 }

function fenster4(url)
 {
 launch = window.open(url,"launch","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=514,height=508");
 launch.focus();
 }

function preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function swapImgRestore() { //v3.0
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function swapImage() { //v3.0
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function engbook_sendFormular(docForm,email,weite,hoehe)
{
  if (docForm.Vorname.value.length == 0) 
  {
    alert ("Please Fill out all Fields of this form!");
    docForm.Vorname.focus();
    return false;
  }
// if (navigator.appName != "Microsoft Internet Explorer") return true;
  var t = new Array();
  t[0] = docForm.FormName.value;
  t[1] = "- [First Name]: " + docForm.Vorname.value;
  t[2] = "- [Surname]: " + docForm.Nachname.value;
  t[3] = "- [Street]: " + docForm.Strasse.value;
  t[4] = "- [Postal Code]: " + docForm.Postleitzahl.value;
  t[5] = "- [City]: " + docForm.Ort.value;
  t[6] = "- [Country]: " + docForm.Land.value;
  t[7] = "- [Room]: " ;
  
	  if (docForm.Zimmerart[0].checked == true)
		t[7] += docForm.Zimmerart[0].value;
	  else if (docForm.Zimmerart[1].checked == true)
		t[7] += docForm.Zimmerart[1].value;
  t[8] = "- [From]: " + docForm.Von.value;
  t[9] = "- [To]: " + docForm.Bis.value;
  t[10] = "- [Annotations]: " + docForm.Bemerkung.value;

  var x = (screen.width - weite - 10) / 2;
  var y = (screen.height - hoehe - 32) / 2;
  var fenster = "width=" + weite + ",height=" + hoehe;
  fenster += ",left=" + x + ",top=" + y + ",scrollbars=yes";
  var Formular = window.open("","PopUp",fenster); Formular.focus();
  Formular.document.open();
  Formular.document.write("<html><head><title>Formular<\/title><\/head>");
  Formular.document.write("<body style=\"font:91% Verdana,sans-serif;\"");
// Formular.document.write(" onload=\"document.links[0].click();\"");
  Formular.document.writeln("><p>");
  var m = "";
  for (var i = 0; i <= 10; i++) /* Formularfelder 0 - 11 */
  {
    var z = ""; var cr = 0;
    for (var y = 0; y < Number(t[i].length); y++)
    {
      switch(t[i].charCodeAt(y))
      {
        case 13: z += "¦"; cr = 1; break;
        case 10: if (!cr) z += "¦"; break;
        case 32: z += "&#32;"; break;
        case 34: z += "&#34;"; break;
        case 38: z += "+"; break;
        case 60: z += "&#60;"; break;
        case 61: z += "&#61;"; break;
        case 62: z += "&#62;"; break;
        case 64: z += "&#64;"; break;
        case 196: z += "&#196;"; break;
        case 214: z += "&#214;"; break;
        case 220: z += "&#220;"; break;
        case 223: z += "&#223;"; break;
        case 228: z += "&#228;"; break;
        case 246: z += "&#246;"; break;
        case 252: z += "&#252;"; break;
        case 8364: z += "EUR"; break;
        default:
        if (t[i].charCodeAt(y) > 32 && t[i].charCodeAt(y) < 127)
          z += t[i].charAt(y);
        else z += "&#191;";
      }
    }
    t[i] = z; z = ""; var e = "";
    for (y = 0; y < Number(t[i].length); y++)
    {
      if (t[i].charAt(y) == "¦") {
        z += "<br>"; e += "%0D%0A";
      }
      else {
        z += t[i].charAt(y);
        if (t[i].charAt(y) == "?") e += "%3F";
        else {
          e += t[i].charAt(y);
          if (t[i].charAt(y) == "%") e += "25";
        }
      }
    }
    Formular.document.writeln("<br>" + z + "<br>"); t[i] = e;
    if (i > 0) m += t[i] + "%0D%0A";
    if (i < 3)
    {
      Formular.document.writeln("<br>"); m += "%0D%0A";
    }
  }
  Formular.document.writeln("<\/p>");
  if (m.length > 1750)
  {
    Formular.document.write("<hr><p><b><i>Your message is too loong ");
    Formular.document.write(" - <br>an automatic conversion is not possible. ");
    Formular.document.write("Please copy your message text ");
    Formular.document.write("(Control-C) and paste it into your eMail-Editor (Control-V).<\/b><\/i><\/p>");
    m = "- hier bitte Ihren Text einfuegen -";
  }
  Formular.document.write("<p><a href=\"mailto:" + email);
  Formular.document.write("?subject=" + t[0] + "&amp;body=" + m + "\"");
  Formular.document.write(" onclick=\"window.setTimeout('self.close()',100)\"");
  Formular.document.writeln(">Send Email with my Email Editor<\/a><\/p><\/body><\/html>");
  Formular.document.close();
  return false;
}

function engcontact_sendFormular(docForm,email,weite,hoehe)
{
  if (docForm.Vorname.value.length == 0) 
  {
    alert ("Please Fill out all Fields of this form!");
    docForm.Vorname.focus();
    return false;
  }
// if (navigator.appName != "Microsoft Internet Explorer") return true;
  var t = new Array();
  t[0] = docForm.FormName.value;
  t[1] = "- [First Name]: " + docForm.Vorname.value;
  t[2] = "- [Surname]: " + docForm.Nachname.value;
  t[3] = "- [Message]: " + docForm.Mitteilung.value;

  var x = (screen.width - weite - 10) / 2;
  var y = (screen.height - hoehe - 32) / 2;
  var fenster = "width=" + weite + ",height=" + hoehe;
  fenster += ",left=" + x + ",top=" + y + ",scrollbars=yes";
  var Formular = window.open("","PopUp",fenster); Formular.focus();
  Formular.document.open();
  Formular.document.write("<html><head><title>Formular<\/title><\/head>");
  Formular.document.write("<body style=\"font:91% Verdana,sans-serif;\"");
// Formular.document.write(" onload=\"document.links[0].click();\"");
  Formular.document.writeln("><p>");
  var m = "";
  for (var i = 0; i <= 3; i++) /* Formularfelder 0 - 3 */
  {
    var z = ""; var cr = 0;
    for (var y = 0; y < Number(t[i].length); y++)
    {
      switch(t[i].charCodeAt(y))
      {
        case 13: z += "¦"; cr = 1; break;
        case 10: if (!cr) z += "¦"; break;
        case 32: z += "&#32;"; break;
        case 34: z += "&#34;"; break;
        case 38: z += "+"; break;
        case 60: z += "&#60;"; break;
        case 61: z += "????›A???U??¼&#61;"; break;
        case 62: z += "&#62;"; break;
        case 64: z += "&#64;"; break;
        case 196: z += "&#196;"; break;
        case 214: z += "&#214;"; break;
        case 220: z += "&#220;"; break;
        case 223: z += "&#223;"; break;
        case 228: z += "&#228;"; break;
        case 246: z += "&#246;"; break;
        case 252: z += "&#252;"; break;
        case 8364: z += "EUR"; break;
        default:
        if (t[i].charCodeAt(y) > 32 && t[i].charCodeAt(y) < 127)
          z += t[i].charAt(y);
        else z += "&#191;";
      }
    }
    t[i] = z; z = ""; var e = "";
    for (y = 0; y < Number(t[i].length); y++)
    {
      if (t[i].charAt(y) == "¦") {
        z += "<br>"; e += "%0D%0A";
      }
      else {
        z += t[i].charAt(y);
        if (t[i].charAt(y) == "?") e += "%3F";
        else {
          e += t[i].charAt(y);
          if (t[i].charAt(y) == "%") e += "25";
        }
      }
    }
    Formular.document.writeln("<br>" + z + "<br>"); t[i] = e;
    if (i > 0) m += t[i] + "%0D%0A";
    if (i < 3)
    {
      Formular.document.writeln("<br>"); m += "%0D%0A";
    }
  }
  Formular.document.writeln("<\/p>");
  if (m.length > 1750)
  {
    Formular.document.write("<hr><p><b><i>Your message is too loong ");
    Formular.document.write(" - <br>an automatic conversion is not possible. ");
    Formular.document.write("Please copy your message text ");
    Formular.document.write("(Control-C) and paste it into your eMail-Editor (Control-V).<\/b><\/i><\/p>");
    m = "- hier bitte Ihren Text einfuegen -";
  }
  Formular.document.write("<p><a href=\"mailto:" + email);
  Formular.document.write("?subject=" + t[0] + "&amp;body=" + m + "\"");
  Formular.document.write(" onclick=\"window.setTimeout('self.close()',100)\"");
  Formular.document.writeln(">Send Email with my Email Editor<\/a><\/p><\/body><\/html>");
  Formular.document.close();
  return false;
}

function deubuchung_sendFormular(docForm,email,weite,hoehe)
{
  if (docForm.Vorname.value.length == 0) 
  {
    alert ("Sie haben keinen Text eingegeben!");
    docForm.Vorname.focus();
    return false;
  }
// if (navigator.appName != "Microsoft Internet Explorer") return true;
  var t = new Array();
  t[0] = docForm.FormName.value;
  t[1] = "- [Vorname]: " + docForm.Vorname.value;
  t[2] = "- [Nachname]: " + docForm.Nachname.value;
  t[3] = "- [Straße]: " + docForm.Strasse.value;
  t[4] = "- [Postleitzahl]: " + docForm.Postleitzahl.value;
  t[5] = "- [Stadt]: " + docForm.Ort.value;
  t[6] = "- [Land]: " + docForm.Land.value;
  t[7] = "- [Zimmerart]: " ;
  
	  if (docForm.Zimmerart[0].checked == true)
		t[7] += docForm.Zimmerart[0].value;
	  else if (docForm.Zimmerart[1].checked == true)
		t[7] += docForm.Zimmerart[1].value;
  t[8] = "- [Von]: " + docForm.Von.value;
  t[9] = "- [Bis]: " + docForm.Bis.value;
  t[10] = "- [Bemerkungen]: " + docForm.Bemerkung.value;

  var x = (screen.width - weite - 10) / 2;
  var y = (screen.height - hoehe - 32) / 2;
  var fenster = "width=" + weite + ",height=" + hoehe;
  fenster += ",left=" + x + ",top=" + y + ",scrollbars=yes";
  var Formular = window.open("","PopUp",fenster); Formular.focus();
  Formular.document.open();
  Formular.document.write("<html><head><title>Formular<\/title><\/head>");
  Formular.document.write("<body style=\"font:91% Verdana,sans-serif;\"");
// Formular.document.write(" onload=\"document.links[0].click();\"");
  Formular.document.writeln("><p>");
  var m = "";
  for (var i = 0; i <= 10; i++) /* Formularfelder 0 - 11 */
  {
    var z = ""; var cr = 0;
    for (var y = 0; y < Number(t[i].length); y++)
    {
      switch(t[i].charCodeAt(y))
      {
        case 13: z += "¦"; cr = 1; break;
        case 10: if (!cr) z += "¦"; break;
        case 32: z += "&#32;"; break;
        case 34: z += "&#34;"; break;
        case 38: z += "+"; break;
        case 60: z += "&#60;"; break;
        case 61: z += "&#61;"; break;
        case 62: z += "&#62;"; break;
        case 64: z += "&#64;"; break;
        case 196: z += "&#196;"; break;
        case 214: z += "&#214;"; break;
        case 220: z += "&#220;"; break;
        case 223: z += "&#223;"; break;
        case 228: z += "&#228;"; break;
        case 246: z += "&#246;"; break;
        case 252: z += "&#252;"; break;
        case 8364: z += "EUR"; break;
        default:
        if (t[i].charCodeAt(y) > 32 && t[i].charCodeAt(y) < 127)
          z += t[i].charAt(y);
        else z += "&#191;";
      }
    }
    t[i] = z; z = ""; var e = "";
    for (y = 0; y < Number(t[i].length); y++)
    {
      if (t[i].charAt(y) == "¦") {
        z += "<br>"; e += "%0D%0A";
      }
      else {
        z += t[i].charAt(y);
        if (t[i].charAt(y) == "?") e += "%3F";
        else {
          e += t[i].charAt(y);
          if (t[i].charAt(y) == "%") e += "25";
        }
      }
    }
    Formular.document.writeln("<br>" + z + "<br>"); t[i] = e;
    if (i > 0) m += t[i] + "%0D%0A";
    if (i < 3)
    {
      Formular.document.writeln("<br>"); m += "%0D%0A";
    }
  }
  Formular.document.writeln("<\/p>");
  if (m.length > 1750)
  {
    Formular.document.write("<hr><p><b><i>Sie haben sehr viel Text ");
    Formular.document.write("eingegeben,<br>so dass eine automatische ");
    Formular.document.write("Uebernahme leider nicht moeglich ist.<br>");
    Formular.document.write("Bitte kopieren Sie Ihren obenstehenden Text ");
    Formular.document.write("(Strg-C) und<br>uebertragen ihn anschliessend ");
    Formular.document.writeln("in Ihr eMail-Programm (Strg-V).<\/b><\/i><\/p>");
    m = "- hier bitte Ihren Text einfuegen -";
  }
  Formular.document.write("<p><a href=\"mailto:" + email);
  Formular.document.write("?subject=" + t[0] + "&amp;body=" + m + "\"");
  Formular.document.write(" onclick=\"window.setTimeout('self.close()',100)\"");
  Formular.document.writeln(">Anfrage über meinen Email-Editor schicken<\/a><\/p><\/body><\/html>");

  Formular.document.close();
  return false;
}

function deukontakt_sendFormular(docForm,email,weite,hoehe)
{
  if (docForm.Vorname.value.length == 0) 
  {
    alert ("Sie haben keinen Text eingegeben!");
    docForm.Vorname.focus();
    return false;
  }
// if (navigator.appName != "Microsoft Internet Explorer") return true;
  var t = new Array();
  t[0] = docForm.FormName.value;
  t[1] = "- [Vorname]: " + docForm.Vorname.value;
  t[2] = "- [Nachname]: " + docForm.Nachname.value;
  t[3] = "- [Mitteilung]: " + docForm.Mitteilung.value;

  var x = (screen.width - weite - 10) / 2;
  var y = (screen.height - hoehe - 32) / 2;
  var fenster = "width=" + weite + ",height=" + hoehe;
  fenster += ",left=" + x + ",top=" + y + ",scrollbars=yes";
  var Formular = window.open("","PopUp",fenster); Formular.focus();
  Formular.document.open();
  Formular.document.write("<html><head><title>Formular<\/title><\/head>");
  Formular.document.write("<body style=\"font:91% Verdana,sans-serif;\"");
// Formular.document.write(" onload=\"document.links[0].click();\"");
  Formular.document.writeln("><p>");
  var m = "";
  for (var i = 0; i <= 3; i++) /* Formularfelder 0 - 3 */
  {
    var z = ""; var cr = 0;
    for (var y = 0; y < Number(t[i].length); y++)
    {
      switch(t[i].charCodeAt(y))
      {
        case 13: z += "¦"; cr = 1; break;
        case 10: if (!cr) z += "¦"; break;
        case 32: z += "&#32;"; break;
        case 34: z += "&#34;"; break;
        case 38: z += "+"; break;
        case 60: z += "&#60;"; break;
        case 61: z += "&#61;"; break;
        case 62: z += "&#62;"; break;
        case 64: z += "&#64;"; break;
        case 196: z += "&#196;"; break;
        case 214: z += "&#214;"; break;
        case 220: z += "&#220;"; break;
        case 223: z += "&#223;"; break;
        case 228: z += "&#228;"; break;
        case 246: z += "&#246;"; break;
        case 252: z += "&#252;"; break;
        case 8364: z += "EUR"; break;
        default:
        if (t[i].charCodeAt(y) > 32 && t[i].charCodeAt(y) < 127)
          z += t[i].charAt(y);
        else z += "&#191;";
      }
    }
    t[i] = z; z = ""; var e = "";
    for (y = 0; y < Number(t[i].length); y++)
    {
      if (t[i].charAt(y) == "¦") {
        z += "<br>"; e += "%0D%0A";
      }
      else {
        z += t[i].charAt(y);
        if (t[i].charAt(y) == "?") e += "%3F";
        else {
          e += t[i].charAt(y);
          if (t[i].charAt(y) == "%") e += "25";
        }
      }
    }
    Formular.document.writeln("<br>" + z + "<br>"); t[i] = e;
    if (i > 0) m += t[i] + "%0D%0A";
    if (i < 3)
    {
      Formular.document.writeln("<br>"); m += "%0D%0A";
    }
  }
  Formular.document.writeln("<\/p>");
  if (m.length > 1750)
  {
    Formular.document.write("<hr><p><b><i>Sie haben sehr viel Text ");
    Formular.document.write("eingegeben,<br>so dass eine automatische ");
    Formular.document.write("Uebernahme leider nicht moeglich ist.<br>");
    Formular.document.write("Bitte kopieren Sie Ihren obenstehenden Text ");
    Formular.document.write("(Strg-C) und<br>uebertragen ihn anschliessend ");
    Formular.document.writeln("in Ihr eMail-Programm (Strg-V).<\/b><\/i><\/p>");
    m = "- hier bitte Ihren Text einfuegen -";
  }
  Formular.document.write("<p><a href=\"mailto:" + email);
  Formular.document.write("?subject=" + t[0] + "&amp;body=" + m + "\"");
  Formular.document.write(" onclick=\"window.setTimeout('self.close()',100)\"");
  Formular.document.writeln(">Anfrage über meinen Email-Editor schicken<\/a><\/p><\/body><\/html>");
  Formular.document.close();
  return false;
}

function deu_onlinebooking() {
var url;
aux = open("http://www.onlinehotelreservierung.de/cgi-bin/buchen.cgi?carltonfrankfurt","Intro","width=800,height=600,toolbar=yes,scrollbars=yes");
aux.moveTo(screen.width/2-150,screen.height/2-180);
aux.focus();
} 

function eng_onlinebooking() {
var url;
aux = open("http://www.onlinehotelreservierung.de/cgi-bin/buchen.cgi?carltonfrankfurt&e&&&84.177.94.62&&&&","Intro","width=800,height=600,toolbar=yes,scrollbars=yes");
aux.moveTo(screen.width/2-150,screen.height/2-180);
aux.focus();
} 
