document.writeln("<form name=\"roomrate_form\" target=\"_blank\" action=\"RoomRateProcess.asp\" method=\"post\" onsubmit=\"return redirect();pageTracker._linkByPost(this)\" style=\"display:inline;\">");
document.writeln("<input type=\"hidden\" name=\"property\" value=\"\">");
document.writeln("<input type=\"hidden\" name=\"guests\" value=\"\">");
document.writeln("<input type=\"hidden\" name=\"dest\" id=\"dest\" value=\"\">");
document.writeln("<input type=\"hidden\" name=\"LANGUAGE\" value=\"en\">");

document.writeln("<table align=\"center\" width=\"212\" height=\"313\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\" bgcolor=\"#FF0000\">");
document.writeln("<tr>");
document.writeln("<td bgcolor=\"#4D4D4D\" valign=\"top\">");

	document.writeln("<table align=\"center\" width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#000000\" bordercolor=\"#646464\" style=\"border-width:1px; border-collapse:collapse\">");
	document.writeln("<tr>");
	document.writeln("<td background=\"images/booking_frame_bg.jpg\" valign=\"top\" align=\"center\" style=\"background-repeat:repeat-x\">");

		document.writeln("<table width=\"169\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
		document.writeln("<tr>");
		document.writeln("<td height=\"10\"><img src=\"images/spacer.gif\" width=\"1\" height=\"10\" border=\"0\"></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		//document.writeln("<td height=\"19\"><img src=\"images/rooms_rates_header.jpg\" width=\"169\" height=\"19\" border=\"0\" usemap=\"#Map\"></td>");		
    document.writeln("<td height=\"19\" align=\"left\"><span style=\"font-family:Verdana;font-size:16px;font-weight:bold;color:#FFFFFF\">Oda ve Fiyat Bilgisi</span></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td height=\"10\"><img src=\"images/spacer.gif\" width=\"1\" height=\"10\" border=\"0\"></td>");
		document.writeln("</tr>");
		document.writeln("</table>");


		document.writeln("<table width=\"169\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"text1\">");

		// Hotel Destinations
		
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" align=\"left\"><strong>Destinasyon</strong></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" height=\"2\"><img src=\"images/spacer.gif\" width=\"1\" height=\"2\" border=\"0\"></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" align=\"left\"><select name=\"hotel\" id=\"hotel\" style=\"width:160px\" class=\"textbox3\">");

		document.writeln("<option value=\"\">Otel Se&#231;iniz</option>");
		document.writeln("<option value=\"SAK\" selected>Swissôtel Ankara</option>");
		document.writeln("<option value=\"SIS\">Swissôtel Istanbul - The Bosphorus</option>");
		document.writeln("<option value=\"SIZ\">Swissôtel Grand Efes</option>");
		document.writeln("<option value=\"SGO\">Swissôtel Göcek Marina Resort</option>");
		
		document.writeln("</select></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" height=\"10\"><img src=\"images/spacer.gif\" width=\"1\" height=\"10\" border=\"0\"></td>");
		document.writeln("</tr>");

		// Arrival 
		
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" align=\"left\"><strong>Giriş</strong></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" height=\"2\" ><img src=\"images/spacer.gif\" width=\"1\" height=\"2\" border=\"0\"></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" align=\"left\">");
		document.writeln("<INPUT TYPE=\"text\" NAME=\"arrival_date\" VALUE=\"\" style=\"width:100px\" class=\"textbox3\" onBlur=\"javascript:checkarrivedate();\">");

							d = new Date()
							arrive_day = d.getDate();
			
							d1 = new Date()
							with (d1) setDate(getDate()-1)
							arrive_day1 = d1.getDate();
							
							if (arrive_day < 10){
								mystring1 = new String("0")
								mystring2 = new String(arrive_day)
								arrive_day = mystring1.concat(mystring2);
							}
							
							arrive_mth = d.getMonth()+1;
							arrive_mth1 = d1.getMonth()+1;
							
							if (arrive_mth < 10){
								mystring1 = new String("0")
								mystring2 = new String(arrive_mth)
								arrive_mth = mystring1.concat(mystring2);
							}
							
							arrive_year = d.getFullYear();
							arrive_year1 = d1.getFullYear();
							arrive_date = arrive_day+'/'+arrive_mth+'/'+arrive_year;
							arrive_date1 = arrive_mth1+'/'+arrive_day1+'/'+arrive_year1;
							document.roomrate_form.arrival_date.value = arrive_date;
										
							var cal = new CalendarPopup("Caldiv1");
							cal.setCssPrefix("TEST");
							cal.addDisabledDates(null, arrive_date1);
							cal.offsetX = -78;
							cal.offsetY = 18;

		document.writeln("<A HREF=\"#\" onClick=\"cal.select(document.forms['roomrate_form'].arrival_date,'anchor1','dd/MM/yyyy'); return false;\" NAME=\"anchor1\" ID=\"anchor1\"><img src=\"images/calendar.gif\" border=\"0\" align=\"absmiddle\"></A>"); 				
		document.writeln("</td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" height=\"10\" ><img src=\"images/spacer.gif\" width=\"1\" height=\"10\" border=\"0\"></td>");
		document.writeln("</tr>");

		// Departure

		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" align=\"left\"><strong>Çıkış</strong></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" height=\"2\" ><img src=\"images/spacer.gif\" width=\"1\" height=\"2\" border=\"0\"></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" align=\"left\">");
		document.writeln("<INPUT TYPE=\"text\" NAME=\"depart_date\" VALUE=\"\" style=\"width:100px\" class=\"textbox3\" onBlur=\"javascript:checkdepartdate();\">");

							d2 = new Date()
							with (d2) setDate(getDate()+1)
							depart_day = d2.getDate();
							
							d3 = new Date()
							with (d3) setDate(getDate()-1)
							depart_day1 = d3.getDate();
							
							if (depart_day < 10){
								mystring1 = new String("0")
								mystring2 = new String(depart_day)
								depart_day = mystring1.concat(mystring2);
							}
			
							depart_mth = d2.getMonth()+1;
							depart_mth1 = d3.getMonth()+1;
							
							if (depart_mth < 10){
								mystring1 = new String("0")
								mystring2 = new String(depart_mth)
								depart_mth = mystring1.concat(mystring2);
							}
							
							depart_year = d2.getFullYear();
							depart_year1 = d3.getFullYear();
							depart_date = depart_day+'/'+depart_mth+'/'+depart_year;
							depart_date1 = depart_mth1+'/'+depart_day1+'/'+depart_year1;
							
							document.roomrate_form.depart_date.value = depart_date;

							var cal1 = new CalendarPopup("Caldiv1");
							cal1.setCssPrefix("TEST");
							cal1.addDisabledDates(null, depart_date1);
							cal1.offsetX = -78;
							cal1.offsetY = 18;

		document.writeln("<A HREF=\"#\" onClick=\"cal1.select(document.forms['roomrate_form'].depart_date,'anchor2','dd/MM/yyyy',(document.forms['roomrate_form'].depart_date.value=='')?document.forms['roomrate_form'].arrival_date.value:null); return false;\" NAME=\"anchor2\" ID=\"anchor2\"><img src=\"images/calendar.gif\" border=\"0\" align=\"absmiddle\"></A>");
		document.writeln("</td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" height=\"10\"><img src=\"images/spacer.gif\" width=\"1\" height=\"10\" border=\"0\"></td>");
		document.writeln("</tr>");

		// Nights
		
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" align=\"left\"><strong>Geceleme</strong></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" height=\"2\"><img src=\"images/spacer.gif\" width=\"1\" height=\"2\" border=\"0\"></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" align=\"left\">");
		document.writeln("<table width=\"100\"  border=\"1\" cellspacing=\"0\" cellpadding=\"2\" bordercolor=\"#646464\" style=\"border-width:1px; border-collapse:collapse\">");
		document.writeln("<tr>");
		document.writeln("<td align=\"left\"><span ID=\"noOfnites\" class=\"text3\"></span></td>");
		document.writeln("</tr>");
		document.writeln("</table>");
		document.writeln("</td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td height=\"10\" colspan=\"2\"><img src=\"images/spacer.gif\" width=\"1\" height=\"10\" border=\"0\"></td>");
		document.writeln("</tr>");

		// Adults and Children
		
		document.writeln("<tr>");
		document.writeln("<td align=\"left\"><strong>Yetişkin</strong></td>");
		document.writeln("<td align=\"left\"><strong>Çocuk (0-12yaş)</strong></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td height=\"2\" colspan=\"2\"><img src=\"images/spacer.gif\" width=\"1\" height=\"2\" border=\"0\"></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td align=\"left\" width=\"30%\">");
		document.writeln("<select name=\"noguests\" class=\"textbox3\">");
		document.writeln("<option value=\"1\">1</option>");
		document.writeln("<option value=\"2\">2</option>");
		document.writeln("<option value=\"3\">3</option>");
		document.writeln("<option value=\"4\">4</option>");
		document.writeln("</select>");			
		document.writeln("</td>");
		document.writeln("<td align=\"left\" width=\"70%\">");
		document.writeln("<select name=\"children\" class=\"textbox3\">");
		document.writeln("<option value=\"0\">0</option>");
		document.writeln("<option value=\"1\">1</option>");
		document.writeln("<option value=\"2\">2</option>");
		document.writeln("</select>");			
		document.writeln("</td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
		document.writeln("<td height=\"20\" colspan=\"2\"><img src=\"images/spacer.gif\" width=\"1\" height=\"20\" border=\"0\"></td>");
		document.writeln("</tr>");

		// Submit Button
		
		document.writeln("<tr>");
		document.writeln("<td colspan=\"2\" align=\"center\">");
		document.writeln("<input name=\"rm_submit\" id=\"rm_submit\" type=\"image\" src=\"images/check-availability.jpg\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('rm_submit','','images/check-availability-ro.jpg',1)\">");
		document.writeln("</td>");
		document.writeln("</tr>");

		document.writeln("<tr>");
		document.writeln("<td height=\""+height1+"\" colspan=\"2\"><img src=\"/Swissotel.com/EN/images/space.gif\" height=\""+height1+"\" width=\"1\" border=\"0\" align=\"absmiddle\"></td>");
		document.writeln("</tr>");
		document.writeln("</table>");

	document.writeln("</td>");
	document.writeln("</tr>");
	document.writeln("</table>");

document.writeln("</td>");
document.writeln("</tr>");
document.writeln("</table>");

document.writeln("</form>");
