	//取浏览器宽、高等
function getDirect ()
{
	var ob = {};
	
	ob.width = document.offsetWidth || document.documentElement.clientWidth || document.body.clientWidth;
	ob.height = document.offsetHeight || document.documentElement.clientHeight || document.body.clientHeight;
	
	ob.scroll_left = window.scrollX || document.documentElement.scrollLeft;
	ob.scroll_top = window.scrollY || document.documentElement.scrollTop;
	
	return ob;
}



function popup_comment (em,e)
{
	    var box = document.getElementById(em);

		var direct = getDirect();
		box.style.top = (direct.height - box.offsetHeight) / 2 + direct.scroll_top + 'px';
		box.style.left = (direct.width - box.offsetWidth) / 2 + (direct.scroll_left-180) + 'px';
		box.style.display = "block";

}

/**
* 选择全部
*/
function CheckAll(form) {

  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.name != 'SELECTALL')
       e.checked = form.SELECTALL.checked;
    }
  }
/**
* 确认删除
*/
function del_confirm(){
	if(confirm("真的要删除吗?")){
		return ;
	}else{
		return false;
	}
}