function open_win(url, type,w_width,w_height,win_left,win_top) {
    var win_width, win_height, win_left, win_top;
    if(type == 0){
        win_width = w_width;
        win_height = w_height;
        if(win_left == 0 && win_top == 0){
            win_left = (screen.width - win_width) / 2;
            win_top = (screen.height - win_height - 75) / 3;
        }
        if(navigator.appName == "Netscape"){
            msg_window = window.open(url, 'msg_window', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+win_width+',height='+win_height+',screenX='+win_left+',screenY='+win_top);
		}else{
            msg_window = window.open(url, 'msg_window', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+win_width+',height='+win_height+',left='+win_left+',top='+win_top);
        }
	}else{
        msg_window = window.open(url, 'msg_window');
        window.msg_window.focus();
    }
}
function bookmarksite(title,url){
    if(document.all){
        window.external.AddFavorite(url, title);
    }
	if(window.sidebar){
	    window.sidebar.addPanel(title, url, "")
	}
}

function ChangeList(x){
    document.form_page.t4_id.value = x;
    document.form_page.submit();
}
function ChangeCategory(x){
    document.form_page.tc.value = x;
    document.form_page.submit();
}
function ChangeTradeLadesType(x){
    document.form_page.tt.value = x;
    document.form_page.submit();
}
function ChangeTradeLadesDate(x){
    document.form_page.td.value = x;
    document.form_page.submit();
}
function ChangeHot_C(x){
    document.form_page.t3_id.value = x;
	document.form_page.tid.value = 0;
    document.form_page.submit();
}
function ChangeHot_T(x){
    document.form_page.tid.value = x;
    document.form_page.submit();
}
