String.prototype.Trim = function()//增加string的Trim方法
{
    return this.replace(/(^\s*)|(\s*$)/g, "");
}
function TabPanelonChange(TabName,CurPanel){
	var obj = document.getElementById(TabName);
	if (obj!=null){
		var objs=null;
		//if (document.all){}else{}
		var o=obj.rows[0].cells[0].childNodes[0];
		if (o.tagName=="TABLE"){
			objs = o.rows[0].cells;
			for (var i=0;i<objs.length;i++){
				o = objs[i];
				if (i==CurPanel){
					if (obj.className == TabName){
						return;
					}
					o.className = TabName;
				}else{
					o.className = TabName + "_1";
				}
			}
		}
		//objs = obj.getElementsByTagName("SPAN");
		objs = obj.rows[1].cells[0].childNodes;
		for (var i=0;i<objs.length;i++){
			obj = objs[i];
			if (i==CurPanel){
				obj.style.display = "";
			}else{
				obj.style.display = "none";
			}
		}
	}
}

 
 
