//================================================================================//
//	reload search form on default page by forms search type
//================================================================================//

function open_search_form(obj_Select){
	var str_URLDefault = '/tur.asp?searchtype=';
	var str_Searchtype = obj_Select.options[obj_Select.options.selectedIndex].value.Trim();
	
	if (str_Searchtype != ''){
		str_URLDefault += str_Searchtype;
	}else{
		str_URLDefault += 'hotelturkey';
	}
	
	document.location = str_URLDefault;
}
function open_search_form_ana(obj_Select){
	var str_URLDefault = '/?tur=1&searchtype=';
	var str_Searchtype = obj_Select.options[obj_Select.options.selectedIndex].value.Trim();
	
	if (str_Searchtype != ''){
		str_URLDefault += str_Searchtype;
	}else{
		str_URLDefault += 'hotelturkey';
	}
	
	document.location = str_URLDefault;
}

//================================================================================//
//	reload search form on english default page by forms search type
//================================================================================//

function open_search_form_en(obj_Select){
	var str_URLDefault = '/en/default.asp?searchtype=';
	var str_Searchtype = obj_Select.options[obj_Select.options.selectedIndex].value.Trim();
	
	if (str_Searchtype != ''){
		str_URLDefault += str_Searchtype;
	}else{
		str_URLDefault += 'hotelturkey';
	}
	
	document.location = str_URLDefault;
}

function make_selected(obj_Form, n_Selected){
	obj_Form.location[n_Selected].checked = true;
}

function make_selected_tour(obj_Form, n_Selected){
	if(n_Selected==0){
		obj_Form.location.checked = true;
	}else{
		obj_Form.location[n_Selected].checked = true;
	}
}

//================================================================================//
//	reload search form on external site
//================================================================================//

function xopen_search_form(str_URL){
	document.location = str_URL;
}

//================================================================================//
//	reset text type form field
//================================================================================//

function reset_form_field(obj_FormField){
	obj_FormField.value = '';
	obj_FormField.focus();
}

//================================================================================//
//	redirect to agency special page
//================================================================================//

function gotoagent(objForm){
	if (objForm){objForm.submit();}
}