<script type="text/javascript">
jQuery(document).ready(function() {
 jQuery.datepicker.setDefaults({ dateFormat: 'dd-mm-yy'});
    jQuery("#txtFromDate").datepicker({ 
        minDate: 0,
        maxDate: "+365D",
        numberOfMonths: 1,
        onSelect: function(selected) {
    	var date = jQuery(this).datepicker('getDate');
         if(date){
            date.setDate(date.getDate() + 1);
          }
          jQuery("#txtToDate").datepicker("option","minDate", date)
        } 
    });
 
    jQuery("#txtToDate").datepicker({ 
        minDate: 0,
        maxDate:"+365D",
        numberOfMonths: 1,
        onSelect: function(selected) {
          jQuery("#txtFromDate").datepicker("option","maxDate", selected)
        }
    });  
 jQuery("#datepickerImage").click(function() { 
   jQuery("#txtFromDate").datepicker("show");
  });
 jQuery("#datepickerImage1").click(function() { 
    jQuery("#txtToDate").datepicker("show");
  });
  
  jQuery('#btn_room_search').click(function() { 		
	  	if(jQuery('#txtFromDate').val()==""){
	  		alert('Please Enter Check-In Date'); 
	  		return false;
	 	}else if(jQuery('#txtToDate').val()==""){
	  		alert('Please Enter Check-Out Date'); 
	  		return false;
	  	} else {
	  		return true;
	 	}	  
	});	
});
</script>

<!--
<form id="formElem" name="formElem" action="" method="post">
	<table cellpadding="0" cellspacing="7" border="0" align="left" style="text-align:left;">
		<tr>
			<td><strong>:</strong></td>
			<td>
				<input id="txtFromDate" name="check_in" style="width:90px" type="text" readonly="readonly" AUTOCOMPLETE=OFF />
				<span style="padding-left:3px;">
					<a id="datepickerImage" href="javascript:;">
						<img src="/bsihotelbooking-teresita/front/images/month.png" height="16px" width="16px" style=" margin-bottom:-4px;" border="0" />
					</a>
				</span>
			</td>
		</tr>
		
		<tr>
			<td><strong>:</strong></td>
			<td>
				<input id="txtToDate" name="check_out" style="width:90px" type="text" readonly="readonly" AUTOCOMPLETE=OFF />
				<span style="padding-left:3px;">
					<a id="datepickerImage1" href="javascript:;">
						<img src="/bsihotelbooking-teresita/front/images/month.png" height="18px" width="18px" style=" margin-bottom:-4px;" border="0" />
					</a>
				</span>
			</td>
		</tr>
		
		<tr>
			<td><strong>:</strong></td>
			<td></td>
		</tr>
		
				
		<tr>
			<td></td>
			<td><button id="btn_room_search" type="submit"></button></td>
		</tr>
	</table>
</form>
-->

<div class="content row large">
	<div class="columns">
		
		<div class="zaproszenie-kontakt">
			
			<form id="formElem" name="formElem" action="https://www.teresita.pl/en/hotel/reservation/" method="POST">
				<div class="row small">
					<div class="small-offset-1 small-5 medium-2 columns">
						<div class="row collapse">
							<label for="txtFromDate">Check-in:</label>
							
							<div class="small-9 columns">
								<input type="text" autocomplete="off" readonly="readonly" name="check_in" id="txtFromDate" placeholder="30-01-2016" value="">
							</div>
							
							<div class="small-3 columns">
								<a id="datepickerImage" href="javascript:;"><span class="postfix"></span></a>
							</div>
						</div>
					</div>
					
					<div class="small-5 medium-2 columns">
						<div class="row collapse">
							<label for="txtToDate">Check-out:</label>
							
							<div class="small-9 columns">
								<input type="text" autocomplete="off" readonly="readonly" name="check_out" id="txtToDate" placeholder="30-01-2016" value="">
							</div>
							
							<div class="small-3 columns">
								<a id="datepickerImage1" href="javascript:;"><span class="postfix"></span></a>
							</div>
						</div>
					</div>
					
					<div class="small-offset-1 small-5 medium-offset-0 medium-2 columns end">
						<label for="capacity">Nr of persons:</label>
						<select id="capacity" name="capacity"></select>					</div>
					
					<div class="small-5 medium-2 columns">
											</div>
					
					<div class="small-11 medium-2 columns end">
						<button type="submit" class="button creamy">Book now</button>
					</div>
				</div>
			</form>
			
			<div class="bottom"></div>
		</div>
		<!-- /zaproszenie-kontakt -->
		
	</div>
