function drawcontent(zanox_tracking_dll,zanox_tracking_param) {
var form_action = "http://www.opodo.de/otpbvpl/Tch/Page/WRProxyInterface.jsp?";
var zanox_tracking_param= zanox_tracking_param + "E";
document.writeln('<script language=\"JavaScript\" type=\"text/javascript\">');
document.writeln('rightnow = new Date();');
document.writeln('var isNS = (document.layers)? true:false;');
document.writeln('function monthval() {');
document.writeln('	var thisyear = rightnow.getFullYear();');
document.writeln('	var nextyear = thisyear + 1;');
document.writeln('	var year = -1;');
document.writeln('	var val = document.Fsearch_468x150.CM_temp.selectedIndex;');
document.writeln('	var dayOut = document.Fsearch_468x150.CD_temp.options[document.Fsearch_468x150.CD_temp.selectedIndex].text;');
document.writeln('		if (val<rightnow.getMonth()) { ');
document.writeln('	       	year = nextyear;');
document.writeln('		}else{');
document.writeln('			year = thisyear;');
document.writeln('		}');
document.writeln('		document.Fsearch_468x150.CY_temp.value = year;');
document.writeln('		var inYear = document.Fsearch_468x150.CY_temp.value;');
document.writeln('		var inMonth = document.Fsearch_468x150.CM_temp.options[document.Fsearch_468x150.CM_temp.selectedIndex].value;');
document.writeln('		var inDay = document.Fsearch_468x150.CD_temp.options[document.Fsearch_468x150.CD_temp.selectedIndex].value;');
document.writeln('		document.Fsearch_468x150.checkindate.value = escape(inMonth + \"/\" + inDay + \"/\" + inYear);	');
document.writeln('}');
document.writeln('function opodoSetDate() {');
document.writeln('	tomorrow = new Date(rightnow.getTime()+(86400000));');
document.writeln('	var firstDate = tomorrow.getDate()-1;');
document.writeln('	var secondDate = tomorrow.getMonth();');
document.writeln('	var thirdDate = rightnow.getFullYear();');
document.writeln('	document.Fsearch_468x150.CD_temp.selectedIndex = firstDate;');
document.writeln('	document.Fsearch_468x150.CM_temp.selectedIndex = secondDate;');
document.writeln('	document.Fsearch_468x150.CY_temp.value = thirdDate;');
document.writeln('	var firstDate2 = document.Fsearch_468x150.CD_temp.options[document.Fsearch_468x150.CD_temp.selectedIndex].value;');
document.writeln('	var concatDate = (secondDate + 1) + \"/\" + (firstDate2) + \"/\" + thirdDate;');
document.writeln('	document.Fsearch_468x150.checkindate.value = escape(concatDate);		');
document.writeln('}');
document.writeln('function opodoValidDate() {');
document.writeln('var firstDay = document.Fsearch_468x150.CD_temp.options[document.Fsearch_468x150.CD_temp.selectedIndex].value;');
document.writeln('var firstMonth = document.Fsearch_468x150.CM_temp.options[document.Fsearch_468x150.CM_temp.selectedIndex].value;');
document.writeln('var firstYear = document.Fsearch_468x150.CY_temp.value;');
document.writeln('var date = new Date(firstYear, firstMonth-1, firstDay);');
document.writeln('var theDate = date.getDate();');
document.writeln('var dest = document.Fsearch_468x150.city_name.value;');
document.writeln('	if (dest == 0) {');
document.writeln('		alert (\"Please enter a destination city\");');
document.writeln('		return false;');
document.writeln('			} else {');
document.writeln('			if (rightnow > date) {');
document.writeln('			alert(\"Please enter a valid date\");');
document.writeln('			return false;');
document.writeln('			}');
document.writeln('			if (theDate == null) {');
document.writeln('			alert(\"Please enter a valid date\");');
document.writeln('			return false;');
document.writeln('			} ');
document.writeln('			if (firstDay != theDate) { ');
document.writeln('			alert(\"Please enter a valid date\");');
document.writeln('			return false;			');
document.writeln('			} else { ');
document.writeln('				return true;');
document.writeln('	}	}  }');
document.writeln('if(isNS){');
document.writeln('var widthCheck=window.innerWidth;');
document.writeln('var heightCheck=window.innerHeight;');
document.writeln('window.onResize=resizeFix;');
document.writeln('}');
document.writeln('function resizeFix(){');
document.writeln('if(widthCheck!=window.innerWidth||heightCheck!=window.innerHeight)');
document.writeln('history.go(0);');
document.writeln('}');
document.writeln('var months = new Array([1,\"Jan\"],[2,\"Feb\"],[3,\"Mär\"],[4,\"Apr\"],[5,\"May\"],[6,\"Jun\"],[7,\"Jul\"],[8,\"Aug\"],[9,\"Sep\"],[10,\"Okt\"],[11,\"Nov\"],[12,\"Dez\"]);');
document.writeln('var countries = new Array([81,\"Deutschland\"],[64,\"Ägypten\"],[13,\"Australien\"],[16,\"Bahamas\"],[21,\"Belgien\"],[30,\"Brasilien\"],[33,\"Bulgarien\"],[44,\"China\"],[58,\"Dänemark\"],[73,\"Finnland\"],[74,\"Frankreich\"],[84,\"Griechenland\"],[224,\"Großbritannien\"],[97,\"Hong Kong\"],[104,\"Irland\"],[106,\"Italien\"],[108,\"Japan\"],[38,\"Kanada\"],[111,\"Kenia\"],[55,\"Kuba\"],[125,\"Luxemburg\"],[145,\"Marokko\"],[139,\"Mexiko\"],[154,\"Neuseeland\"],[151,\"Niederlande\"],[161,\"Norwegen\"],[14,\"Österreich\"],[172,\"Polen\"],[173,\"Portugal\"],[178,\"Russ. Förderation\"],[205,\"Schweden\"],[206,\"Schweiz\"],[192,\"Singapur\"],[199,\"Spanien\"],[197,\"Südafrika\"],[211,\"Thailand\"],[57,\"Tschechische Rep.\"],[217,\"Türkei\"],[98,\"Ungarn\"],[225,\"Vereinigte Staaten\"],[223,\"Vereinigte Arab. Emirate\"]);		');
document.writeln('</script>');
if (zanox_tracking_dll){
     document.writeln('<form name=\"Fsearch_468x150\" action=\"' + zanox_tracking_dll + '\" method=\"GET\" target=\"_blank\">');
	 document.writeln('<input type=\"hidden\" name=\"' + zanox_tracking_param + '\" value=\"' + form_action + '\">');
} else {	
document.writeln('<form name=\"Fsearch_468x150\" action=\"' + form_action + '\" method=\"GET\" target=\"_blank\">');
}
document.writeln('<INPUT TYPE=\"HIDDEN\" NAME=\"origurl\" VALUE=\"http://search.worldres.com/search/HotelSearch\"><INPUT type=\"hidden\" name=\"CY\" value=\"2003\"><INPUT  type=\"hidden\" name=\"CM\" value=\"04\"><INPUT type=\"hidden\" name=\"CD\" value=\"15\"><INPUT type=\"hidden\" value=\"9926\" name=\"FE\"><INPUT type=\"hidden\" value=\"596\" name=\"SI\"><INPUT type=\"hidden\" value=\"1\" name=\"LA\"><INPUT type=\"hidden\" value=\"http://opodo-uk.worldres.com\" name=\"NU\">');
document.writeln('<INPUT type=\"hidden\" value=\"\" name=\"checkindate\"><INPUT type=\"hidden\" value=\"\" name=\"CY_temp\">');
document.writeln('<table cellpadding=\"0\" cellspacing=\"0\" width=\"468\" border=\"0\">');
document.writeln('	<tr>');
document.writeln('		<td colspan=\"10\"><img src=\"http://images.opodo.com/affiliates/de/de_qs_aff_hotel/images/468x150_top.gif\" width=\"468\" height=\"28\" alt=\"\" border=\"0\"></td>');
document.writeln('	</tr>');
document.writeln('</table>');
document.writeln('<table cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#ffffff\" width=\"468\" border=\"0\">');
document.writeln('	<tr>');
document.writeln('		<td rowspan=\"15\"><img src=\"http://images.opodo.com/affiliates/global_img/red.gif\" width=\"1\" height=\"114\"></td>');
document.writeln('		<td rowspan=\"15\"><img src=\"http://images.opodo.com/affiliates/de/de_qs_aff_hotel/images/468x150_img.gif\" width=\"150\" height=\"96\" alt=\"\" border=\"0\"></td>');
document.writeln('		<td colspan=\"3\"><img src=\"http://images.opodo.com/affiliates/global_img/pixel.gif\" width=\"10\" height=\"5\"></td>');
document.writeln('		<td colspan=\"3\"><img src=\"http://images.opodo.com/affiliates/global_img/pixel.gif\" width=\"200\" height=\"5\"></td>');
document.writeln('		<td rowspan=\"15\" align=\"right\"><img src=\"http://images.opodo.com/affiliates/global_img/red.gif\" width=\"1\" height=\"114\"></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td valign=\"middle\" align=\"right\" colspan=\"2\"><font style=\"font : 10px Verdana, Arial, Helvetica, sans-serif;\" ');
document.writeln('		color=\"#000000\">Stadt</font></td>');
document.writeln('		<td><img src=\"http://images.opodo.com/affiliates/global_img/pixel.gif\" width=\"5\" height=\"1\"></td>');
document.writeln('		<td valign=\"middle\" colspan=\"3\"><INPUT maxLength=\"70\" name=\"city_name\" value=\"\" size=\"18\" ');
document.writeln('		style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000; width:160px;\"></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td valign=\"middle\" align=\"right\" colspan=\"2\"><font style=\"font:10px Verdana, Arial, Helvetica, sans-serif;\" ');
document.writeln('		color=\"#000000\">Land</font></td>');
document.writeln('		<td><img src=\"http://images.opodo.com/affiliates/global_img/pixel.gif\" width=\"5\" height=\"15\"></td>');
document.writeln('		<td colspan=\"3\" valign=\"middle\"><span ');
document.writeln('		style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000;\"><SELECT ');
document.writeln('		style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000;\" name=\"co\" ');
document.writeln('		width=\"8\"><script language=\"JavaScript\">for(var i=0;i<41;i++) document.write(\"<option value=\'\" + countries[i][0] +\"\'>\"+countries[i][1]+\"</OPTION>\");</script></SELECT></span></td>');
document.writeln('</tr>');
document.writeln('	<tr>');
document.writeln('		<td valign=\"middle\" align=\"right\" colspan=\"2\"><font style=\"font : 10px Verdana, Arial, Helvetica, sans-serif;\" ');
document.writeln('		color=\"#000000\">Anreise</font></td>');
document.writeln('		<td><img src=\"http://images.opodo.com/affiliates/global_img/pixel.gif\" width=\"5\" height=\"15\"></td>');
document.writeln('		<td colspan=\"3\" valign=\"middle\"><span ');
document.writeln('		style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000;\"><SELECT ');
document.writeln('		style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000;\" name=\"CD_temp\" onchange=\"javascript:monthval();\"><script language=\"JavaScript\">for (d=1;d<32;d++) document.write(\"<option value=\\\"\"+d+\"\\\">\"+d+\"</option>\");</script></SELECT></span><img');
document.writeln('		src=\"http://images.opodo.com/affiliates/global_img/pixel.gif\" width=\"2\" height=\"1\"><span ');
document.writeln('		style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000;\"><SELECT onchange=\"javascript:monthval();\"');
document.writeln('		style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000;\" ');
document.writeln('		name=\"CM_temp\"><script language=\"JavaScript\">for(var i=0;i<12;i++) document.write(\"<option value=\'\" + months[i][0] + \"\'>\"+months[i][1]+\"</OPTION>\");</script></SELECT></span></td>');
document.writeln('	</tr>');
document.writeln('	<tr>');
document.writeln('		<td valign=\"middle\" align=\"right\" colspan=\"2\"><font style=\"font : 10px Verdana, Arial, Helvetica, sans-serif;\" ');
document.writeln('		color=\"#000000\">Nächte</font></td>');
document.writeln('		<td><img src=\"http://images.opodo.com/affiliates/global_img/pixel.gif\" width=\"10\" height=\"1\"></td>');
document.writeln('		<td valign=\"middle\"><span style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000;\"><SELECT ');
document.writeln('		style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: normal; color: #000000;\" ');
document.writeln('		name=\"numofnights\"><script language=\"JavaScript\">for (d=1;d<100;d++) document.write(\"<option value=\\\"\"+d+\"\\\">\"+d+\"</option>\");</script></SELECT></span></td>');
document.writeln('<td align=\"right\"><img src=\"http://images.opodo.com/affiliates/global_img/pixel.gif\" width=\"50\" height=\"1\"><A HREF=\"javascript:document.Fsearch_468x150.submit()\" onclick=\"return opodoValidDate();\"><IMG SRC=\"http://images.worldres.com/site_images/opodo_uk/search_button_de.gif\" WIDTH=\"55\" HEIGHT=\"18\" border=\"0\"></A></td>');
document.writeln('		<td><img src=\"http://images.opodo.com/affiliates/global_img/pixel.gif\" width=\"10\" height=\"1\"></td>');
document.writeln('	</tr>');
document.writeln('</table>');
document.writeln('<table border=\"0\" bgcolor=\"#ffffff\" cellpadding=\"0\" cellspacing=\"0\">');
document.writeln('	<tr>');
document.writeln('		<td valign=\"top\"><img src=\"http://images.opodo.com/affiliates/global_img/lbot.gif\" width=\"7\" height=\"8\" alt=\"\" border=\"0\"></td>');
document.writeln('		<td valign=\"bottom\"><img src=\"http://images.opodo.com/affiliates/global_img/red.gif\" width=\"454\" height=\"1\"></td>');
document.writeln('		<td valign=\"top\"><img src=\"http://images.opodo.com/affiliates/global_img/rbot.gif\" width=\"7\" height=\"8\" alt=\"\" border=\"0\"></td>');
document.writeln('	</tr>');
document.writeln('</form>');
document.writeln('</table>');
document.writeln('<script language=\"JavaScript\" type=\"text/javascript\">');
document.writeln('opodoSetDate();');
document.writeln('if((navigator.userAgent.indexOf(\"Netscape\") != -1) &&');
document.writeln('   (parseInt(navigator.appVersion) != 5.0)){');
document.writeln('resizeFix();');
document.writeln('}</script>');
}
