var datum=new Date(); /* * This is the function that actually highlights a text string by * adding HTML tags before and after all occurrences of the search * term. You can pass your own tags if you'd like, or if the * highlightStartTag or highlightEndTag parameters are omitted or * are empty strings then the default <font> tags will be used. */function doHighlight(bodyText, searchTerm, highlightStartTag, highlightEndTag) {  // the highlightStartTag and highlightEndTag parameters are optional  if ((!highlightStartTag) || (!highlightEndTag)) {    highlightStartTag = "<font style='color:blue; background-color:yellow;'>";    highlightEndTag = "</font>";  }    // find all occurences of the search term in the given text,  // and add some "highlight" tags to them (we're not using a  // regular expression search, because we want to filter out  // matches that occur within HTML tags and script blocks, so  // we have to do a little extra validation)  var newText = "";  var i = -1;  var lcSearchTerm = searchTerm.toLowerCase();  var lcBodyText = bodyText.toLowerCase();      while (bodyText.length > 0) {    i = lcBodyText.indexOf(lcSearchTerm, i+1);    if (i < 0) {      newText += bodyText;      bodyText = "";    } else {      // skip anything inside an HTML tag      if (bodyText.lastIndexOf(">", i) >= bodyText.lastIndexOf("<", i)) {        // skip anything inside a <script> block        if (lcBodyText.lastIndexOf("/script>", i) >= lcBodyText.lastIndexOf("<script", i)) {          newText += bodyText.substring(0, i) + highlightStartTag + bodyText.substr(i, searchTerm.length) + highlightEndTag;          bodyText = bodyText.substr(i + searchTerm.length);          lcBodyText = bodyText.toLowerCase();          i = -1;        }      }    }  }    return newText;}/* * This is sort of a wrapper function to the doHighlight function. * It takes the searchText that you pass, optionally splits it into * separate words, and transforms the text on the current web page. * Only the "searchText" parameter is required; all other parameters * are optional and can be omitted. */function highlightSearchTerms(searchText, treatAsPhrase, warnOnFailure, highlightStartTag, highlightEndTag){  // if the treatAsPhrase parameter is true, then we should search for   // the entire phrase that was entered; otherwise, we will split the  // search string so that each word is searched for and highlighted  // individually  if (treatAsPhrase) {    searchArray = [searchText];  } else {    searchArray = searchText.split(" ");  }    if (!document.body || typeof(document.body.innerHTML) == "undefined") {    if (warnOnFailure) {      alert("Sorry, for some reason the text of this page is unavailable. Searching will not work.");    }    return false;  }    var bodyText = document.body.innerHTML;  for (var i = 0; i < searchArray.length; i++) {    bodyText = doHighlight(bodyText, searchArray[i], highlightStartTag, highlightEndTag);  }    document.body.innerHTML = bodyText;  return true;}/*Browserweiche als Vorbereitung um Fehler des IE zu beheben*/function checkBrowserName(name){     var agent = navigator.userAgent.toLowerCase();     if (agent.indexOf(name.toLowerCase())>-1) {       return true;     }     return false;   }  function Section(Abschnitt)	{	 var target = ["Regionen", "Reisezeitraum", "Unterbringung", "Kategorie", "Unterbringungsmoeglichkeit", "Wuensche"];	 for ( ziel=0; ziel<target.length;ziel++)	 	{	 	 if ( Abschnitt == target[ziel] )	 	 	{	 	 	 document.getElementById("l"+target[ziel]).style.display = '';	 	 	 document.getElementById("r"+target[ziel]).style.display = '';	 	 	}	 	 else	 	 	{	 	 	 document.getElementById("l"+target[ziel]).style.display = 'none';	 	 	 document.getElementById("r"+target[ziel]).style.display = 'none';	 	 	}	 	}	}function Personen(Nummer)	{	 for (ziel=1; ziel <9;ziel++)		{	 	 if ( Nummer+1 >= ziel)	 	 	{	 	 	 document.getElementById("reisende_"+ziel).style.display = '';	 	 	}	 	 else	 	 	{	 	 	 document.getElementById("reisende_"+ziel).style.display = 'none';			}		}	 if ($('reisende').selectedIndex < $('Zimmer').selectedIndex) $('Zimmer').selectedIndex = $('reisende').selectedIndex	}function Zim(Nummer)	{ 	 if ($('reisende').selectedIndex < Nummer)	 	{	 	 $('reisende').selectedIndex = Nummer;	 	 for (ziel=1; ziel <9;ziel++)			{		 	 if ( Nummer+1 >= ziel)		 	 	{		 	 	 document.getElementById("reisende_"+ziel).style.display = '';		 	 	}		 	 else		 	 	{		 	 	 document.getElementById("reisende_"+ziel).style.display = 'none';				}			}	 	}	}function Zeitraum(Zeit)	{	  if ( document.forms[0].Reisezeitraum[0].checked==true)	  	{	  	 document.getElementById("flex").style.display = '';	  	 document.getElementById("fix").style.display = 'none';	  	}	  else	  	{	  	 document.getElementById("flex").style.display = 'none';	  	 document.getElementById("fix").style.display = '';		}	}function checkQ(sObj)	{	if(sObj==1)		{		 document.getElementById("A1").style.display = '';		 document.getElementById("A2").style.display = 'none';		}	else if(sObj==2)		{		 document.getElementById("A1").style.display = 'none';		 document.getElementById("A2").style.display = '';		}	else if(sObj==3)		{		 document.getElementById("A1").style.display = '';		 document.getElementById("A2").style.display = 'none';		}	else		{		 document.getElementById("A1").style.display = 'none';		 document.getElementById("A2").style.display = 'none';		}	}function checkIsOK(sObj, sPos)	{	 if (sPos == 0)	 	{	 		if(sObj.selectedIndex == 0)	 			{				var myFx = new Fx.Tween(sObj);				myFx.start('background-color', '#AB0000', '#ffd4d4');				return 1;	 			}	 		else 				{				sObj.erase('style');				 return 0;				}	 	}	 else	 	{	 	 if(sObj.value.length < sPos)	 			{	 			var myFx = new Fx.Tween(sObj);				myFx.start('background-color', '#AB0000', '#ffd4d4');				 return 1;	 			}	 		else 				{				sObj.erase('style');				 return 0;				}		}	}function checkRadio(cObj , sObj)	{	 if(cObj.checked) 		{		sObj.erase('style');		 return 0;	 	}	 else 		{		var myFx = new Fx.Tween(sObj);		myFx.start('background-color', '#AB0000', '#ffd4d4');				 return 1;		}	}function checkIsMail(sObj) 	{		var mailadr = sObj.value;		var ausdruck=/^[\w-\.]+@[\w-\.]+\.[a-zA-Z]{2,4}$/;		if(ausdruck.test(mailadr)==false||mailadr.length<7)	 			{				var myFx = new Fx.Tween(sObj);				myFx.start('background-color', '#AB0000', '#ffd4d4');				 return 1;	 			}	 		else 				{				sObj.erase('style');				 return 0;				}	}function SBsuche()	{	 document.forms[0].sindex.value="XXX";	 if ( $('Error') != null ) 		{	 	 $('Error').style.display = 'none';	 	}	 document.forms[0].submit();	}function SBcheckRA()	{	 var fehler = 0;	 document.forms[0].suche.value = "";	 document.forms[0].sindex.value = "";	 	 if(document.forms[0].Reisezeitraum[0].checked==true)	 	{	 	 fehler += checkIsOK($('ATag'), 0);	 	 fehler += checkIsOK($('AMonat'), 0);	 	 fehler += checkIsOK($('AJahr'), 0);	 	 fehler += checkIsOK($('ZTag'), 0);	 	 fehler += checkIsOK($('ZMonat'), 0);	 	 fehler += checkIsOK($('ZJahr'), 0);	 	 fehler += checkIsOK($('Reisedauer'), 0);	 	}	 if(document.forms[0].Reisezeitraum[1].checked==true)	 	{	 	 fehler += checkIsOK($('BTag'), 0);	 	 fehler += checkIsOK($('BMonat'), 0);	 	 fehler += checkIsOK($('BJahr'), 0);	 	 fehler += checkIsOK($('YTag'), 0);	 	 fehler += checkIsOK($('YMonat'), 0);	 	 fehler += checkIsOK($('YJahr'), 0);	 	}	 		 if(document.forms[0].Reisezeitraum[0].checked==false & document.forms[0].Reisezeitraum[1].checked==false)	 	{	 	 fehler++;	 	 var myFx = new Fx.Tween($('Rzeitraum'));		 myFx.start('background-color', '#AB0000', '#ffd4d4');	 	}	 else	 	{	 	 $('Rzeitraum').erase('style');	 	}	 	 	 if(fehler > 0)	 	{	 	 var myFx = new Fx.Tween($('RZ_line'));		 myFx.start('color', '#FFF', '#F00');fehler++;	 	}	 else	 	{	 	 $('RZ_line').erase('style');	 	}	 if(document.forms[0].UMK[0].checked==false & document.forms[0].UMK[1].checked==false & document.forms[0].UMK[2].checked==false & document.forms[0].UMK[2].checked==false & document.forms[0].UMK[3].checked==false & document.forms[0].UMK[4].checked==false & document.forms[0].UMK[5].checked==false & document.forms[0].UMK[6].checked==false)	 	{	 	 fehler++;	 	 var myFx = new Fx.Tween($('UM'));		 myFx.start('background-color', '#AB0000', '#ffd4d4');		 var myFx = new Fx.Tween($('UMK_line'));		 myFx.start('color', '#FFF', '#F00');	 	}	 else	 	{	 	 $('UM').erase('style');	 	 $('UMK_line').erase('style');	 	}	 if (fehler) 		{		$('Error').style.display = '';		 return false;				}	else		{		 $('Error').style.display = 'none';		 document.forms[0].submit();		}	}function checkForm()	{	var fehler = 0;	fehler += checkIsOK($('Anrede'), 0);	fehler += checkIsOK($('Vorname'), 3);	fehler += checkIsOK($('Nachname'),3);	fehler += checkIsMail($('Mailadresse'));	fehler += checkIsMail($('Mailadresse_2'));	if($('Mailadresse').value != $('Mailadresse_2').value)		{		 	var myFx = new Fx.Tween($('Mailadresse'));			myFx.start('background-color', '#AB0000', '#ffd4d4');		 	var myFx = new Fx.Tween($('Mailadresse_2'));			myFx.start('background-color', '#AB0000', '#ffd4d4');			fehler += 1;		}	fehler += checkIsOK($('Kennwort'), 8);	fehler += checkIsOK($('Kennwort_2'), 8);	if($('Kennwort').value != $('Kennwort_2').value)		{		 	var myFx = new Fx.Tween($('Kennwort'));			myFx.start('background-color', '#AB0000', '#ffd4d4');		 	var myFx = new Fx.Tween($('Kennwort_2'));			myFx.start('background-color', '#AB0000', '#ffd4d4');			fehler += 1;		}	fehler += checkIsOK($('Sicherheitsfrage'), 0);	if($('Sicherheitsfrage').selectedIndex == 1 || $('Sicherheitsfrage').selectedIndex == 3)		{		 	fehler += checkIsOK($('Antwort'), 3);		}	if($('Sicherheitsfrage').selectedIndex == 2)		{		 	if (checkIsOK($('STag'), 0)==0)				{				 $('STag').style.width = '120px';				}			else				{				 fehler += 1;				}		 	if (checkIsOK($('SMonat'), 0)==0)				{				 $('SMonat').style.width = '120px';				}			else				{				 fehler += 1;				}		 	if (checkIsOK($('SJahr'), 0)==0)				{				 $('SJahr').style.width = '120px';				}			else				{				 fehler += 1;				}		}	fehler += checkRadio($('AGB'), $('AGBs'));	fehler += checkRadio($('Datenschutz'), $('Datenschutzs')); 	if (fehler) 		{		$('Error').style.display = '';		 return false;		}	else		{document.forms[0].submit();}	 }function TWright(str,n)	{	 if(n <= 0) return '';	 else if (n > String(str).length) return str;	 else	 	{	 	 var iLen = String(str).length;	 	 return String(str).substring(iLen, iLen-n);	 	}	 }/* function SBcheckPBD2()	{	 var fehler = 0;	 var Dauer = 0;	 var Reisende = '';	 var Anreise = '';	 var Abreise = '';	 var Zimmer = '';	 var Ausgabe = '';	 var now = new Date();	 alert(now.getFullYear());	 if (checkBrowserName('MSIE')) alert('IE');	 	 for(count=1; count <9; count++)		{		 if(($('reisende').selectedIndex+1) > count-1)		 	{			 if ($('GTag_'+count).selectedIndex > 0 && $('GMonat_'+count).selectedIndex > 0 && $('GJahr_'+count).selectedIndex > 0)			 	{			 	 GA = new Date(($('GJahr_'+count).selectedIndex + now.getFullYear() - 100), ($('GMonat_'+count).selectedIndex -1), $('GTag_'+count).selectedIndex ,12,0,0);			 	 Reisende = Reisende + Math.floor(Date.parse(GA)/86400000+0x63E1).toString(16).toUpperCase();			 	 alert(GA);			 	}			 else Reisende = Reisende + '0000'			 alert(Reisende);			 }		}  	 	  if ($('BTag').selectedIndex > 0 && $('BMonat').selectedIndex > 0 && $('BJahr').selectedIndex > 0)		 	{		 	 GA= new Date(($('BJahr').selectedIndex + now.getFullYear() - 1), ($('BMonat').selectedIndex -1), $('BTag').selectedIndex ,12,0,0);			 if(Math.floor(Date.parse(GA)/86400000+0x63E2) < Math.floor(now.getTime()/86400000+0x63E2))			 	{			 	  Anreise = Math.floor(now.getTime()/86400000+0x63E7).toString(16).toUpperCase();			 	} 			 else			 	{			 	  Anreise = Math.floor(Date.parse(GA)/86400000+0x63E2).toString(16).toUpperCase();			 	}		 	}	 else			{			 Anreise = (Math.floor(now.getTime()/86400000)+0x63E7).toString(16).toUpperCase();			}alert(GA);alert(Anreise); 	  if ($('YTag').selectedIndex > 0 && $('YMonat').selectedIndex > 0 && $('YJahr').selectedIndex > 0)		 	{		 	 GB = new Date(($('YJahr').selectedIndex + now.getFullYear() - 1), ($('YMonat').selectedIndex - 1), $('YTag').selectedIndex ,12,0,0);		 	 if (Math.floor(Date.parse(GB)/86400000+0x63E2) <= parseInt('0x'+Anreise))		 	 	{		 	 	 Abreise = (parseInt('0x'+Anreise)+7).toString(16).toUpperCase();		 	 	}		 	 else		 	 	{		 	 	  Abreise = Math.floor(Date.parse(GB)/86400000+0x63E2).toString(16).toUpperCase();		 	 	}		 	  if (GB <= GA) 				{				 GB = GA + 86400000				}		 	 Abreise = Math.floor(Date.parse(GB)/86400000+0x63E2).toString(16).toUpperCase();		 	}		 else 			{			 Abreise = (parseInt('0x'+Anreise)+7).toString(16).toUpperCase();			}alert(GB);alert(Abreise);				 Zimmer = (Math.floor($('Zimmer').selectedIndex)+10).toString(16).toUpperCase();	 Dauer = parseInt('0x'+Abreise) - parseInt('0x'+Anreise)		 Ausgabe = 'Q=/QQQQQQX' + Zimmer + 'AABCDEFGY';	 Ausgabe = Ausgabe + TWright('0'+Dauer.toString(16).toUpperCase(), 2);	 Ausgabe = Ausgabe + (parseInt('0x'+Anreise) -7).toString(16).toUpperCase();	 Ausgabe = Ausgabe + (parseInt('0x'+Abreise) + 7).toString(16).toUpperCase();	 Ausgabe = Ausgabe + 'Z' + Reisende;	 posi = document.URL.indexOf('OpenDocument');	 if (posi > 0) Ausgabe = document.URL.substring(0, posi) + 'OpenDocument&' + Ausgabe;	 else Ausgabe = '';	 alert(Ausgabe);	  window.location.href = Ausgabe	}*/function SBcheckPBD()	{	 var fehler = 0;	 var Dauer = 0;	 var Reisende = '';	 var Anreise = '';	 var Abreise = '';	 var Zimmer = '';	 var Ausgabe = '';	 var now = new Date(); 	 for(count=1; count <9; count++)		{		 if(($('reisende').selectedIndex+1) > count-1)		 	{			 if ($('GTag_'+count).selectedIndex > 0 && $('GMonat_'+count).selectedIndex > 0 && $('GJahr_'+count).selectedIndex > 0)			 	{			 	 GA = new Date(($('GJahr_'+count).selectedIndex + now.getFullYear() - 100), ($('GMonat_'+count).selectedIndex -1), $('GTag_'+count).selectedIndex ,12,0,0);			 	 Reisende = Reisende + Math.floor(Date.parse(GA)/86400000+0x63E1).toString(16).toUpperCase();			 	}			 else Reisende = Reisende + '0000'			 }		}  	 	  if ($('BTag').selectedIndex > 0 && $('BMonat').selectedIndex > 0 && $('BJahr').selectedIndex > 0)		 	{		 	 GA= new Date(($('BJahr').selectedIndex + now.getFullYear() - 1), ($('BMonat').selectedIndex -1), $('BTag').selectedIndex ,12,0,0);			 if(Math.floor(Date.parse(GA)/86400000+0x63E2) < Math.floor(now.getTime()/86400000+0x63E2))			 	{			 	  Anreise = Math.floor(now.getTime()/86400000+0x63E7).toString(16).toUpperCase();			 	} 			 else			 	{			 	  Anreise = Math.floor(Date.parse(GA)/86400000+0x63E2).toString(16).toUpperCase();			 	}		 	}	 else			{			 Anreise = (Math.floor(now.getTime()/86400000)+0x63E7).toString(16).toUpperCase();			} 	  if ($('YTag').selectedIndex > 0 && $('YMonat').selectedIndex > 0 && $('YJahr').selectedIndex > 0)		 	{		 	 GB = new Date(($('YJahr').selectedIndex + now.getFullYear() - 1), ($('YMonat').selectedIndex - 1), $('YTag').selectedIndex ,12,0,0);		 	 if (Math.floor(Date.parse(GB)/86400000+0x63E2) <= parseInt('0x'+Anreise))		 	 	{		 	 	 Abreise = (parseInt('0x'+Anreise)+7).toString(16).toUpperCase();		 	 	}		 	 else		 	 	{		 	 	  Abreise = Math.floor(Date.parse(GB)/86400000+0x63E2).toString(16).toUpperCase();		 	 	}		 	  if (GB <= GA) 				{				 GB = GA + 86400000				}		 	 Abreise = Math.floor(Date.parse(GB)/86400000+0x63E2).toString(16).toUpperCase();		 	}		 else 			{			 Abreise = (parseInt('0x'+Anreise)+7).toString(16).toUpperCase();			}		 Zimmer = (Math.floor($('Zimmer').selectedIndex)+10).toString(16).toUpperCase();	 Dauer = parseInt('0x'+Abreise) - parseInt('0x'+Anreise)		 Ausgabe = 'Q=/QQQQQQX' + Zimmer + 'AABCDEFGY';	 Ausgabe = Ausgabe + TWright('0'+Dauer.toString(16).toUpperCase(), 2);	 Ausgabe = Ausgabe + (parseInt('0x'+Anreise) -7).toString(16).toUpperCase();	 Ausgabe = Ausgabe + (parseInt('0x'+Abreise) + 7).toString(16).toUpperCase();	 Ausgabe = Ausgabe + 'Z' + Reisende;	 posi = document.URL.indexOf('OpenDocument');	 if (posi > 0) Ausgabe = document.URL.substring(0, posi) + 'OpenDocument&' + Ausgabe;	 else Ausgabe = '';	  window.location.href = Ausgabe	}function SBcheckRA2()	{	 var fehler = 0;	 var Reisende = '';	 var Dauer = 0;	 var Anreise = '';	 var Abreise = '';	 var Zimmer = '';	 var Zeitraum = '';	 var ZTyp = '';	 var Ausgabe = 'Q';	 	 if(document.forms[0].Regionen[0].checked==true) {Ausgabe = Ausgabe + 'Q';}	 if(document.forms[0].Regionen[1].checked==true) {Ausgabe = Ausgabe + 'S';}	 if(document.forms[0].Regionen[2].checked==true) {Ausgabe = Ausgabe + 'O';}	 if(document.forms[0].Regionen[3].checked==true) {Ausgabe = Ausgabe + 'N';}	 if(document.forms[0].Regionen[4].checked==true) {Ausgabe = Ausgabe + 'W';}	 if(document.forms[0].Regionen[5].checked==true) {Ausgabe = Ausgabe + 'L';}	 	 if(document.forms[0].Unterbringung[0].checked==true) {Ausgabe = Ausgabe + 'Q';}	 if(document.forms[0].Unterbringung[1].checked==true) {Ausgabe = Ausgabe + 'H';}	 if(document.forms[0].Unterbringung[2].checked==true) {Ausgabe = Ausgabe + 'C';}	 if(document.forms[0].Unterbringung[3].checked==true) {Ausgabe = Ausgabe + 'A';}	 if(document.forms[0].Unterbringung[4].checked==true) {Ausgabe = Ausgabe + 'F';}	 if(document.forms[0].Unterbringung[5].checked==true) {Ausgabe = Ausgabe + 'S';}	 	 if(document.forms[0].Kategorie[0].checked==true) {Ausgabe = Ausgabe + 'Q';}	 if(document.forms[0].Kategorie[1].checked==true) {Ausgabe = Ausgabe + 'C';}	 if(document.forms[0].Kategorie[2].checked==true) {Ausgabe = Ausgabe + 'D';}	 if(document.forms[0].Kategorie[3].checked==true) {Ausgabe = Ausgabe + 'E';}		 if(document.forms[0].Verpflegung[0].checked==true) {Ausgabe = Ausgabe + 'Q';}	 if(document.forms[0].Verpflegung[1].checked==true) {Ausgabe = Ausgabe + 'A';}	 if(document.forms[0].Verpflegung[2].checked==true) {Ausgabe = Ausgabe + 'B';}	 if(document.forms[0].Verpflegung[3].checked==true) {Ausgabe = Ausgabe + 'C';}	 if(document.forms[0].Verpflegung[4].checked==true) {Ausgabe = Ausgabe + 'D';} 	  	 	  	 if(document.forms[0].Wuensche[4].checked==true) {Ausgabe = Ausgabe + 'A';} 	 if(document.forms[0].Wuensche[8].checked==true) {Ausgabe = Ausgabe + 'B';} 	 if(document.forms[0].Wuensche[5].checked==true) {Ausgabe = Ausgabe + 'C';} 	 if(document.forms[0].Wuensche[10].checked==true) {Ausgabe = Ausgabe + 'D';} 	 if(document.forms[0].Wuensche[6].checked==true) {Ausgabe = Ausgabe + 'E';} 	 if(document.forms[0].Wuensche[9].checked==true) {Ausgabe = Ausgabe + 'F';} 	 if(document.forms[0].Wuensche[7].checked==true) {Ausgabe = Ausgabe + 'G';} 	 if(document.forms[0].Wuensche[2].checked==true) {Ausgabe = Ausgabe + 'H';} 	 if(document.forms[0].Wuensche[1].checked==true) {Ausgabe = Ausgabe + 'I';} 	 if(document.forms[0].Wuensche[11].checked==true) {Ausgabe = Ausgabe + 'J';} 	 if(document.forms[0].Wuensche[0].checked==true) {Ausgabe = Ausgabe + 'K';} 	 if(document.forms[0].Wuensche[3].checked==true) {Ausgabe = Ausgabe + 'M';}	  	 if(document.forms[0].UMK[7].checked==true) {Ausgabe = Ausgabe + 'P';}  	 if(document.forms[0].UMK[8].checked==true) {Ausgabe = Ausgabe + 'R';} 	 if(document.forms[0].UMK[9].checked==true) {Ausgabe = Ausgabe + 'S';} 	 if (Ausgabe.length == 5) {Ausgabe = Ausgabe + "Q";}	 var now = new Date();	 now = new Date(now.getFullYear(), now.getMonth(), now.getDate() ,12,0,0);	 	 for(count=1; count <9; count++)		{		 if(($('reisende').selectedIndex+1) > count-1)		 	{			 if ($('GTag_'+count).selectedIndex > 0 && $('GMonat_'+count).selectedIndex > 0 && $('GJahr_'+count).selectedIndex > 0)			 	{			 	 GA = new Date(($('GJahr_'+count).selectedIndex + now.getFullYear() - 100), ($('GMonat_'+count).selectedIndex -1), $('GTag_'+count).selectedIndex ,12,0,0);			 	 Reisende = Reisende + Math.floor(Date.parse(GA)/86400000+0x63E1).toString(16).toUpperCase();			 	}			 else Reisende = Reisende + '0000'			 }		} 			 document.forms[0].suche.value = "";	 document.forms[0].sindex.value = "";/* Werte f\u00FCr flexiblen Zeitraum ermitteln */	 	 if(document.forms[0].Reisezeitraum[0].checked==true)	 	{	 	 GA= new Date($('AJahr').selectedIndex + now.getFullYear(), $('AMonat').selectedIndex, $('ATag').selectedIndex+1 ,12,0,0);		 if(Math.floor(Date.parse(GA)/86400000+0x63E1) < Math.floor(now.getTime()/86400000+0x63E2))			{			   Anreise = Math.floor(now.getTime()/86400000+0x63E1).toString(16).toUpperCase();			} 		 else			{			  Anreise = Math.floor(Date.parse(GA)/86400000+0x63E1).toString(16).toUpperCase();			 }		 GB = new Date($('ZJahr').selectedIndex + now.getFullYear(), $('ZMonat').selectedIndex, $('ZTag').selectedIndex+1 ,12,0,0);		 if (Math.floor(Date.parse(GB)/86400000+0x63E1) <= parseInt('0x'+Anreise))	 	 	{	 	 	 Abreise = (parseInt('0x'+Anreise)+7).toString(16).toUpperCase();	 	 	}	 	 else	 	 	{	 	 	  Abreise = Math.floor(Date.parse(GB)/86400000+0x63E1).toString(16).toUpperCase();	 	 	}	 	  if (GB <= GA) 			{			 GB = GA + 86400000			}	 	 Abreise = Math.floor(Date.parse(GB)/86400000+0x63E1).toString(16).toUpperCase();	 	 Dauer = $('Reisedauer').selectedIndex+1;	 	 if (Dauer > (parseInt('0x'+Abreise) - parseInt('0x'+Anreise)))	 	 	{	 	 	 Abreise = (parseInt('0x'+Anreise) + Dauer).toString(16).toUpperCase();	 	 	} 	 	 Zeitraum = 'Y' + TWright('0'+Dauer.toString(16).toUpperCase(), 2) + Anreise + Abreise + 'Z'	 	 ZTyp = 'A';	 	}/* Werte f\u00FCr fixen Zeitraum ermitteln */	 if(document.forms[0].Reisezeitraum[1].checked==true)	 	{	 	 GA= new Date($('BJahr').selectedIndex + now.getFullYear(), $('BMonat').selectedIndex, $('BTag').selectedIndex+1 ,12,0,0);		 if(Math.floor(Date.parse(GA)/86400000+0x63E1) < Math.floor(now.getTime()/86400000+0x63E1))			{			  Anreise = Math.floor(now.getTime()/86400000+0x63E1).toString(16).toUpperCase();			} 		 else			{			  Anreise = Math.floor(Date.parse(GA)/86400000+0x63E1).toString(16).toUpperCase();			}		 GB = new Date($('YJahr').selectedIndex + now.getFullYear(), $('YMonat').selectedIndex, $('YTag').selectedIndex+1 ,12,0,0);		 if (Math.floor(Date.parse(GB)/86400000+0x63E1) <= parseInt('0x'+Anreise))		 	{		 	 Abreise = (parseInt('0x'+Anreise)+7).toString(16).toUpperCase();		 	}		 else		 	{		 	  Abreise = Math.floor(Date.parse(GB)/86400000+0x63E1).toString(16).toUpperCase();		 	}		 if (GB <= GA) 			{			 GB = GA + 86400000			}		  Abreise = Math.floor(Date.parse(GB)/86400000+0x63E1).toString(16).toUpperCase();		  Zeitraum = 'Y' + Anreise + Abreise + 'Z'		  ZTyp = 'B';	 	}/* Anzahl der Zimmer kodieren */	Zimmer = (Math.floor($('Zimmer').selectedIndex)+10).toString(16).toUpperCase();		 Ausgabe = Ausgabe + 'X' + Zimmer + ZTyp;	 if(document.forms[0].UMK[0].checked==false & document.forms[0].UMK[1].checked==false & document.forms[0].UMK[2].checked==false & document.forms[0].UMK[2].checked==false & document.forms[0].UMK[3].checked==false & document.forms[0].UMK[4].checked==false & document.forms[0].UMK[5].checked==false & document.forms[0].UMK[6].checked==false)	 	{	 	 Ausgabe = Ausgabe + 'ABCDEF'	 	}	 else	 	{	 	 if(document.forms[0].UMK[0].checked==true) {Ausgabe = Ausgabe + 'A';}	 	 if(document.forms[0].UMK[1].checked==true) {Ausgabe = Ausgabe + 'B';}	 	 if(document.forms[0].UMK[2].checked==true) {Ausgabe = Ausgabe + 'C';}	 	 if(document.forms[0].UMK[3].checked==true) {Ausgabe = Ausgabe + 'D';}	 	 if(document.forms[0].UMK[4].checked==true) {Ausgabe = Ausgabe + 'F';}	 	 if(document.forms[0].UMK[5].checked==true) {Ausgabe = Ausgabe + 'G';}	 	}	 if(document.forms[0].UMK[6].checked==true) {Ausgabe = Ausgabe + 'H';}	 	 Ausgabe = Ausgabe + Zeitraum + Reisende;	 	 	 if(document.forms[0].Reisezeitraum[0].checked==false & document.forms[0].Reisezeitraum[1].checked==false)	 	{	 	 fehler++;	 	 var myFx = new Fx.Tween($('Rzeitraum'));		 myFx.start('background-color', '#AB0000', '#ffd4d4');	 	}	 else	 	{	 	 $('Rzeitraum').erase('style');	 	}	 	 if(fehler > 0)	 	{	 	 var myFx = new Fx.Tween($('RZ_line'));		 myFx.start('color', '#FFF', '#F00');fehler++;	 	}	 else	 	{	 	 $('RZ_line').erase('style');	 	}	 if (fehler) 		{		$('Error').style.display = '';		 return false;				}	else		{		 $('Error').style.display = 'none';		 document.forms[0].submit();		}	 window.location.href = 'http://www.oscarreisen.de/Reiseauswahl/' + Ausgabe	}