</div>
{"id":68,"date":"2015-07-10T18:58:49","date_gmt":"2015-07-10T16:58:49","guid":{"rendered":"http:\/\/teresita.sugar3.pl\/en\/?page_id=68"},"modified":"2015-08-20T18:46:57","modified_gmt":"2015-08-20T16:46:57","slug":"reservation","status":"publish","type":"page","link":"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/","title":{"rendered":"Reservation"},"content":{"rendered":"\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":66,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/rezerwacja.php","meta":{"footnotes":""},"class_list":["post-68","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Reservation - TERESITA - Hotel i Restauracja<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Reservation - TERESITA - Hotel i Restauracja\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/\" \/>\n<meta property=\"og:site_name\" content=\"TERESITA - Hotel i Restauracja\" \/>\n<meta property=\"article:modified_time\" content=\"2015-08-20T16:46:57+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/\",\"url\":\"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/\",\"name\":\"Reservation - TERESITA - Hotel i Restauracja\",\"isPartOf\":{\"@id\":\"https:\/\/www.teresita.pl\/#website\"},\"datePublished\":\"2015-07-10T16:58:49+00:00\",\"dateModified\":\"2015-08-20T16:46:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Strona g\u0142\u00f3wna\",\"item\":\"https:\/\/www.teresita.pl\/en\/home\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hotel\",\"item\":\"https:\/\/www.teresita.pl\/en\/hotel\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Reservation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.teresita.pl\/#website\",\"url\":\"https:\/\/www.teresita.pl\/\",\"name\":\"TERESITA - Hotel i Restauracja\",\"description\":\"Teresita - Hotel i Restauracja | tani hotel krak\u00f3w, hotel restauracja wielicka, hotel restauracja autostrada a4\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.teresita.pl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Reservation - TERESITA - Hotel i Restauracja","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/","og_locale":"en_US","og_type":"article","og_title":"Reservation - TERESITA - Hotel i Restauracja","og_url":"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/","og_site_name":"TERESITA - Hotel i Restauracja","article_modified_time":"2015-08-20T16:46:57+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/","url":"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/","name":"Reservation - TERESITA - Hotel i Restauracja","isPartOf":{"@id":"https:\/\/www.teresita.pl\/#website"},"datePublished":"2015-07-10T16:58:49+00:00","dateModified":"2015-08-20T16:46:57+00:00","breadcrumb":{"@id":"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.teresita.pl\/en\/hotel\/reservation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.teresita.pl\/en\/hotel\/reservation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Strona g\u0142\u00f3wna","item":"https:\/\/www.teresita.pl\/en\/home\/"},{"@type":"ListItem","position":2,"name":"Hotel","item":"https:\/\/www.teresita.pl\/en\/hotel\/"},{"@type":"ListItem","position":3,"name":"Reservation"}]},{"@type":"WebSite","@id":"https:\/\/www.teresita.pl\/#website","url":"https:\/\/www.teresita.pl\/","name":"TERESITA - Hotel i Restauracja","description":"Teresita - Hotel i Restauracja | tani hotel krak\u00f3w, hotel restauracja wielicka, hotel restauracja autostrada a4","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.teresita.pl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.teresita.pl\/en\/wp-json\/wp\/v2\/pages\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.teresita.pl\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.teresita.pl\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.teresita.pl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.teresita.pl\/en\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":4,"href":"https:\/\/www.teresita.pl\/en\/wp-json\/wp\/v2\/pages\/68\/revisions"}],"predecessor-version":[{"id":169,"href":"https:\/\/www.teresita.pl\/en\/wp-json\/wp\/v2\/pages\/68\/revisions\/169"}],"up":[{"embeddable":true,"href":"https:\/\/www.teresita.pl\/en\/wp-json\/wp\/v2\/pages\/66"}],"wp:attachment":[{"href":"https:\/\/www.teresita.pl\/en\/wp-json\/wp\/v2\/media?parent=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}