var Browser=new Object();Browser.isMozilla=(typeof document.implementation!='undefined')&&(typeof document.implementation.createDocument!='undefined')&&(typeof HTMLDocument!='undefined');Browser.isIE=window.ActiveXObject?true:false;Browser.isGecko=navigator.userAgent.indexOf("Gecko")!=-1;Browser.isOpera=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);if(Browser.isMozilla&&!Browser.isOpera){HTMLElement.prototype.removeNode=function(){this.parentNode.removeChild(this);};extendEventObject();emulateAttachEvent();var eventArr=["click","dblclick","mouseover","mouseout","mouseleave","mouseenter","mousedown","mouseup","mousemove","keydown","keypress","keyup"];emulateEventHandlers(eventArr);emulateCurrentStyle();Event.LEFT=0;Event.MIDDLE=1;Event.RIGHT=2;}else{Event={};Event.LEFT=1;Event.MIDDLE=4;Event.RIGHT=2;};function extendEventObject(){Event.prototype.__defineGetter__("srcElement",function(){var node=this.target;while(node.nodeType!=1)node=node.parentNode;return node;});};function emulateAttachEvent(){HTMLDocument.prototype.attachEvent=HTMLElement.prototype.attachEvent=function(sType,fHandler){var shortTypeName=sType.replace(/on/,"");fHandler._ieEmuEventHandler=function(e){window.event=e;return fHandler();};this.addEventListener(shortTypeName,fHandler._ieEmuEventHandler,false);};HTMLDocument.prototype.detachEvent=HTMLElement.prototype.detachEvent=function(sType,fHandler){var shortTypeName=sType.replace(/on/,"");if(typeof fHandler._ieEmuEventHandler=="function")this.removeEventListener(shortTypeName,fHandler._ieEmuEventHandler,false);else  this.removeEventListener(shortTypeName,fHandler,true);};};function emulateEventHandlers(eventNames){for(var i=0;i<eventNames.length;i++){document.addEventListener(eventNames[i],function(e){window.event=e;},true);}};var __sto=setInterval;window.setInterval=function(callback,timeout,param){if(param){var args=Array.prototype.slice.call(arguments,2);var _cb=function(){callback.apply(null,args);};return __sto(_cb,timeout);}else{return __sto(callback,timeout);}};var __stoo=setTimeout;window.setTimeout=function(callback,timeout,param){if(param){var args=Array.prototype.slice.call(arguments,2);var _cb=function(){callback.apply(null,args);};return __stoo(_cb,timeout);}else{return __stoo(callback,timeout);}};function emulateAllModel(){var allGetter=function(){var a=this.getElementsByTagName("*");var node=this;a.tags=function(sTagName){return node.getElementsByTagName(sTagName);};return a;};HTMLDocument.prototype.__defineGetter__("all",allGetter);HTMLElement.prototype.__defineGetter__("all",allGetter);};function extendElementModel(){HTMLElement.prototype.__defineGetter__("parentElement",function(){if(this.parentNode==this.ownerDocument)return null;return this.parentNode;});HTMLElement.prototype.__defineGetter__("children",function(){var tmp=[];var j=0;var n;for(var i=0;i<this.childNodes.length;i++){n=this.childNodes[i];if(n.nodeType==1){tmp[j++]=n;if(n.name){if(!tmp[n.name])tmp[n.name]=[];tmp[n.name][tmp[n.name].length]=n;};if(n.id)tmp[n.id]=n}};return tmp;});HTMLElement.prototype.contains=function(oEl){if(oEl==this)return true;if(oEl==null)return false;return this.contains(oEl.parentNode);};};function errorimg(mypic){mypic.src="images/common/none.gif";};function emulateCurrentStyle(){HTMLElement.prototype.__defineGetter__("currentStyle",function(){return this.ownerDocument.defaultView.getComputedStyle(this,null)})}function getrand(){var random1=(Math.floor(Math.random()*10000));var random2=(Math.floor(Math.random()*random1));var random3='s'+random1+random2;return random3}function getscrollTop(){if(typeof window.pageYOffset!='undefined'){return window.pageYOffset}else if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){return document.documentElement.scrollTop}else if(typeof document.body!='undefined'){return document.body.scrollTop}};function $(s){return document.getElementById(s);}function $$(s){return document.frames?document.frames[s]:$(s).contentWindow;};Array.prototype.shellSort=function(){for(var step=this.length>>1;step>0;step>>=1){for(var i=0;i<step;++i){for(var j=i+step;j<this.length;j+=step){var k=j,value=this[j];while(k>=step&&this[k-step]>value){this[k]=this[k-step];k-=step}this[k]=value}}}};function ExpJSON(objname){var tmpobj=eval(objname);return tmpobj.toJSONString()}function in_array(needle,haystack){if(typeof needle=='string'||typeof needle=='number'){for(var i in haystack){if(haystack[i]==needle){return true}}}return false}function del_array(needle,haystack){if(typeof needle=='string'||typeof needle=='number'){var num=haystack.length;for(var i=0;i<num;i++){if(haystack[i]==needle){haystack.splice(i,1)}}}return haystack};function startRequest(method,urlstr,postDatastr,callback){var http_5617=null;msxml_progid=['MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'];try{http_5617=new XMLHttpRequest()}catch(e){for(var i=0;i<msxml_progid.length;++i){try{http_5617=new ActiveXObject(msxml_progid[i]);break}catch(e){}}}if(http_5617){var url="";var poststr="";if(method=='GET'){url=urlstr+"?"+postDatastr}else if(method=='POST'){url=urlstr;poststr=postDatastr}http_5617.onreadystatechange=function(){if(http_5617.readyState==4&&http_5617.status==200){if(callback){callback(http_5617.responseText)}http_5617=null}};http_5617.open(method,url,true);http_5617.setRequestHeader("Content-Type","application/x-www-form-urlencoded");http_5617.send(poststr)}};function getLowDiv(){var num=all_div_id.length;if(num==1&&all_div_id[0]==''){return 0;};var tmp_a=[];if(num>0){for(var j=0;j<num;j++){if($('ohid_'+all_div_id[j])&&$('ohid_'+all_div_id[j]).style.display==''){var t=parseInt($('ohid_'+all_div_id[j]).style.height);if(isNaN(t)){t=0;};var t1=parseInt($('ohid_'+all_div_id[j]).style.top);if(isNaN(t1)){t1=0;};var h=t+t1;if(h>20){tmp_a.push(h);}}};tmp_a.shellSort();return tmp_a[tmp_a.length-1];}else{return 0;}};function openKefutong(url){openWindow(url,650,490);};function openWindow(url,w,h){window.open(url,'','top=50,left=200,width='+w+',height='+h);} ;function downLowDiv3(v,vv){var lowerd=$('ohid_'+v).getAttribute("LowerD");if(!lowerd){getAllLowDiv(v,[],[],'0','0');var lowerd=$('ohid_'+v).getAttribute("LowerD");};if(lowerd){var l_a=lowerd.split(',');var num=l_a.length;for(var j=0;j<num;j++){if(l_a[j]){var t1=parseInt($('ohid_'+l_a[j]).style.top);if((t1+vv)>0){$('ohid_'+l_a[j]).style.top=(t1+vv)+'px';}}}}};function adjust_d(){var v=$('alltable').style.width;var r=v.search('%');if(r>0){v=parseFloat(v);var tmp=document.body.clientWidth;if(isNaN(tmp)||tmp<2){var tmp=document.documentElement.clientWidth;};v=tmp*v/100;v=parseFloat(v);var vv=(tmp-v)/2;}else{v=parseInt(v);var tmp=document.body.clientWidth;if(isNaN(tmp)||tmp<2){var tmp=document.documentElement.clientWidth;};var vv=(tmp-v)/2;};$('alltable').style.right='';$('alltable').style.left=vv+'px';};function adjust_fix(){
/*
if (Browser.isIE){
		var tmp=document.body.offsetWidth;
		var tmp1=$('alltable').offsetWidth;
		if (tmp<=tmp1){
		    $('alltable').style.left='0px';
		}
	}
*/		
	for(var i=0;i<_fix_a.length;i++){var o_id=_fix_a[i];var o_left=_fix_b[i];var v=parseInt($('alltable').style.left);if(isNaN(v)){v=0;};$(o_id).style.left=o_left+v+'px';}};function adjust_fix1(){
/*
if (Browser.isIE){
		var tmp=document.body.offsetWidth;
		var tmp1=$('alltable').offsetWidth;
		if (tmp<=tmp1){
		    $('alltable').style.left='0px';
		}
	}
*/		
		for(var i=0;i<_fix_a.length;i++){var o_id=_fix_a[i];var o_top=_fix_c[i];$(o_id).style.position='absolute';var st=document.documentElement.scrollTop||window.pageYOffset;if(isNaN(st)){st=0;};var v=parseInt($('alltable').style.top);if(isNaN(v)){v=0;};$(o_id).style.top=st+o_top+v+"px";}};function mozillaAdjust(){if(Browser.isMozilla&&a_ba!='right'&&a_ba!='left'){adjust_d();adjust_fix();window.onresize=function(){adjust_d();adjust_fix();}}else{if(navigator.appVersion.indexOf("MSIE 7.0")>1||navigator.appVersion.indexOf("MSIE 8.0")>1){adjust_fix();window.onresize=function(){adjust_fix();}}else{adjust_fix1();window.onscroll=function(){adjust_fix1();}}}};function getcontop(){contop=parseInt($('table_header').style.height);var t=parseInt($('table_header').style.borderWidth);if(isNaN(contop)){contop=0;};if(isNaN(t)){var t=parseInt($('table_header').style.borderTopWidth);if(!isNaN(t)){contop=contop+t;};var t=parseInt($('table_header').style.borderBottomWidth);if(!isNaN(t)){contop=contop+t;}}else{contop=contop+t*2;};headerheight=contop;if(json_command_bs!=''){$('bd_0').style.top=headerheight+'px';};var t=parseInt($('bd_10').style.padding);if(isNaN(t)){var t=parseInt($('bd_10').style.paddingTop);if(!isNaN(t)){contop=contop+t;}}else{contop=contop+t;}};function setInitAllLow(){for(var j=0;j<_content_id_a.length;j++){var v=_content_id_a[j];if($('ohid_'+v)){getAllLowDiv(v,[],[],'0','0');}}};function adjust_center_bd(){var v=getLowDiv();if(v==0){$('bd').height=200;}else{var v=getLowDiv()-contop;if(isNaN(v)){$('bd').height=200;}else{try{$('bd').height=v;}catch(e){}}};try{$('bd_10').style.height=parseInt($('bd').height)+'px';}catch(e){};var a=parseInt($('bd').offsetHeight);if(json_command_bs!=''&&a>100){$('bd_4').style.height=a-100+'px';};adjust_ya_mod();};function adjust_ya_mod(){var c=_ya_a.length;if(c==0){return 0;};var a=parseInt($('bd').offsetHeight)+headerheight;for(var i=0;i<c;i++){var t=$('ohid_'+_ya_a[i]).style.top;t=parseInt(t);var h=a-_ya_b[i]-t;if(!isNaN(h)&&h>20){$('ohid_'+_ya_a[i]).style.height=h+'px';try{$(_ya_a[i]+'_4').style.height=h-100+'px';}catch(e){}}}};function content_down(c_no){var c=_content_id_a.length;if(c==0){return 0;};c_no=parseInt(c_no);if(isNaN(c_no)){c_no=0;};if(c_no==0){_content_have=0;};_content_id=_content_id_a[c_no];if($('ohid_'+_content_id)){var str=$(_content_id+'_c').style.top;var sTemp=parseInt(str);if(isNaN(sTemp)){str=0;}else{str=sTemp;};var vv=$(_content_id+'_content').offsetHeight+0+str;var v=$('ohid_'+_content_id).offsetHeight;if($('ohid_'+_content_id).style.display=='none'){}else if(vv>v){_content_have=1;var vvv=vv-v; var ya=$('ohid_'+_content_id).getAttribute('ya');ya=parseInt(ya);if(isNaN(ya)){ya=50;}else if(ya<2){ya=2;};vvv=vvv+ya; downLowDiv3(_content_id,vvv);$('ohid_'+_content_id).style.height=vv+ya+'px';try{$(_content_id+'_4').style.height=(vv+ya-100)+'px';}catch(e){}};if(c_no+1<c){c_no=c_no+1;content_down(c_no);}}};function checherror(){var c=_content_id_a.length;if(c==0){return 0;};_content_id=_content_id_a[0];if(_content_id!=''&&_content_id&&_content_have==1){content_down(0);getcontop();adjust_center_bd();setTimeout(checherror,100);}};function checherror1(){var c=_content_id_a.length;if(c==0){return 0;};_content_id=_content_id_a[0];if(_content_id!=''&&_content_id){content_down(0);getcontop();adjust_center_bd();}else{return;};if(_content_no+1>c){_content_no=0;c_error=c_error+1;}else{_content_no=_content_no+1;};if(c_error>20){setTimeout(checherror,100);}else{setTimeout(checherror1,100);}} ;function isMultLeaveOrEnter(handler,count,id,mult){var e=window.event;if(e.type!='mouseout'&&e.type!='mouseover')return false;var reltg=e.relatedTarget?e.relatedTarget:e.type=='mouseout'?e.toElement:e.fromElement;if(!mult){var mult=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];}else{var mult=mult.split(',');};var tmp_a=[];for(var i=1;i<=count;i++){if(i==id){var v3=mult[i];if(v3!=0){var v3_a=v3.split('|');var c=v3_a.length;if(c>0){for(var j=0;j<c;j++){if(v3_a[j]){var d=v3_a[j];tmp_a.push(d);}}}}}};while(reltg&&reltg!=handler){if(reltg.id&&in_array(reltg.id,tmp_a)){return false;};reltg=reltg.parentNode;};return(reltg!=handler);};var setMultHidden=function(bid,blockid,count,id,mult){return function(){if(isMultLeaveOrEnter($(bid),count,id,mult)){setMultHidden1(blockid,count,id,mult);}}};function setMultHidden1(blockid,count,id,mult){var v1=$(blockid+'_h3').style.cssText;var v5=$(blockid+'_h5').style.cssText;var v6=$(blockid+'_h7').style.cssText;var link1=$(blockid+'_h1').getAttribute("link");for(var i=1;i<=count;i++){$(blockid+'_la'+i).style.cssText=v1;$(blockid+'_lb'+i).style.cssText=v5;$(blockid+'_lc'+i).style.cssText=v6;if(!isNaN(link1)&&link1>0){$(blockid+'_lb'+i).className='link_'+link1;}};if(!mult){var mult=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];}else{var mult=mult.split(',');};for(var i=1;i<=count;i++){if(i==id){var v3=mult[i];if(v3!=0){var v3_a=v3.split('|');var c=v3_a.length;if(c>0){for(var j=0;j<c;j++){if(v3_a[j]){var d=v3_a[j];try{if($(d)){$(d).style.display='none';}}catch(e){}}}}}}}
	///*
	if (Browser.isIE){
	try{
	d_=document.all;
	for(i=0;i<d_.length;i++){
	  if (d_[i].tagName=="SELECT" && d_[i].abc=='abc'){
		  d_[i].style.display=""
	  }
	}
	}catch(e){}
	}
	//*/
};var MultMouseObj={};

