function write_footer_mid(){
	
	var objTime = new Date();
	
	var intDay = objTime.getDate();
	document.search_form.day.selectedIndex = intDay-1;
	
	var intMonth = objTime.getMonth();
	document.search_form.month.selectedIndex = intMonth;
	
	//var strData = "<ul>";
	//strData += "<li><a href=\"http://www.comparior.com/about\" title=\"About us\">About us</a>|</li>";
	//strData += "<li><a href=\"http://www.comparior.com/contact\" title=\"Contact us\">Contact us</a>|</li>";
	//strData += "<li><a href=\"http://www.comparior.com/terms_of_use\" title=\"Terms of use\">Terms of use</a>|</li>";
	//strData += "<li><a href=\"http://www.comparior.com/affiliate\" title=\"Affiliate Programme\">Affiliate Programme</a>|</li>";
	//strData += "<li><a href=\"http://www.comparior.com/press\" title=\"Press\">Press</a>|</li>";

	//strData += "<li><a href=\"http://www.comparior.com/faq\">FAQ</a>|</li>";
	//strData += "<li><a href=\"http://www.comparior.com/links\" title=\"Useful links\">Useful links</a>|</li>";
	//strData += "<li><a href=\"http://www.comparior.com/sitemap.php#en\" title=\"Site map\">Site map</a></li></ul>";

	//var strID = document.getElementById("footer_mid");
	//strID.innerHTML = strData;
	
	//strData = "<ul><li class=\"us\"><a href=\"#\"></a></li><li class=\"gb\"><a href=\"#\"></a></li><li class=\"it\"><a href=\"#\"></a></li><li class=\"de\"><a href=\"#\"></a></li><li class=\"fr\"><a href=\"#\"></a></li><li class=\"sp\"><a href=\"#\"></a></li></ul>";	
	//strID = document.getElementById("flags");
	//strID.innerHTML = strData;
		
	//document.getElementById("copyright").innerText = "Copyright &copy; Comparior 2007. All rights reserved.";
	
}

function CreateBookmarkLink()
	{
		var title = "Compare Hotel room rates worldwide ? Choose and book your cheapest hotel room rate. Compare, book on-line and save money!";//document.title;
		var url = "http://www.comparior.com";//location.href;
	
		if (window.sidebar)
		{ // Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
		}
		else if(window.external)
		{ // IE Favorite
			window.external.AddFavorite( url, title);
		}
		else if(window.opera && window.print)
		{ // Opera Hotlist
			return true;
		}
}

function setNights(){
	var El = document.search_form.day;
	var El1 = document.search_form.day1;
	var intDifDays = El1.options[El1.selectedIndex].value - El.options[El.selectedIndex].value;	
	document.getElementById("nights").value = intDifDays;								
}

function toogleHotel(obj){
//hotelTowrite toogleCheck
//				if(obj.checked){					
//					document.getElementById("hotel1").value = document.getElementById("hotelTowrite").value;
//				}else{
//					document.getElementById("hotel1").value = " ";
//					}
	var strHotel = document.getElementById("hotelTowrite").value;				
	//document.getElementById("hotelTowrite").value = strHotel;
	if(obj.checked){
		
		document.getElementById("hotel1").value = " ";					
	}else{
		
		document.getElementById("hotel1").value = strHotel;
	}
}
			
function getDestination(){
				//var strDestination = parent.document.getElementById("hiddenDestination").value;				
				//document.getElementById("destination").value = strDestination;
				//hiddenHotel
				//var strHotel = parent.document.getElementById("hiddenHotel").value;				
				//document.getElementById("hotelTowrite").value = strHotel;

}
		
function returnDestination(){
				//document.write(parent.getElementById("hiddenDestination").value);
				//hiddenForm
				//document.write(parent.hiddenForm.hiddenDestination.value);
				//document.write(obj.ownerDocument.parent.document.getElementById("hiddenDestination").value);
}
			

	
