// JavaScript Document
function closbody(err) {
ErrHeader = "<body onload=clear('"+err+"')>";
document.write (ErrHeader);
}
function clear(err){  
// document.title="系统错误";  
//document.body.innerHTML="";  
//document.body.firstChild.data;  
//javascript:alert(document.documentElement.outerHTML);
    Source="<html>\n<head><title>系统错误</title></head>\n<body>\n<p>程序运行出错!</p>\n<p><font color=\"#FF0000\">原因："+err+"</font></p>\n</body>\n</html>";  
    document.open();  
    document.write (Source);
    document.close(); 
    document.focus(); 
}  