function multi(blockid,count,id,mult,ifmenu){
	
	if (Browser.isIE){
		try{
			d_=document.all;
			for(i=0;i<d_.length;i++){
			  if (d_[i].tagName=="SELECT" && d_[i].abc=='abc'){
				  d_[i].style.display=""
			  }
			}
		}catch(e){}
	}
	
	if (typeof(ifmenu) =='undefined'){
		var ifmenu=0;
	}
	var mult_s=mult;
	
	var v1=$(blockid+'_h3').style.cssText;
	var v2=$(blockid+'_h4').style.cssText;
	var v5=$(blockid+'_h5').style.cssText;
	var v4=$(blockid+'_h6').style.cssText;
	var v6=$(blockid+'_h7').style.cssText;
	var v7=$(blockid+'_h8').style.cssText;
	
	var link1=$(blockid+'_h1').getAttribute("link");
	var link2=$(blockid+'_h2').getAttribute("link");
	//var mult=getjsonvalue(oid,'mult');
	if (!mult){
		var mult=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
	}else{
		var mult=mult.split(',');
	}
	var tmp_width=0;
	var tmp_id='';
	
	
    for(var i=1;i<=count;i++){
       if (i==id){
	   //触发状态
          $(blockid+'_la'+i).style.cssText=v2;
          $(blockid+'_lb'+i).style.cssText=v4;
		  $(blockid+'_lc'+i).style.cssText=v7;
		  if (!isNaN(link2) && link2>0){
		      $(blockid+'_lb'+i).className='link_'+link2;
		  }
		  
		  var v3=mult[i];
		  if (v3 !=0){
		      var v3_a=v3.split('|');
			  var c=v3_a.length;
			  if (c>0){
				  for (var j=0;j<c;j++){
					  if (v3_a[j]){
						  var d=v3_a[j];
						  try{
							     if ($(d)){
									 $(d).style.display='';
									 
									 if (ifmenu==1){
										 
										d_=document.all;
										for(var wi=0;wi<d_.length;wi++){
										  if (d_[wi].tagName=="SELECT" && d_[wi].style.display==""){
										      d_[wi].abc='abc';
											  d_[wi].style.display="none";
										  }
										}
										 
										 /*
										 var tmp_w=parseInt($(d).style.width);
										 if (tmp_w>tmp_width){
											tmp_width=tmp_w;
											tmp_id=d;
										 }
										 */
										 $(d).attachEvent('onmouseout',setMultHidden(d,blockid,count,id,mult_s));
									 }
								 }
						  }catch(e){}
					  }
				  }
			  }
			  
			  /*
			  if (ifmenu==1 && tmp_id!=''){
			      $(tmp_id).attachEvent('onmouseout',setMultHidden(tmp_id,blockid,count,id,mult_s));
			  }
			  */
		  }
	   }else{
          $(blockid+'_la'+i).style.cssText=v1;
          $(blockid+'_lb'+i).style.cssText=v5;
		  $(blockid+'_lc'+i).style.cssText=v6;
		  if (!isNaN(link1) && link1>0){
		      $(blockid+'_lb'+i).className='link_'+link1;
		  }
		  var v3=mult[i];
		  if (v3 !=0){
		      var v3_a=v3.split('|');
			  var c=v3_a.length;
			  if (c>0){
				  for (var j=0;j<c;j++){
					  if (v3_a[j]){
						  var d=v3_a[j];
						  try{
							 $(d).style.display='none';
						  }catch(e){}
					  }
				  }
			  }
		  }
	   }
   }
}


