function trim(obj){
return obj.replace(/(^\s*)|(\s*$)/g, "");
}

function ConfirmDel(form){
    for (var i=0;i<form.elements.length;i++){
        if(form.elements(i).type=='checkbox' && form.elements(i).checked)
		{if (confirm("你确定要删除吗? 否刚请取消!"))
		{return true;}
		return false;}}
        window.alert('你没有选择要删除的对象!');
        return false;
}

//onMouseOver
function onBorderColor(td)
{
	td.style.border='';
	td.style.backgroundColor='#EEEADE';
	td.style.color='#3D4F7A';
}

//onMouseOut
function offBorderColor(td)
{
	td.style.border='';
	td.style.backgroundColor='';
	td.style.color='';
}
