function addBookmark(url, title)
{
    if (window.sidebar)
        return window.sidebar.addPanel(title, url, "");
    else if ( window.external )
        return window.external.AddFavorite( url, title);
    else if (window.opera && window.print)
        return true;
    return true;
}
function ch_srch_div(sid) {
	$('#menu_srch_tours').attr('class','s_out');
	$('#menu_srch_ticket').attr('class','s_out');
	$('#menu_srch_sight').attr('class','s_out');
	$('#menu_srch_hotel').attr('class','s_out');

	$('#menu_srch_' + sid).attr('class','s_on');

	$('#frm_srch_tours').hide();
	$('#frm_srch_ticket').hide();
	$('#frm_srch_sight').hide();
	$('#frm_srch_hotel').hide();
	$('#hotkeys_srch_tours').hide();
	$('#hotkeys_srch_ticket').hide();
	$('#hotkeys_srch_sight').hide();
	$('#hotkeys_srch_hotel').hide();

	$('#frm_srch_' + sid).show();
}
function showdiv(sid) {
	$('#' + sid).show();
}
function closediv(sid) {
	$('#' + sid).hide();
}
function chkform_tours(){
	if(!chkd('datego_tours','出发日期')){return(false);}
	if(!chkf('days_tours','时间')){return(false);}
	if(!chkf('price_tours','预算')){return(false);}
	return(true);
}
function chkform_ticket(){
	if($('#Depart').val()==$('#Arrive').val()){
		alert('出发城市和到达城市不能相同');
		return(false);
	}
	return(true);
}
function showAndHide(obj,types){
	var Layer=window.document.getElementById(obj);
	switch(types){
		case "show":
		Layer.style.display="block";
		break;
		case "hide":
		Layer.style.display="none";
	}
}
function getValue(obj,str){
	var input=window.document.getElementById(obj);
	input.value=str;
}
function chkResetTop(){
	var obj = document.getElementById("key");
	obj.style.backgroundImage = '';
	obj.focus();
}