function MultiScroll(blockid){var mult=$(blockid+'_h1').getAttribute("mult");var count=$(blockid+'_h1').getAttribute("count");var v2=$(blockid+'_h4').style.cssText;var v4=$(blockid+'_h6').style.cssText;var v7=$(blockid+'_h8').style.cssText;var c_id=1;var n_id=1;for(var i=1;i<=count;i++){if($(blockid+'_la'+i).style.cssText==v2&&$(blockid+'_lb'+i).style.cssText==v4&&$(blockid+'_lc'+i).style.cssText==v7){c_id=i;break;}};if(c_id==count){n_id=1;}else{n_id=c_id+1;};multi(blockid,count,n_id,mult);};function automuti(){for(var i=0;i<_muti_roll_a.length;i++){var v=_muti_roll_a[i];if(v!=''){var v_a=v.split('|');if(!isNaN(v_a[1])&&v_a[0]!=''){var j=v_a[1]*1000;if(in_array(v_a[0],all_div_id)){window.setInterval(MultiScroll,j,v_a[0]);}}}}};function mscrolls(v,t){if($(v+'_f1').offsetWidth-$(v+'_content').scrollLeft<=0){$(v+'_content').scrollLeft-=$(v+'_f').offsetWidth;if(!isNaN(t)&&t>0){$(v+'_content').onmouseover();window.setTimeout(mscrolls2,t*1000,v);}}else{$(v+'_content').scrollLeft++;}};function mscrolls1(v,t){var a=$(v+'_content').scrollTop;$(v+'_content').scrollTop++;var b=$(v+'_content').scrollTop;var c=$('ohid_'+v).style.height;var c=c.replace('px','');if(a==b){$(v+'_content').scrollTop=0;if(!isNaN(t)&&t>0){$(v+'_content').onmouseover();window.setTimeout(mscrolls2,t*1000,v);}}};function mscrolls2(v){$(v+'_content').onmouseout();};function popgg(obj){if(typeof obj!='object'){return;};var popgg_h=obj.height;var popgg_w=obj.width;
//var popgg_t=10;var popgg_l=10;
	if (obj.place=='1'){
		var popgg_t=0;
		var popgg_l=0;
	}else if (obj.place=='2'){
		var popgg_t=0;
		var popgg_l=window.screen.width-popgg_w;
	}else if (obj.place=='3'){
		var popgg_t=window.screen.height-popgg_h;
		var popgg_l=0;
	}else if (obj.place=='4'){
		var popgg_t=window.screen.height-popgg_h;
		var popgg_l=window.screen.width-popgg_w;
	}else{
		var popgg_t=(window.screen.height-popgg_h)/2;
		var popgg_l=(window.screen.width-popgg_w)/2;
	}


var popgg_c=obj.content;

var editor_win=window.open('',"_blank",'height='+popgg_h+',width='+popgg_w+',top='+popgg_t+',left='+popgg_l+',toolbar=no,menubar=no,scrollbars=no, resizable=yes,location=no, status=no');editor_win.document.open('text/html','replace');editor_win.opener=null;editor_win.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">');editor_win.document.writeln('<html>');editor_win.document.writeln('<head>');editor_win.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=utf-8">');editor_win.document.writeln('<link id="linkasd" href="'+_config_rooturl+'include/css/style_5617.css" rel="stylesheet" type="text/css" media="screen" />');editor_win.document.writeln('<link id="linkasd" href="'+_config_rooturl+'upload/moban/images/style.css" rel="stylesheet" type="text/css" media="screen" />');editor_win.document.writeln('<link id="linkasdasd" href="'+link_css+'" rel="stylesheet" type="text/css" media="screen" />');editor_win.document.writeln('</head>');editor_win.document.writeln('<body>');editor_win.document.writeln(popgg_c);editor_win.document.writeln('</body>');editor_win.document.writeln('</html>');editor_win.document.close();};function floatgg(obj){if(typeof obj!='object'){return;};var tmpDiv=document.createElement("div");tmpDiv.innerHTML=obj.content+'<Img src="images/common/closefloat.gif" style="positon:absolute; bottom:-30px;left:0px;cursor:pointer;" title="关闭此浮动" onclick="this.parentNode.style.display=\'none\';">';tmpDiv.style.cssText="position:absolute; z-index:1000;";var w=parseInt(obj.width);var h=parseInt(obj.height);var speed=parseInt(obj.place);if(isNaN(w)||w<1){tmpDiv.x=200;}else{tmpDiv.x=w;};if(isNaN(h)||h<1){tmpDiv.y==200;}else{tmpDiv.y=h;};if(isNaN(speed)||speed<1){tmpDiv.delay=10;}else{tmpDiv.delay=speed;};document.body.appendChild(tmpDiv);showfloat.init(tmpDiv);};function coupletsgg(obj){if(typeof obj!='object'){return;};var speed=parseInt(obj.place);if(speed==2){var id1=getrand();var id2=getrand();var tmpDiv=document.createElement("div");var tmpDiv1=document.createElement("div");tmpDiv1.innerHTML=tmpDiv.innerHTML=obj.content+'<Img src="images/common/closefloat.gif" style="positon:absolute; bottom:-30px;left:0px;cursor:pointer;" title="关闭此浮动" onclick="$(\''+id1+'\').style.display=\'none\';$(\''+id2+'\').style.display=\'none\';">';tmpDiv1.style.cssText=tmpDiv.style.cssText="position:absolute; z-index:1000;";tmpDiv.id=id1;tmpDiv1.id=id2;tmpDiv.style.right='5px';tmpDiv1.style.left='5px';document.body.appendChild(tmpDiv);document.body.appendChild(tmpDiv1);tmpDiv.itl=window.setInterval(setcoupletgg,500,tmpDiv);document.body.appendChild(tmpDiv1);tmpDiv1.itl=window.setInterval(setcoupletgg,500,tmpDiv1);}else{var tmpDiv=document.createElement("div");tmpDiv.innerHTML=obj.content+'<Img src="images/common/closefloat.gif" style="positon:absolute; bottom:-30px;left:0px;cursor:pointer;" title="关闭此广告" onclick="this.parentNode.style.display=\'none\';">';tmpDiv.style.cssText="position:absolute; z-index:1000;";if(speed==1){tmpDiv.style.right='5px';}else{tmpDiv.style.left='5px';};document.body.appendChild(tmpDiv);tmpDiv.itl=window.setInterval(setcoupletgg,500,tmpDiv);}};function kefugg(obj){if(typeof obj!='object'){return;};var speed=parseInt(obj.place);var tmpDiv=document.createElement("div");
tmpDiv.setAttribute('exaint',obj.exaint);
tmpDiv.innerHTML=obj.content;tmpDiv.style.cssText="position:absolute; z-index:1000;";if(speed==1){tmpDiv.style.right='5px';}else{tmpDiv.style.left='5px';};document.body.appendChild(tmpDiv);tmpDiv.itl=window.setInterval(setcoupletgg,500,tmpDiv);};function showOrNot(id){if($(id).style.display=='none'){$(id).style.display='';}else{$(id).style.display='none';}};
function setcoupletgg(obj){var exaint=parseInt(obj.getAttribute('exaint'));
	if (isNaN(exaint)){
		obj.style.top = 5+getscrollTop()+'px';
	}else{
		obj.style.top = exaint+getscrollTop()+'px';
	}};var Marqueen={"init":function(a,c,d,t){var b=a.id.replace('_content','');try{a.style.height='';a.style.width='';eval("clearInterval(Marqueen.scroll_"+b+");");}catch(e){};if(c==1){if($('ohid_'+b).style.display=='none'){$('ohid_'+b).style.visibility="hidden";$('ohid_'+b).style.display='';};var tmp=parseInt(a.offsetWidth);var c=$('ohid_'+b).offsetWidth;if(c<tmp){tmp=c-2;};$(b+'_f2').width=tmp*2;a.style.width=tmp+'px';a.style.overflow='hidden';if($('ohid_'+b).style.visibility=="hidden"){$('ohid_'+b).style.visibility="";$('ohid_'+b).style.display='none';};eval("Marqueen.scroll_"+b+"=window.setInterval(mscrolls,d,b,t);");a.onmouseover=function(){eval("clearInterval(Marqueen.scroll_"+b+");");};a.onmouseout=function(){eval("Marqueen.scroll_"+b+"=window.setInterval(mscrolls,d,b,t);");}}else if(c==2){if($('ohid_'+b).style.display=='none'){$('ohid_'+b).style.visibility="hidden";$('ohid_'+b).style.display='';};var tmp=parseInt(a.offsetHeight/2);a.style.height=tmp+'px';a.style.overflow='hidden';if($('ohid_'+b).style.visibility=="hidden"){$('ohid_'+b).style.visibility="";$('ohid_'+b).style.display='none';};eval("Marqueen.scroll_"+b+"=window.setInterval(mscrolls1,d,b,t);");a.onmouseover=function(){eval("clearInterval(Marqueen.scroll_"+b+");");};a.onmouseout=function(){eval("Marqueen.scroll_"+b+"=window.setInterval(mscrolls1,d,b,t);");}}}};var showfloat={"obj":null,"x":150,"y":160,"xin":true,"yin":true,"step":1,"itl":1,"delay":10,"init":function(obj){showfloat.obj=obj;obj.xin=showfloat.xin;obj.yin=showfloat.yin;obj.step=showfloat.step;obj.it1=showfloat.it1;obj.itl=window.setInterval(showfloat.float,showfloat.delay,obj);obj.onmouseover=showfloat.start;obj.onmouseout=showfloat.end;},"float":function(obj){var L=T=0;var tmp=document.body.clientWidth;if(isNaN(tmp)||tmp<2){var tmp=document.documentElement.clientWidth;};var R=tmp-obj.offsetWidth;var C=$('alltable').offsetHeight;var B=C-obj.offsetHeight;if(B>500){B=500;};obj.style.left=obj.x+document.body.scrollLeft;obj.style.top=obj.y+getscrollTop();obj.x=obj.x+obj.step*(obj.xin?1:-1);if(obj.x<L){obj.xin=true;obj.x=L;};if(obj.x>R){obj.xin=false;obj.x=R;};obj.y=obj.y+obj.step*(obj.yin?1:-1);if(obj.y<T){obj.yin=true;obj.y=T;};if(obj.y>B){obj.yin=false;obj.y=B;}},"start":function(a){var b=this;clearInterval(b.itl);return false;},"end":function(a){var b=this;b.itl=window.setInterval(showfloat.float,showfloat.delay,b);return false;}};function special_asqewrqdfad(t){var b=t.getAttribute("sbgimg");var b1=t.getAttribute("sbg");var b2=t.getAttribute("sfg");if(b!='undefined'){t.setAttribute("sbgimg1",t.style.backgroundImage);t.style.backgroundImage="url("+b+")";}if(b1!='undefined'){t.setAttribute("sbg1",t.style.backgroundColor);t.style.backgroundColor=b1;}if(b2!='undefined'){t.setAttribute("sfg1",t.style.color);t.style.color=b2;}}function special_asqewrqdfad1(t){var b=t.getAttribute("sbgimg1");var b1=t.getAttribute("sbg1");var b2=t.getAttribute("sfg1");if(b!='undefined'){t.style.backgroundImage=b;}if(b1!='undefined'){t.style.backgroundColor=b1;}if(b2!='undefined'){t.style.color=b2;}}function special_asqewrqdfad2(t){var b=t.getAttribute("sbgimg");if(b!='undefined'){t.setAttribute("sbgimg1",t.src);t.src=b;}}function special_asqewrqdfad3(t){var b=t.getAttribute("sbgimg1");if(b!='undefined'){t.src=b;}};function AjaxReflash(id,bfid,exa){var postdata="_mod="+_mod+"&id="+id+"&bfid="+bfid+"&mod="+mod+"&fid="+fid+"&tid="+tid+"&_exa="+exa;startRequest('POST','design/block_s_default.php',postdata,block_s_default);};function block_s_default(str){var s,u_block_id,u_block_html;s=str.split('==c=+a+=b=++=');u_block_id=s[0];u_block_html=s[1];if(s[2]==1||s[2]==2){}else{};var _tmp_a_oid=u_block_id.replace('_content','');if(typeof u_block_html!='undefined'&&u_block_html){$(u_block_id).innerHTML=u_block_html;};content_down(0);getcontop();adjust_center_bd();if(typeof u_block_html!='undefined'&&u_block_html){$(u_block_id).innerHTML=u_block_html;}};function setAlltableHeight(){var h=parseInt($('quanpinggg_div').style.height);if(isNaN(h)){h=0;};$('alltable').style.top=(alltabletop+h)+'px';};function closeQuanpinggg(){$('quanpinggg_div').movefun='setAlltableHeight();';$('quanpinggg_div').clearContent='1';ohoexpand.cl($('quanpinggg_div')); };function reloadok(){var tmp_num=marqueen_a.length;if(tmp_num>1){for(var i=0;i<tmp_num-1;i++){var tmp_a=marqueen_a[i].split('|');if(in_array(tmp_a[0],all_div_id)){Marqueen.init($(tmp_a[0]+'_content'),tmp_a[1],tmp_a[2],tmp_a[3]);}}};content_down(0);getcontop();adjust_center_bd();for(var i=0;i<=popgg_a.length;i++){if(typeof popgg_a[i]=='object'){popgg(popgg_a[i])}};for(var i=0;i<=floatgg_a.length;i++){if(typeof floatgg_a[i]=='object'){floatgg(floatgg_a[i])}};for(var i=0;i<=coupletsgg_a.length;i++){if(typeof coupletsgg_a[i]=='object'){coupletsgg(coupletsgg_a[i])}};for(var i=0;i<=kefugg_a.length;i++){if(typeof kefugg_a[i]=='object'){kefugg(kefugg_a[i])}};if(typeof quanpinggg_a=='object'){var gh=parseInt(quanpinggg_a.height);if(!isNaN(gh)){var showid=parseInt(quanpinggg_a.showid);if(showid>1){setTimeout(closeQuanpinggg,showid*1000);}}};for(var i=0;i<=_autoc_id_a.length;i++){_autoh_gg(_autoc_id_a[i]);};mozillaAdjust();setTimeout(checherror1,100);};function _autoh_gg(v){if($('ohid_'+v)){var t=parseInt($('ohid_'+v).getAttribute("closet"));if(!isNaN(t)){window.setTimeout(closeOhoBlocks,t*1000,v);}}};function adminlogin(){w=600;h=335;t=(window.screen.height-h)/2;l=(window.screen.width-w)/2;window.open('login/weblogin.php?pre_url='+_pre_url,'newwindow'+new Date().getTime(),'width='+w+',height='+h+',top='+t+',left='+l+',location=no');};function HideFlyBar(){divFlyBar.style.visibility="hidden";myFlyBarRestorButton.style.display='';};function large_pic(obj){var s=obj.src;s=s.replace('_m.','.');window.open(s);};function catchFlyBar(e){if(window.event.srcElement.tagName=="DIV"){bIsCatchFlyBar=true;var x=event.x+document.body.scrollLeft;var y=event.y+document.body.scrollTop;dragClickX=x-divFlyBar.style.pixelLeft;dragClickY=y-divFlyBar.style.pixelTop;divFlyBar.setCapture();document.onmousemove=moveFlyBar;}};function releaseFlyBar(e){bIsCatchFlyBar=false;divFlyBar.releaseCapture();document.onmousemove=null;};function moveFlyBar(e){if(bIsCatchFlyBar){divFlyBar.style.left=event.x+document.body.scrollLeft-dragClickX;divFlyBar.style.top=event.y+document.body.scrollTop-dragClickY;var dtop=parseInt(divFlyBar.style.top);var dleft=parseInt(divFlyBar.style.left);if(dtop<1){divFlyBar.style.top='1px';};if(dleft<1){divFlyBar.style.left='1px';}}};function myload_flybar(){divFlyBar.style.top=document.body.scrollTop;divFlyBar.style.left=document.body.offsetWidth-divFlyBar.clientWidth-30+document.body.scrollLeft;};function getscrollHeight(){if(document.body.scrollHeight>document.documentElement.clientHeight){return document.body.scrollHeight}else{return document.documentElement.clientHeight;}};var MYDrag={"obj":null,"init":function(a){a.onmousedown=MYDrag.start;},"start":function(a){var b=MYDrag.obj=this;a=MYDrag.fixE(a);var c=parseInt(b.style.top);var d=parseInt(b.style.left);b.lastMouseX=a.clientX;b.lastMouseY=a.clientY;document.onmousemove=MYDrag.MYDrag;document.onmouseup=MYDrag.end;return false;},"MYDrag":function(a){a=MYDrag.fixE(a);var b=MYDrag.obj;var c=a.clientY;var d=a.clientX;var e=parseInt(b.style.top);var f=parseInt(b.style.left);var h,g;h=f+d-b.lastMouseX;g=e+c-b.lastMouseY;b.style.left=h+"px";b.style.top=g+"px";b.lastMouseX=d;b.lastMouseY=c;return false;},"end":function(a){document.onmousemove=null;document.onmouseup=null;MYDrag.obj=null;},"r":function(){return false;},"fixE":function(a){if(typeof a=="undefined")a=window.event;if(typeof a.layerX=="undefined")a.layerX=a.offsetX;if(typeof a.layerY=="undefined")a.layerY=a.offsetY;return a;}};function showmask(){try{closeMaskDiv();}catch(e){};if(maskDiv==null||!maskDiv){maskDiv=document.createElement("span");maskDiv.style.cssText="position:absolute;top:0px;left:0px;";if(Browser.isMozilla){}else{};maskDiv.style.height=getscrollHeight();var tmp=document.body.clientWidth;if(isNaN(tmp)||tmp<2){var tmp=document.documentElement.clientWidth;};maskDiv.style.width=tmp;document.body.appendChild(maskDiv);}};function cre_winlist(v,h,w,t){var h=h-20;var str='<div style="background-color:#14386E; cursor:move; height:20px; width:'+w+'"><div id=open_window_id style="height:20px; color:#fff; font-size:12px; float:left;LINE-HEIGHT: 20px; PADDING-LEFT: 3px;"> '+t+'</div><div  style="text-align:right"><img  onclick="closeMaskDiv()" style="cursor:pointer" src=images/common/closeF.gif border=0 title="点击关闭"></div></div><iframe name=frame_asd_asd scrolling="no" id=frame_asd_asd scrolling="auto" width="'+w+'" marginwidth="0" height="'+h+'" marginheight="0" frameborder="0"  src='+v+'>载入中...</iframe>';return str;};function cre_winlist_s(v,h,w,t){var v=encodeURI(v);var str='<iframe name=frame_asd_asd allowTransparency="true" id=frame_asd_asd scrolling="no" width="'+w+'" marginwidth="0" height="'+h+'" marginheight="0" frameborder="0"  src=iframe.php?v='+v+'></iframe>';return str;} ;function closeMaskDiv(){if(maskDiv==null)return;maskDiv.innerHTML='';document.body.removeChild(maskDiv);maskDiv=null;winlistDiv.innerHTML='';document.body.removeChild(winlistDiv);winlistDiv=null;if(typeof document.activeElement=='undefined'){document.activeElement=null;var allTags=document.getElementsByTagName('*');var l=allTags.length;for(var i=0;i<l;i++){allTags[i].onfocus=function(){document.activeElement=this;}}}else{document.activeElement.focus();}};function DialogLoc(){var dde=document.documentElement;if(window.innerWidth){var ww=window.innerWidth;var wh=window.innerHeight;var bgX=window.pageXOffset;var bgY=window.pageYOffset;}else{var ww=dde.offsetWidth;var wh=dde.offsetHeight;var bgX=dde.scrollLeft;var bgY=dde.scrollTop;};var bgY=getscrollTop();t_DiglogX=parseInt((bgX+((ww-t_DiglogW)/2)));t_DiglogY=parseInt((bgY+((wh-t_DiglogH)/2)));};function ShowWinList_s(v,h,w,t){showmask();t_DiglogW=w;t_DiglogH=h;DialogLoc();var sh=t_DiglogY;var sw=t_DiglogX;if(winlistDiv==null||!winlistDiv){if(Browser.isMozilla){winlistDiv=document.createElement("DIV");winlistDiv.id='divFlyBar';winlistDiv.onclick=releaseFlyBar;winlistDiv.onMouseDown=catchFlyBar;winlistDiv.onMouseUp=releaseFlyBar;}else{winlistDiv=document.createElement("<DIV id=divFlyBar onclick=\"releaseFlyBar()\" onMouseDown=\"catchFlyBar()\" onMouseUp=\"releaseFlyBar()\" >");};winlistDiv.style.cssText="position:absolute;top:"+sh+"px;left:"+sw+"px; width:"+w+"px; height:"+h+"px;";winlistDiv.innerHTML=cre_winlist_s(v,h,w,t);'<span style="color:#ff0000; font-size:16px; font-weight:900">'+v+'</span>';winlistDiv.style.display="";document.body.appendChild(winlistDiv);}else{winlistDiv.innerHTML=cre_winlist(v,h,w,t);winlistDiv.style.display="";winlistDiv.style.zIndex=100;};return false;};function ShowAlert(w,h,v,t,b,p,f){showmask();t_DiglogW=w;t_DiglogH=h;DialogLoc();if(typeof f=='undefined'){f='提示信息';};var sh=t_DiglogY;var sw=t_DiglogX;var msg='';if(typeof p=='undefined'){p='';};if(winlistDiv==null||!winlistDiv){if(Browser.isMozilla){winlistDiv=document.createElement("DIV");winlistDiv.id='divFlyBar';}else{winlistDiv=document.createElement("<DIV id=divFlyBar onclick=\"releaseFlyBar()\" onMouseDown=\"catchFlyBar()\" onMouseUp=\"releaseFlyBar()\" >");};winlistDiv.style.cssText="position:absolute;top:"+sh+"px;left:"+sw+"px; width:"+w+"px; height:"+h+"px; z-index:200";var str='<div style="background-color:#14386E; cursor:move; height:20px; width:'+w+'"><div id=open_window_id style="height:20px; color:#fff; font-size:12px; float:left;LINE-HEIGHT: 20px; PADDING-LEFT: 3px;">'+f+'</div><div  style="text-align:right"><img  onclick="closeMaskDiv()" style="cursor:pointer" src=images/common/closeF.gif border=0 title="点击关闭"></div></div>';str+='<div style="padding=10;background-color:#FFFFFF;border:1px #000000 solid; color:#333333;font-size:12px; height:'+h+'px; width:'+w+'">';str+='<table width=98% cellpadding=5>';str+='<tr>';if(t!=2){str+='<td width=132 valign=top>';if(t==1){str+='<img src="'+p+'images/common/smile.png"  align="absmiddle"/>';}else{str+='<img src="'+p+'images/common/han.png"  align="absmiddle"/>';};str+='</td>';};str+='<td  valign=top>';str+=v;if(b==1){str+='<br/><br/>';str+='<Input type=button value="确定" onclick="closeMaskDiv();">';}else if(b==2){str+='<br/><br/>';str+='<Input type=button value="确定" onclick="window.location.href=window.location.href;" >';};str+='</td>';str+='</tr>';str+='</table>';str+='</div>';winlistDiv.innerHTML=str;winlistDiv.style.display="";document.body.appendChild(winlistDiv);};return false;} ;function Showwaiting(v,w,h){showmask();if(isNaN(w)){var w=200;};if(isNaN(h)){var h=40;};t_DiglogW=w;t_DiglogH=h;DialogLoc();var sh=t_DiglogY;var sw=t_DiglogX;var msg='';if(v!=''&&v!=null&&typeof v!='undefined'){var msg=v;}else{var msg='处理中请稍等..';};if(winlistDiv==null||!winlistDiv){if(Browser.isMozilla){winlistDiv=document.createElement("DIV");winlistDiv.id='divFlyBar';}else{winlistDiv=document.createElement("<DIV id=divFlyBar onclick=\"releaseFlyBar()\" onMouseDown=\"catchFlyBar()\" onMouseUp=\"releaseFlyBar()\" >");};winlistDiv.style.cssText="position:absolute;top:"+sh+"px;left:"+sw+"px; width:"+w+"px; height:"+h+"px;";var str='<div style="padding=10;background-color:#FFFFFF;border:1px #000000 solid; z-index:10; color:#333333;font-size:12px;　cursor:move; height:'+h+'px; width:'+w+'"><span style="float:left"><img src="images/common/wait.gif"  align="absmiddle"/></span><span  style="float:left; padding-left:5px;">'+msg+'</span></div>';winlistDiv.innerHTML=str;winlistDiv.style.display="";document.body.appendChild(winlistDiv);};return false;};function closeSelect(){if(winlistDiv){document.body.removeChild(winlistDiv);};winlistDiv=null;return false;};function ShowSelect(v,h,w,tiao,tiao1){if(isNaN(tiao)){var tiao=0;};if(isNaN(tiao1)){var tiao1=10;};if(window.innerWidth){var ww=window.innerWidth;}else{var ww=document.documentElement.offsetWidth;};var sw=event.clientX+document.body.scrollLeft+tiao;var ww1=sw+w+11;if(ww1>ww){if(ww>w){sw=ww-w;}else{sw=0;}};var sh=event.clientY+document.body.scrollTop+tiao1;if(winlistDiv==null||!winlistDiv){if(Browser.isMozilla){winlistDiv=document.createElement("DIV");winlistDiv.id='divFlyBar';}else{winlistDiv=document.createElement("<DIV id=divFlyBar >");};winlistDiv.style.cssText="position:absolute;top:"+sh+"px;left:"+sw+"px; width:"+w+"px; height:"+h+"px;";winlistDiv.innerHTML='<iframe scrolling="no"　allowtransparency="true" style="background-color=transparent"  onmouseout="document.body.removeChild(winlistDiv);winlistDiv=null;return false;" width="'+w+'" marginwidth="0" height="'+h+'" marginheight="0" frameborder="0"  src='+v+'></iframe>';winlistDiv.style.display="";document.body.appendChild(winlistDiv);}else{winlistDiv.style.cssText="position:absolute;top:"+sh+"px;left:"+sw+"px; width:"+w+"px; height:"+h+"px;";winlistDiv.innerHTML='<iframe scrolling="no"　allowtransparency="true" style="background-color=transparent"  onmouseout="document.body.removeChild(winlistDiv);winlistDiv=null;return false;" width="'+w+'" marginwidth="0" height="'+h+'" marginheight="0" frameborder="0"  src='+v+'></iframe>';winlistDiv.style.display="";winlistDiv.style.zIndex=100;};return false;} ;function ShowWinList(v,h,w,t){showmask();t_DiglogW=w;t_DiglogH=h;DialogLoc();var sh=t_DiglogY+10;var sw=t_DiglogX;if(winlistDiv==null||!winlistDiv){}else{document.body.removeChild(winlistDiv);winlistDiv=null;};if(winlistDiv==null||!winlistDiv){if(Browser.isMozilla){winlistDiv=document.createElement("DIV");winlistDiv.id='divFlyBar';}else{winlistDiv=document.createElement("<DIV id=divFlyBar onclick=\"releaseFlyBar()\" onMouseDown=\"catchFlyBar()\" onMouseUp=\"releaseFlyBar()\">");};winlistDiv.style.cssText="position:absolute;top:"+sh+"px;left:"+sw+"px; width:"+w+"px; height:"+h+"px;background-color:#FFFFFF; border:1px solid #14386E;z-index:100;";winlistDiv.innerHTML=cre_winlist(v,h,w,t);wintmpDiv=document.createElement("DIV");if(Browser.isMozilla){wintmpDiv1=document.createElement("DIV");wintmpDiv.style.cssText="position:absolute;top:"+h+"px;left:8px; width:"+w+"px; height:8px; background-color:#000000;opacity:0.2;z-index:-1";wintmpDiv1.style.cssText="position:absolute;top:8px;left:"+w+"px; width:8px; height:"+h+"px; background-color:#000000;opacity:0.2;z-index:-1";winlistDiv.appendChild(wintmpDiv);winlistDiv.appendChild(wintmpDiv1);}else{wintmpDiv.style.cssText="position:absolute;top:8px;left:8px; width:"+w+"px; height:"+h+"px;background-color:#000000;filter:alpha(opacity=20); border:1px solid #14386E;z-index:-1";winlistDiv.appendChild(wintmpDiv);};winlistDiv.style.display="";if(Browser.isMozilla){MYDrag.init(winlistDiv);};document.body.appendChild(winlistDiv);};return false;};

