function enlarge() {
		
		var page = document.getElementById('page');
		var left = document.getElementById('left');	
		var grey = document.getElementById('grey');		
		var search = document.getElementById('search');		
		var orange = document.getElementById('orange');			

		if (left) {
			if(left.style) left.style.height = '';								
			if (page.offsetHeight > left.offsetHeight) {								
				if(left.style) left.style.height = (page.offsetHeight-21)+'px';								
			} else {	
				if (search) {
				var suma = search.offsetHeight+orange.offsetHeight;									
				if(grey.style) grey.style.height = (left.offsetHeight-suma-32)+'px';							
				} else {
					if(grey.style) grey.style.height = (left.offsetHeight-orange.offsetHeight-29)+'px';
				}
			}		
		}
	}

function myConfirm(question,link){
	if(confirm(question)){
		document.location.href=link;
	}
}

function quickSearch(form){
	countrySelected = getSelectVal(form.elements['country']);
	countryId 	= '';
	countryLink = '';
	url 		= '?m=Search';
	if(countrySelected){
		tab = countrySelected.split("#");
		countryId 	= tab[0];
		countryLink = tab[1];
	}
	var dateFrom = getSelectVal(form.elements['dateFrom']);
	var dateTo = getSelectVal(form.elements['dateTo']);
	if(dateFrom!=0 || dateTo!=0) {
		url = '?m=Search&amp;dateFrom='+dateFrom+'&amp;dateTo='+dateTo;
		if(countryId) url += '&country='+countryId;
	}else{
		if(countryLink){
			url = countryLink;
		}
	}
	document.location.href=url;
}

function getSelectVal(select){
	return select.options[select.selectedIndex].value;
}
