//<script>
function cleartown() {
	document.search.ventown.value="";
}
function clearregion() {
	document.search.region.selectedIndex=0;
}
function clearartist() {
	document.search.artist.value="";
}
function clearmtype() {
	document.search.rextype.selectedIndex=0;
}
function checkdate() {
	var d = document
	
	var fDate = d.search.datefrom.value
	var tDate = d.search.dateto.value
	
	var thisDate = new Date();
	var thisDay = thisDate.getDate();
	var thisMonth = thisDate.getMonth() + 1;
	var thisYear = thisDate.getFullYear();

  	if(thisDay<10) thisDay = "0" + thisDay
  	if(thisMonth<10) thisMonth= "0" + thisMonth 
  	if(thisYear<1000) thisYear+=1900

	if ((fDate == "dd/mm/yyyy")&&(tDate != "dd/mm/yyyy")){
	  d.search.datefrom.value = thisDay + "/" + thisMonth + "/" + thisYear 
	}
	
	if ((tDate == "dd/mm/yyyy")&&(fDate != "dd/mm/yyyy")){
	   d.search.dateto.value = "31/12/2099";
	}
	
	return true

}

function formHandler(form){
var URL = form.site.options[form.site.selectedIndex].value;
window.location.href = URL;
}
//</script>