<!--
function popitup(url,h,w)
{
	newwindow=window.open(url,'name','height='+h+',width='+w);
	if (window.focus) {newwindow.focus()}
	return false;
	
}
	function OnChange()
				{
					box = document.forms[0].page_id;
					destination = box.options[box.selectedIndex].value;
					if (destination && destination !=0 ) {
						location.href = destination;
					}
				}
						function OnClick(myValue)
				{
				//alert('NAME: '+myValue);
				//open new page for ascot
				returnval = false;
				var urlstring = '';
				var dateValue = '';
				
				yyyy1 = Form1.yearPart.value; 
				mm1 = Form1.monthPart.value; 
				dd1 = Form1.dayPart.value; 
				dur = Form1.durationPart.value; 
				//alert (yyyy1+' '+mm1+' '+dd1);
				var arrivalDate = new Date();
					arrivalDate.setFullYear(yyyy1,mm1,dd1);
				var departureDate=new Date();
				//var theDay = new Date();
				//theDay.setDate(dur);
				
				//alert ('theDay : '+theDay); 
				var dateValue = arrivalDate.getDate()+parseInt(dur); 
					//alert ('dateValue: '+dateValue);
					departureDate.setDate(dateValue);
				yyyy2 =  departureDate.getFullYear();
				mm2 =  departureDate.getMonth()+1;
				dd2 =  departureDate.getDate();
				
				if (mm1<10){
					mm1 ='0'+mm1;
				}
				if (dd1<10){
					dd1 = '0'+dd1;
				}
				datein = yyyy1+'-'+mm1+'-'+dd1;
				if (mm2<10){
					mm2 ='0'+mm2;
				}
				if (dd2<10){
					dd2 = '0'+dd2;
				}
				dateout = yyyy2+'-'+mm2+'-'+dd2;
				//dateout = yyyy-mm-dd
					urlstring = 'pid=2129&datein='+datein+'&dateout='+dateout;
					//alert('urlstring '+ urlstring);
					//document.Form1.submit();			// Submit the page
					returnval = true;
						document.Form1.action = "http://www.seekom.com/accommodation/Property.php?op=bluestar&"+urlstring;
						document.Form1.target = "_blank";	// Open in a new window
					//alert('document.Form1.action: '+ document.Form1.action);
					
					document.Form1.submit();
					
				}
		
// -->
