﻿<!--
var bh=document.body.scrollHeight;
function down_form(byid){
	document.getElementById("byid").value=byid;
        document.getElementById('tp_box_body').style.width=document.body.clientWidth+"px";
	document.getElementById("dl").style.top=(window.screen.availHeight-300)/2+document.documentElement.scrollTop+"px";
	if(bh>document.body.scrollHeight)
	{
		document.getElementById('tp_box_body').style.height=bh+"px";
	}
	else
	{
		document.getElementById('tp_box_body').style.height=document.body.scrollHeight+"px";
	}
        user_box_status("show");
}
/**
 * Show or hide the box form
 *
 * @param   string   status   显示(status=show)  关闭(status=hide)
 */
function user_box_status(){
    var argv = user_box_status.arguments;
    var status = '';
    if ( argv[0] ) {
        status = argv[0];
    }

    try {
        var e = document.getElementById("box_div");
        switch ( status ) {
            case "show":
                e.style.display = '';
                break;

            case "hide":
                e.style.display = 'none';
                break;

            default:
                if ( e.style.display == 'none' ) {
                    e.style.display = '';
                } else {
                    e.style.display = 'none';
                }///< if
                break;
        }///< switch
    }
    catch ( x ) {
        //window.alert( x.message );
    }
}
//-->