document.write('<script src="/commonjs/postsend.js"></script>');
function servlet_path()
{
	var path="";
	this.A= path+"/servlet/com.deepsoft.cms.CMSServlet";				//CMSservlet路径
	this.B=path+"/servlet/com.deepsoft.system.UserManagerServlet";	//用户管理servlet路径
	this.C=path+"/servlet/com.deepsoft.system.AuthorityServlet";		//权限servlet路径
	this.templatePath=path+"/cms/template";							
	this.cmsManagerPath=path+"/cms/manager";
	this.cmsManagImg=path+"/cms/manager/image";
	this.cmsImagePath=path+"/cms/sysimg";
	this.authManagPath=path+"/system/authoritymanager";
	this.cmsEditPath=path+"/cms/manager/edit";
	this.cmsDataPath=path+"/cms/data";
	this.roleManagPath=path+"/system/rolemanager";
	this.userManagPath=path+"/system/usermanager";
	this.userImagePath=path+"/system/usermanager/image";
	this.searchPath=path+"/cms/search";
	this.statPath=path+"/cms/stat";
	this.systemManagPath=path+"/system";
}

//已对话框方式打开窗口
function callPage1(pageName){//对话框大小可调
	window.open(pageName,"","top=2000,status=yes,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes");
}

//标准错误处理
function on_error(){
	if((buffer.why.indexOf("登录")>=0||buffer.why.indexOf("权限")>=0) 
		&& buffer.why.indexOf('重新登录')<0 && buffer.why.indexOf(".Exception")<0){
		callPage1("/commonjs/login.html");
	}else if(buffer.why.indexOf("请求参数")>=0 && buffer.why.indexOf("不能为空")>=0){
		alert(buffer.why.substring(buffer.why.lastIndexOf("Exception:")+10)+"!  ");
	}else if(typeof(on_xerror)!="undefined"){
		on_xerror();
	}else
		alert(buffer.why);
}
//临时登录的回调
function logonOK(){
	if(typeof(XcurrentForm)!="undefine" && XcurrentForm!=null)
		XcurrentForm.submit();//避免提示框 //040322 临时登录改进
	else
		buffer.history.go(0);
		//buffer.document.location.reload();//ok too
}
