function doSearchTravel()
{
	var theform;
	if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {

		theform = document.__aspnetForm;

	}else {

		theform = document.forms["__aspnetForm"];
	}

	
		
	var avreseort = "";
	if (theform.txtFrom.value!= null)
	{
	avreseort = theform.txtFrom.value;
	avreseort = escape(avreseort);
	}
	
	var destort = "";
	if (theform.txtTo.value!= null)
	{
	destort = theform.txtTo.value;
	destort = escape(destort);
	}
			
		
	var today = new Date();
	
	var date_year = "";
	if(theform.txtDeparetureDate != null && theform.txtDeparetureDate.value.length >= 2) {
		date_year= "20" + theform.txtDeparetureDate.value.substring(0,2)
	}
	var date_month = "";
	if(theform.txtDeparetureDate != null && theform.txtDeparetureDate.value.length >= 4) {
		date_month= theform.txtDeparetureDate.value.substring(2,4)
	}
	var date_day = "";
	if(theform.txtDeparetureDate != null && theform.txtDeparetureDate.value.length >= 6) {
		date_day= theform.txtDeparetureDate.value.substring(4,6)
	}
	var time_hour = "";
	if(theform.txtDepartureTime != null && theform.txtDepartureTime.value.length >= 2) {
		time_hour = theform.txtDepartureTime.value.substring(0,2)
	}else {
		time_hour = today.getHours()
	}
	var time_minute = "";
	if(theform.txtDepartureTime != null && theform.txtDepartureTime.value.length >= 5) {
		time_minute = theform.txtDepartureTime.value.substring(3,5)
	}else{
		time_minute = today.getMinutes()
	}
		
	window.open("http://blgs1021/Topp/toppxml.dll/html?" +
		"start_stop_name=" + avreseort +
		"&search_type=trip" + 
		"&single_day=Y" +
		"&trip_single_day=N" +
		"&change_margin=0" +
		"&date_year=" + date_year +
		"&date_month=" + date_month +
		"&date_day=" + date_day +
		"&time_type=" + theform.selDeparture.value +
		"&time_hour=" + time_hour +
		"&time_minute=" + time_minute +
		"&dest_stop_name=" + destort,null,"encode(string),location=true,width=650,height=440,scrollbars=yes");
}