Validator = {
	Require : /.+/,
	Email : /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,
	Phone : /^((\(\d{3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}$/,
	Mobile : /^((\(\d{3}\))|(\d{3}\-))?13\d{9}$/,
	Url : /^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/,
	IdCard : "this.checkCard(value)",
	Currency : /^\d+(\.\d+)?$/,
	Number : /^\d+$/,
	Zip : /^[1-9]\d{5}$/,
	QQ : /^[1-9]\d{4,8}$/,
	Integer : /^[-\+]?\d+$/,
	Double : /^[-\+]?\d+(\.\d+)?$/,
	English : /^[A-Za-z]+$/,
	Chinese :  /^[\u0391-\uFFE5]+$/,
	UnSafe : /^(([A-Z]*|[a-z]*|\d*|[-_\~!@#\$%\^&\*\.\(\)\[\]\{\}<>\?\\\/\'\"]*)|.{0,5})$|\s/,
	IsSafe : function(str){return !this.UnSafe.test(str);},
	SafeString : "this.IsSafe(value)",
	Limit : "this.limit(value.length,getAttribute('min'),  getAttribute('max'))",
	LimitB : "this.limit(this.LenB(value), getAttribute('min'), getAttribute('max'))",
	Date : "this.IsDate(value, getAttribute('min'), getAttribute('format'))",
	Repeat : "value == document.getElementsByName(getAttribute('to'))[0].value",
	Range : "getAttribute('min') < value && value < getAttribute('max')",
	Compare : "this.compare(value,getAttribute('operator'),getAttribute('to'))",
	Custom : "this.Exec(value, getAttribute('regexp'))",
	Group : "this.MustChecked(getAttribute('name'), getAttribute('min'), getAttribute('max'))",
	ErrorItem : [document.forms[0]],
	ErrorMessage : ["以下原因导致提交失败：\t\t\t\t"],
	Validate : function(theForm, mode){
		var obj = theForm || event.srcElement;
		var count = obj.elements.length;
		this.ErrorMessage.length = 1;
		this.ErrorItem.length = 1;
		this.ErrorItem[0] = obj;
		for(var i=0;i<count;i++){
			with(obj.elements[i]){
				var _dataType = getAttribute("dataType");
				var _requireset = getAttribute("require");
				if((typeof(_dataType) == "object" || typeof(this[_dataType]) == "undefined") && typeof(_requireset) == "undefined")  continue;
				
				this.ClearState(obj.elements[i]);
				if(getAttribute("require") == "false" && value == "") continue;
				if(getAttribute("require") == "true" && value == "") {
					this.AddError(i, getAttribute("msg"));
				}else{
					switch(_dataType){
						case "Date" :
						case "Repeat" :
						case "Range" :
						case "Compare" :
						case "Custom" :
						case "Group" : 
						case "Limit" :
						case "IdCard" :
							if(!eval(this[_dataType]))	{
								this.AddError(i, getAttribute("msg"));
							}
							break;
						case "LimitB" :
						case "SafeString" :
							if(!eval(this[_dataType]))	{
								this.AddError(i, getAttribute("msg"));
							}
							break;
						default :
							if(typeof(this[_dataType]) != "undefined" && typeof(_dataType) != "object" && !this[_dataType].test(value)){
								this.AddError(i, getAttribute("msg"));
							}
							break;
					}
				}
			}
		}
		if(this.ErrorMessage.length > 1){
			mode = mode || 1;
			var errCount = this.ErrorItem.length;
			switch(mode){
			case 2 :
				for(var i=1;i<errCount;i++)
					this.ErrorItem[i].style.color = "red";
			case 1 :
				alert(this.ErrorMessage.join("\n"));
				this.ErrorItem[1].focus();
				break;
			case 3 :
				for(var i=1;i<errCount;i++){
				try{
					var span = document.createElement("SPAN");
					span.id = "__ErrorMessagePanel";
					span.style.color = "red";
					this.ErrorItem[i].parentNode.appendChild(span);
					span.innerHTML = this.ErrorMessage[i].replace(/\d+:/,"*");
					}
					catch(e){alert(e.description);}
				}
				this.ErrorItem[1].focus();
				break;
			default :
				alert(this.ErrorMessage.join("\n"));
				break;
			}
			return false;
		}
		return true;
	},
	limit : function(len,min, max){
		min = min || 0;
		max = max || Number.MAX_VALUE;
		return min <= len && len <= max;
	},
	LenB : function(str){
		return str.replace(/[^\x00-\xff]/g,"**").length;
	},
	ClearState : function(elem){
		with(elem){
			if(style.color == "red")
				style.color = "";
			var lastNode = parentNode.childNodes[parentNode.childNodes.length-1];
			if(lastNode.id == "__ErrorMessagePanel")
				parentNode.removeChild(lastNode);
		}
	},
	AddError : function(index, str){
		this.ErrorItem[this.ErrorItem.length] = this.ErrorItem[0].elements[index];
		this.ErrorMessage[this.ErrorMessage.length] = this.ErrorMessage.length + ":" + str;
	},
	Exec : function(op, reg){
		return new RegExp(reg,"g").test(op);
	},
	compare : function(op1,operator,op2){
		switch (operator) {
			case "NotEqual":
				return (op1 != op2);
			case "GreaterThan":
				return (op1 > op2);
			case "GreaterThanEqual":
				return (op1 >= op2);
			case "LessThan":
				return (op1 < op2);
			case "LessThanEqual":
				return (op1 <= op2);
			default:
				return (op1 == op2);            
		}
	},
	

changeFivteenToEighteen : function(card)
{
	if(card.length == '15')
	{
		var arrInt = new Array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2);
		var arrCh = new Array('1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2');
		var cardTemp = 0, i;
		card = card.substr(0, 6) + '19' + card.substr(6, card.length - 6);
		for(i = 0; i < 17; i ++)
		{
			cardTemp += card.substr(i, 1) * arrInt[i];
		}
		card += arrCh[cardTemp % 11];
		return card;
	}
	return card;
},


checkParity : function(card)
{
	card = this.changeFivteenToEighteen(card);
	var len = card.length;
	if(len == '18')
	{
		var arrInt = new Array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2);
		var arrCh = new Array('1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2');
		var cardTemp = 0, i, valnum; 
		for(i = 0; i < 17; i ++) 
		{
			cardTemp += card.substr(i, 1) * arrInt[i];
		}
		valnum = arrCh[cardTemp % 11];
		if (valnum == card.substr(17, 1))
		{
			return true;
		}
		return false;
	}
	return false;
},
verifyBirthday : function(year,month,day,birthday)
{
	var now = new Date();
	var now_year = now.getFullYear();
	if(birthday.getFullYear() == year && (birthday.getMonth() + 1) == month && birthday.getDate() == day)
	{
		return true;
	}
	return false;
},
checkBirthday : function(card)
{
	var len = card.length;
	if(len == '15')
	{
		var re_fifteen = /^(\d{6})(\d{2})(\d{2})(\d{2})(\d{3})$/;
		var arr_data = card.match(re_fifteen);
		var year = arr_data[2];
		var month = arr_data[3];
		var day = arr_data[4];
		var birthday = new Date('19'+year+'/'+month+'/'+day);
		return this.verifyBirthday('19'+year,month,day,birthday);
	}
	if(len == '18')
	{
		var re_eighteen = /^(\d{6})(\d{4})(\d{2})(\d{2})(\d{3})([0-9]|X)$/;
		var arr_data = card.match(re_eighteen);
		var year = arr_data[2];
		var month = arr_data[3];
		var day = arr_data[4];
		var birthday = new Date(year+'/'+month+'/'+day);
		return this.verifyBirthday(year,month,day,birthday);
	}
	return false;
},
checkProvince : function(card)
{
	var vcity = {11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"};
	var province = card.substr(0,2);
	if(vcity[province] == undefined)
	{
		return false;
	}
	return true;
},

isCardNo : function(card)
{
	var reg = /(^\d{15}$)|(^\d{17}(\d|X)$)/;
	if(reg.test(card) === false)
	{
		return false;
	}
	return true;
},

checkCard : function(IdCard)
{
	if(IdCard === '')
	{
		return false;
	}
	if(this.isCardNo(IdCard) === false)
	{
		return false;
	}
	if(this.checkProvince(IdCard) === false)
	{
		return false;
	}
	if(this.checkBirthday(IdCard) === false)
	{
		return false;
	}
	if(this.checkParity(IdCard) === false)
	{
		return false;
	}
	return true;
},


	MustChecked : function(name, min, max){
		var groups = document.getElementsByName(name);
		var hasChecked = 0;
		min = min || 1;
		max = max || groups.length;
		for(var i=groups.length-1;i>=0;i--)
			if(groups[i].checked) hasChecked++;
		return min <= hasChecked && hasChecked <= max;
	},
	IsDate : function(op, formatString){
		formatString = formatString || "ymd";
		var m, year, month, day;
		switch(formatString){
			case "ymd" :
				m = op.match(new RegExp("^((\\d{4})|(\\d{2}))([-./])(\\d{1,2})\\4(\\d{1,2})$"));
				if(m == null ) return false;
				day = m[6];
				month = m[5]--;
				year =  (m[2].length == 4) ? m[2] : GetFullYear(parseInt(m[3], 10));
				break;
			case "dmy" :
				m = op.match(new RegExp("^(\\d{1,2})([-./])(\\d{1,2})\\2((\\d{4})|(\\d{2}))$"));
				if(m == null ) return false;
				day = m[1];
				month = m[3]--;
				year = (m[5].length == 4) ? m[5] : GetFullYear(parseInt(m[6], 10));
				break;
			default :
				break;
		}
		if(!parseInt(month)) return false;
		month = month==12 ?0:month;
		var date = new Date(year, month, day);
        return (typeof(date) == "object" && year == date.getFullYear() && month == date.getMonth() && day == date.getDate());
		function GetFullYear(y){return ((y<30 ? "20" : "19") + y)|0;}
	}
 };





var ohocss={"display":function(d,v){if(v==undefined){return d.style.display;}else{d.style.display=v;}},"height":function(d,v){if(v==undefined){viz=d.style.visibility;d.style.visibility='hidden';o=ohocss.display(d);ohocss.display(d,'block');r=parseInt(d.offsetHeight);ohocss.display(d,o);d.style.visibility=viz;return r;}else{d.style.height=v;}},"removeclassname":function(d,v){s=d.className.split(/\s+/);for(p=0;p<s.length;p++){if(s[p]==v){s.splice(p,1);d.className=s.join(' ');break;}}}};var ohoexpand={"ex":function(d){if(ohocss.display(d)=='none'){ohocss.display(d,'block');d.style.height='0px';clearInterval(d.t);d.t=window.setInterval(ohoexpand.et,10,d.id);}},"et":function(d){var d=$(d);if(ohocss.height(d)<d.maxh){var v=Math.round((d.maxh-ohocss.height(d))/d.s);v=(v<1)?1:v;v=(ohocss.height(d)+v);ohocss.height(d,v+'px');d.style.opacity=(v/d.maxh);d.style.filter='alpha(opacity='+(v*100/d.maxh)+');';}else{ohocss.height(d,d.maxh);clearInterval(d.t);}},"cl":function(d){if(ohocss.display(d)=='block'||ohocss.display(d)==''){clearInterval(d.t);d.t=window.setInterval(ohoexpand.ct,10,d.id);ohoexpand.ct(d.id);}},"ct":function(d){d=$(d);var h=parseInt(d.getAttribute("closeh"));if(isNaN(h)){h=0;};if(ohocss.height(d)>(h+2)){var v=Math.round(ohocss.height(d)/10);v=(v<1)?1:v;v=(ohocss.height(d)-v);if(v<h){v=h;};ohocss.height(d,v+'px');if(d.movefun){eval(d.movefun);}}else{ohocss.height(d,h);if(!h){ohocss.display(d,'none');};if(d.movefun){eval(d.movefun);};if(d.clearContent=='1'){d.innerHTML='';};clearInterval(d.t);}},"set":function(d,tc,tc1,sel){var oid_id=d.replace('_content','');var l=$(d).getElementsByTagName('div');var c=[];for(i=0;i<l.length;i++){var h=l[i].id;if(h.substr(h.indexOf('-')+1,h.length)=='content'){c.push(h);}};for(i=0;i<l.length;i++){h=l[i].id;if(h.substr(h.indexOf('-')+1,h.length)=='header'){d=$(h.substr(0,h.indexOf('-'))+'-content');d.style.overflow='hidden';d.maxh=ohocss.height(d);d.s=7;h=$(h);h.tc=tc;h.tc1=tc1;h.c=c;h.onclick=function(){$_sH(oid_id);for(i=0;i<this.c.length;i++){cn=this.c[i];n=cn.substr(0,cn.indexOf('-'));if((n+'-header')==this.id){ohoexpand.ex($(n+'-content'));n=$(n+'-header').className=tc;}else{ohoexpand.cl($(n+'-content'));$(n+'-content').style.display='none';$(n+'-header').className=tc1;}};if(in_array(oid_id,_content_id_a)){window.setTimeout($_eH,2000,oid_id);}}}};if(sel!=undefined){sel.onclick();}}}; function mod_disappear(){var c=_disappear_id_a.length;if(c==0){return 0;};var num=all_div_id.length;if(num==1&&all_div_id[0]==''){return 0;};if(num==0){return 0;};for(var i=0;i<c;i++){var id=_disappear_id_a[i];var h=parseInt($('ohid_'+id).style.height);var vv=0-h;downLowDiv3(id,vv); $('ohid_'+id).innerHTML='';$('ohid_'+id).style.display='none';}};function $_sH(v){var h=$(v+'_content').offsetHeight;$('ohid_'+v).setAttribute("initH",h);};function $_eH(v){var h=$(v+'_content').offsetHeight;var hh=parseInt($('ohid_'+v).getAttribute("initH"));if(isNaN(hh)){return false;};if(hh==h){return false;}else if(h>hh){c_error=5;checherror1();}else{var hhh=hh-h;var lowerd=$('ohid_'+v).getAttribute("LowerD");if(!lowerd){getAllLowDiv(v,[],[],'0','0');var lowerd=$('ohid_'+v).getAttribute("LowerD");};try{$('ohid_'+v).style.height=(parseInt($('ohid_'+v).style.height)-hhh)+'px';}catch(e){};try{$(v+'_4').style.height=(parseInt($(v+'_4').style.height)-hhh)+'px';}catch(e){};if(lowerd){var l_a=lowerd.split(',');var num=l_a.length;for(var j=0;j<num;j++){if(l_a[j]){var t1=parseInt($('ohid_'+l_a[j]).style.top);if((t1-hhh)>0){$('ohid_'+l_a[j]).style.top=(t1-hhh)+'px';}}}};getcontop();adjust_center_bd();}};function mod_reheight(){var c=_yah_id_a.length;if(c==0){return 0;};for(var i=0;i<c;i++){var v=_yah_id_a[i];var lowerd=$('ohid_'+v).getAttribute("LowerD"); var hhh=parseInt($('ohid_'+v).getAttribute("yah"));$('ohid_'+v).style.height=(parseInt($('ohid_'+v).style.height)-hhh)+'px';try{$(v+'_4').style.height=(parseInt($(v+'_4').style.height)-hhh)+'px';}catch(e){};if(lowerd){var l_a=lowerd.split(',');var num=l_a.length;for(var j=0;j<num;j++){if(l_a[j]){var t1=parseInt($('ohid_'+l_a[j]).style.top);$('ohid_'+l_a[j]).style.top=(t1-hhh)+'px';}}};getcontop();adjust_center_bd();}};function moveOhoBlocks(id){var v=parseInt($('ohid_'+id).style.height);var vv=parseInt($('ohid_'+id).lasth);$('ohid_'+id).lasth=v;var vvv=v-vv;downLowDiv3(id,vvv);};function closeOhoBlocks(id){var v=parseInt($('ohid_'+id).style.height);getAllLowDiv(id,[],[],'0','0');$('ohid_'+id).lasth=v;$('ohid_'+id).movefun='moveOhoBlocks(\''+id+'\');';var h=parseInt($('ohid_'+id).getAttribute("closeh"));if(isNaN(h)||!h){$('ohid_'+id).clearContent='1';};ohoexpand.cl($('ohid_'+id)); } ;function getAllLowDiv(id,arr,arr1,type,iid){var num=all_div_id.length;if(num==1&&all_div_id[0]==''){return[];};if(type=='0'){var t=parseInt($('ohid_'+id).style.top);var l=parseInt($('ohid_'+id).style.left);var w=parseInt($('ohid_'+id).style.width);var h=parseInt($('ohid_'+id).style.height);var v=t+h;if(num>0){for(var j=0;j<num;j++){if(!in_array(all_div_id[j],arr)){var t1=parseInt($('ohid_'+all_div_id[j]).style.top);var l1=parseInt($('ohid_'+all_div_id[j]).style.left);var w1=parseInt($('ohid_'+all_div_id[j]).style.width);if(t1>=v&&l1<l+w&&l1>=l&&id!=all_div_id[j]){arr.push(all_div_id[j]);}else if(t1>=v&&l1+w1>l&&l1<l&&id!=all_div_id[j]){arr.push(all_div_id[j]);}}};getAllLowDiv(id,arr,arr1,'1');}else{return[];}}else if(type=='1'){var num=arr.length;if(num==1&&arr[0]==''){return[];};if(arr1.length>=arr.length){$('ohid_'+id).setAttribute("LowerD",arr.join(','));return true;};if(num>0){for(var j=0;j<num;j++){if(!in_array(arr[j],arr1)){arr1.push(arr[j]);getAllLowDiv(id,arr,arr1,'2',arr[j]);}}}else{return[];}}else if(type=='2'){var t=parseInt($('ohid_'+iid).style.top);var l=parseInt($('ohid_'+iid).style.left);var w=parseInt($('ohid_'+iid).style.width);var tmp_a=[];for(var j=0;j<num;j++){if(!in_array(all_div_id[j],arr)){var t1=parseInt($('ohid_'+all_div_id[j]).style.top);var l1=parseInt($('ohid_'+all_div_id[j]).style.left);var w1=parseInt($('ohid_'+all_div_id[j]).style.width);if(t1>t&&l1<l+w&&l1>=l&&iid!=all_div_id[j]){arr.push(all_div_id[j]);}else if(t1>t&&l1+w1>l&&l1<l&&iid!=all_div_id[j]){arr.push(all_div_id[j]);}}};getAllLowDiv(id,arr,arr1,'1','0');}};window.document.onkeydown=function(){if(window.event.ctrlKey&&window.event.keyCode==191){if(errorMsg!=''){alert(errorMsg);}}}

