
	var AE ={};
	AE.widget=TB.widget;
	AE.browse = TB.bom;
	AE.bom = TB.bom;
	AE.common = TB.common;
	AE.dom = TB.dom;
	
	AE.namespace = function() {
    var a=arguments, o=null, i, j, d;
    for (i=0; i<a.length; i=i+1) {
        d=a[i].split(".");
        o=AE;
        for (j=(d[0] == "AE") ? 1 : 0; j<d.length; j=j+1) {
            o[d[j]]=o[d[j]] || {};
            o=o[d[j]];
        }
    }
    return o;
};
	
	
/**
  * 复制配置属性给某对象，如果对象已存在该配置，不进行覆盖
  * @param {Object} obj 目标对象 
  * @param {Object} config 包含属性/参数 对象
  */ 
AE.cpAttribute = function (obj, config) { 
     if(obj && config && typeof config == 'object'){
         for(var p in config) {
    if (!YAHOO.lang.hasOwnProperty(obj, p))
              obj[p] = config[p];
   }
 }
     return obj;
 }
 
	if(!IL){
	var IL={
	ok:"Ok",
	cancel:"Cancel"
	};
}
	//language end
var YL=YAHOO.lang;
var YUD = YAHOO.util.Dom;
var YUE = YAHOO.util.Event;
	YUD.setCookie = TB.bom.setCookie;
	YUD.getCookie = TB.bom.getCookie;
	YUD.deleteCookie = TB.bom.removeCookie;
function vd(p){}
//String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");}
String.prototype.ltrim=function(){return this.replace(/(^\s*)/g,"");}
String.prototype.rtrim=function(){return this.replace(/(\s*$)/g,"");}
String.prototype.isEmpty = function(){if(this=="" || this==''){return true;}else{return false;}}
YL.isEnglish=function(sValue){var myReg = /[^\x00-\x80]/g;
	if(myReg.test(sValue)){
	return false;}else{
		return true;
	}
	} // ascii 0 to 128
YL.isAscii=function(sValue){var myReg = /[^\x00-\xFF]/g;
	if(myReg.test(sValue)){
		return false
		}else{
			return true;
			}} // ascii 0 to 255

var get = YUD.get;



function controlListShow(e,sClassName,sTagName,sParentNodeId,sVisible){
		var items = YUD.getElementsByClassName(sClassName,sTagName,get(sParentNodeId));
		if(sVisible || sVisible=='' || sVisible==""){
			YUD.setStyle(items,"display",sVisible);
		}else{
			if(items[0].style.display=="none"){
				YUD.setStyle(items,"display","");
			}else{
				YUD.setStyle(items,"display","none");
			}
		}
}
function addMoreAttributeContent(sContent,sButtonId,sContainerTagName){
		var oActionButton = get(sButtonId);
		var span =document.createElement(sContainerTagName);
		var separator = document.createElement('div');
		separator.style.Clear="both";
		span.innerHTML=sContent;
		oActionButton.parentNode.insertBefore(separator,oActionButton);
		oActionButton.parentNode.insertBefore(span,oActionButton);
	}
	
	
