/*
+-----------------------------------------------
+	WeSpace Base Javascript
+-----------------------------------------------
*/
var USERAGENT = navigator.userAgent.toLowerCase(), WSBase = {
	Browser : {
		IE : window.ActiveXObject && USERAGENT.indexOf('msie') != -1 ? true : false, 
		FF : USERAGENT.indexOf('firefox') == -1 ? false : true
	}, _func : {
		is_object: function(id){
			if (typeof id == 'object'){
				return id;
			} else if (document.getElementById(id)){
				return document.getElementById(id);
			} return false;
		}, in_array : function(k, v){
			for (var i = 0; i < v.length; i++){
				if (k == v[i]){
					return true;
				}
			} return false;
		}, isemail : function(str){
			var format = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
			return format.exec(str) ? true : false;
		}, gethash : function(){
			return new Date().getTime();
		}, checks : function(theform, key){
			var checkids = '', comma = ''; if (typeof theform != 'object'){
				theform = eval('document.' + theform);
			} if (theform){
				for (var i = 0; i < theform.elements.length; i++){
					if (theform.elements[i].name.substr(theform.elements[i].name.length - 2, 2) == '[]'){
						if (key){
							if (theform.elements[i].name.substr(0, theform.elements[i].name.length - 2) == key && theform.elements[i].value != '' && theform.elements[i].value != '0'){
								checkids += comma + theform.elements[i].value; comma = ',';
							}
						} else {
							if (theform.elements[i].type == 'checkbox' && theform.elements[i].checked){
								checkids += comma + theform.elements[i].value; comma = ',';
							}
						}
					}
				}
			} return checkids;
		}, checkall : function(theform){
			var checki = 0, checked = false; if (typeof theform != 'object'){
				theform = eval('document.'+theform);
			} if (theform){
				for (var i = 0; i < theform.elements.length; i++){
					if (theform.elements[i].type == 'checkbox' && theform.elements[i].name.substr(theform.elements[i].name.length - 2,2) == '[]'){ checki++;
						if (checki == 1){
							checked = theform.elements[i].checked ? false : true;
						} theform.elements[i].checked = checked;
					}
				}
			}
		}, radios : function(theform, name){
			var result = 0; if (typeof theform != 'object'){
				theform = eval('document.'+theform);
			} if (theform){
				for (var i = 0; i < theform.elements.length; i++){
					if (theform.elements[i].type == 'radio' && theform.elements[i].name == name && theform.elements[i].checked){
						result = theform.elements[i].value;
					}
				}
			} return result;
		}, collapsed : function(id, cook){
			var obj = this.is_object(id), classid = 'on'; if (obj){
				var oTag = obj.tagName.toLowerCase(); if (obj.style.display == 'none'){
					if (typeof WSUtility.Collapsed == 'undefined' || oTag == 'tbody'){
						obj.style.display = ''; 
					} else {
						WSUtility.Collapsed.Run(obj);
					} if (cook){
						this.cookier(id, 0);
					}
				} else {
					if (typeof WSUtility.Collapsed == 'undefined' || oTag == 'tbody'){
						obj.style.display = 'none'; 
					} else {
						WSUtility.Collapsed.Run(obj);
					} classid = 'off'; if (cook){
						this.cookier(id, 1);
					}
				}
			} return classid;
		}, director : function(uri){
			var url = uri ? uri : window.location.href; if (url){
				WSBasic.Info.Finish(); url = url.replace(/\&amp;/ig, '&'); if (url.indexOf('?') != -1){
					url = url.replace(/&hashid=([0-9]+)/ig, '&hashid=' + this.gethash());
				} url = url.replace(/#(.*)/ig, ''); window.location.href = url;
			}
		}, referer : function(){
			var url = typeof document.referrer == 'undefined' ? '' : document.referrer; WSBase._func.director(url);
		}, cookier : function(k, v, h){
			if (k && k != ''){
				var timer = null, cookies = k + '=' + escape(v) + '; path=/'; if (typeof COOKIEDOMAIN != 'undefined' && COOKIEDOMAIN != ''){
					cookies += '; domain=' + COOKIEDOMAIN;
				} if (!isNaN(h) && h > 0){
					timer = new Date((new Date()).getTime() + h * 3600 * 1000);
					cookies += '; expires=' + timer.toGMTString();
				} document.cookie = cookies; 
			}
		}, slashes : function(text, strip){
			var results = ''; if (strip){
				results = text.replace(/\"/g, '"');
				results = text.replace(/\'/g, "'");
			} else {
				results = text.replace(/\"/g, '\"');
				results = text.replace(/\'/g, "\'");
				results = text.replace(/\n/g, ' ');
			} return results;
		}, secimage : function(formname, results){
			var theform = eval('document.' + formname), obj = WSBase._func.is_object(formname + '_secimage'); if (obj && theform.formhash){
				var url = obj.src.replace(/formhash\=(.*)/ig, ''); if (url.indexOf('?') == -1){
					url += '?';
				} if (results){
					theform.formhash.value = results; obj.src = url + 'formhash=' + results;
				} else {
					var abj = WSBase._func.is_object('ajaxform'); if (abj){
						abj.src = url + 'formname=' + formname + '&hashid=' + WSBase._func.gethash();
					}
				}
			}
		}, error : function(theform, field, msg){
			if (theform && typeof theform == 'object'){
				if (field == '' || field == null){
					if (msg != '' && msg != null){
						alert(msg);
					} return true;
				} var tag = theform.tagName.toLowerCase(); if (tag == 'form'){
					var EBJ = WSBase._func.is_object(field + '_hider'), IPT = eval('theform.' + field), FOC = false; if (IPT){
						IPT.onclick = function(){
							WSBasic.Info.Closer.Hider(WSBasic.Base.Conf.iid); IPT.onclick = null;
						}; if (typeof IPT.type != 'undefined'){
							var TYP = IPT.type.toLowerCase(); if (this.in_array(TYP, ['file', 'text', 'password', 'select-one', 'textarea'])){
								EBJ = IPT; eval('theform.' + field + '.focus()'); FOC = true;
							}
						}
					} if (msg && msg != ''){
						if (typeof EBJ == 'object'){
							return WSBasic.Info.Inputs({obj : EBJ, txt : msg, ipt : FOC ? true : false});
						} else {
							alert(msg);
						}
					}
				}
			}
		}, focuser : function(theform, field, prompter, promptmsg){
			return this.error(theform, field, promptmsg);
		}, alerter : function(msg){
			return true;
		}, appender : {
			js : {
				src : function(s){
					WSBasic.Info.Dialog.ev.src(s);
				}
			}
		}
	}, _plugins : {
		masker : function(isClose){return true;},
		loader : function(isClose, msg){return true;}
	}, _displayer : {
		slider : function(sObj, text, force){return WSBasic.Info.Slider({obj : sObj, txt : text});}, 
		dialog : function(text, Subject){return WSBasic.Info.Dialog.on({ti: Subject, txt : text});},
		slidoff : function(){},
		closer : function(isPop){},
		prompter : function(sObj, msg, isClose){},
		pages : function(_F, _U, _P, _S, _G){ return true;}
	}, Ajax : {
		xml : function(url, tar, title){
			var obj = {ti : title, url : url}; if (tar == 'popbox' || tar == 'dialog'){
				obj.call = WSBasic.Info.Dialog.on;
			} else {
				obj.obj = tar; 
				obj.call = WSBasic.Info.Xmltxt
			} return WSBasic.Ajax.Read(obj);
		}
	}
}, WSBasic = {
	Base : {
		Lang : {
			ajax : '请稍候[页面加载中]...', 
			finish : '数据提交完成'
		}, Conf : {
			aid : 'wsbasic_element_append',
			did : 'wsbasic_element_dialog', 
			fid : 'wsbasic_element_finish', 
			iid : 'wsbasic_element_inputs', 
			mid : 'wsbasic_element_masker', 
			sid : 'wsbasic_element_slider', 
			tid : 'wsbasic_element_titler' 
		}, posxy : function(o){
			var XY = {w : parseInt(o.offsetWidth), h : parseInt(o.offsetHeight), x : parseInt(o.offsetLeft), y : parseInt(o.offsetTop)}; while ((o = o.offsetParent) != null){
				XY.x += parseInt(o.offsetLeft);
				XY.y += parseInt(o.offsetTop);
			} return XY;
		}
	}, Ajax : {
		Processing : false, 
		URL : function(uri){
			var URI = {
				ajax : uri.replace(/\&amp;/ig, '&'), 
				href : window.location.href.replace(/\&amp;/ig, '&')
			}; if (URI.href.length >= URI.ajax.length){
				if (URI.href.substr(URI.href, URI.href.length - URI.ajax.length, URI.ajax.length) == URI.ajax){
					WSBase._func.director(URI.ajax.replace(/#(.+?)/ig, ''));
					return false;
				}
			} return URI.ajax;
		}, Read : function(o){
			/*
			+-----------------------------------
			+	ti:		对话框标题
			+	url:	URL
			+	obj:	Object
			+	call:	返回函数
			+-----------------------------------
			*/
			if (o.url){
				o.url = WSBasic.Ajax.URL(o.url);
			} if (o.url && o.call){
				WSBasic.Ajax.processing = true; document.onclick = function(e){
					if (WSBasic.Ajax.processing){
						WSBasic.Info.Loader({}, false, e);
					} else {
						document.onclick = null;
					}
				}; var request = false; if (window.XMLHttpRequest) {
					request = new XMLHttpRequest(); if (request.overrideMimeType){
						request.overrideMimeType('text/xml');
					}
				} else if(window.ActiveXObject) {
					var versions = ['Microsoft.XMLHTTP', 'MSXML.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.7.0', 'Msxml2.XMLHTTP.6.0', 'Msxml2.XMLHTTP.5.0', 'Msxml2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP']; for (var i = 0; i < versions.length; i++){
						try {
							request = new ActiveXObject(versions[i]); if (request){
								break;
							}
						} catch(err) {}
					}
				} if (request){
					request.open('POST', o.url);
					request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
					request.send('in_ajax_submit=1');
					request.onreadystatechange = function(){
						if (request.readyState == 4){
							if (request.status == 200){
								var results = request.responseText;
								var sourcetype = results.substr(0, 5).toLowerCase(); if (sourcetype == '<?xml'){
									results = request.responseXML.lastChild.firstChild.nodeValue;
								} var abj = {ti : o.ti, obj : o.obj, txt : results}; o.call(abj);
							} WSBasic.Ajax.processing = false; WSBasic.Info.Loader(false, true);
						}
					}
				}
			}
		}
	}, Info : {
		evalJS : {
			app : function(src, text) {
				var evaled = false; obj = document.createElement('script'), oba = WSBase._func.is_object(WSBasic.Base.Conf.aid); if (obj && oba){
					obj.type = 'text/javascript'; try{
						if (text){
							evaled = true; obj.text = text;
						} else if (src){
							evaled = true; obj.src = src;
						}
					} catch (e){}
				} if (evaled){
					oba.appendChild(obj);
				}
			}, ini : function(s){
				if (s.indexOf('<script') != -1){
					var p = /<script[^\>]*?>([^\x00]*?)<\/script>/ig, arr = []; while (arr = p.exec(s)) {
						var p1 = /<script[^\>]*?src=\"([^\>]*?)\"[^\>]*?(reload=\"1\")?(?:charset=\"([\w\-]+?)\")?><\/script>/i, arr1 = []; arr1 = p1.exec(arr[0]); if(arr1) {
							WSBasic.Info.evalJS.app(arr1[1], false);
						} else {
							p1 = /<script(.*?)>([^\x00]+?)<\/script>/i; arr1 = p1.exec(arr[0]); WSBasic.Info.evalJS.app(false, arr1[2]);
						}
					}
				}
			}, txt : function(s){
				if (s != ''){ 
					var parters = [
						[/\<\!\-\-begineajax\-\-\>([^\x00]+?)\<\!\-\-finishajax\-\-\>/ig, ''], 
						[/<script(.*?)>([^\x00]+?)<\/script>/ig, ''], 
						[/class="viewact"/ig, 'class="ajaxact"'], 
						[/class="form"/ig, 'class="aform"'], 
						[/class="list"/ig, 'class="alist"']
					]; for (var i = 0; i < parters.length; i++){
						s = s.replace(parters[i][0], parters[i][1]);
					}
				} return s;
			}
		}, Closer : {
			Hider : function(o, m){
				var obj = WSBase._func.is_object(o); if (obj && obj.style.display != 'none'){
					obj.style.display = 'none'; obj.innerHTML = obj.style.width = obj.style.height = null;
				} if (m){
					WSBasic.Info.Masker(true);
				}
			}, Timer : {
				hand : null, init  : function(){
					var obj = WSBase._func.is_object(WSBasic.Base.Conf.sid); if (obj && obj.style.display != 'none'){
						obj.onmouseout = function(){try{WSBasic.Info.Closer.Timer.seter();} catch(e){}}; 
						obj.onmouseover = function(){try{WSBasic.Info.Closer.Timer.unset();} catch(e){}}; 
						WSBasic.Info.Closer.Timer.seter();
					} else {
						WSBasic.Info.Closer.Timer.unset();
					}
				}, seter : function(){
					if (WSBasic.Info.Closer.Timer.hand != null){
						clearInterval(WSBasic.Info.Closer.Timer.hand); 
					} WSBasic.Info.Closer.Timer.hand = setInterval('WSBasic.Info.Closer.Hider("' + WSBasic.Base.Conf.sid + '")', 1000);
				}, unset : function(){
					if (WSBasic.Info.Closer.Timer.hand != null){
						clearInterval(WSBasic.Info.Closer.Timer.hand); WSBasic.Info.Closer.Timer.hand = null;
					}
				}
			}
		}, Masker : function(o){
			var obj = WSBase._func.is_object(WSBasic.Base.Conf.mid); if (obj){
				if (o){
					WSBasic.Info.Closer.Hider(obj);
				} else {
					var SZ = {w : Math.max(document.body.clientWidth, document.documentElement.clientWidth), h : Math.max(document.body.clientHeight, document.documentElement.clientHeight)}; 
					obj.style.width = SZ.w + 'px'; obj.style.height = SZ.h + 'px'; obj.style.display = '';
				}
			}
		}, Loader : function(o, c, e){
			var obj = WSBase._func.is_object(WSBasic.Base.Conf.tid); if (obj){
				if (c){
					WSBasic.Info.Closer.Hider(WSBasic.Base.Conf.tid);
				} else {
					var evt = e ? e : window.event, obj = evt.srcElement ? evt.srcElement : evt.target; if (typeof obj.tagName != 'undefined' && WSBase._func.in_array(obj.tagName.toLowerCase(), ['a', 'input'])){
						WSBasic.Info.Titler({obj : obj, txt : o.txt ? o.txt : WSBasic.Base.Lang.ajax});
					}
				}
			}
		}, Slider : function(o){
			/*
			+-----------------------------------
			+	obj:	Object
			+	txt:	内容
			+	css:	样式
			+	cov:	覆盖
			+-----------------------------------
			*/
			var obs = WSBase._func.is_object(WSBasic.Base.Conf.sid), obj = WSBase._func.is_object(o.obj); if (obs && obj && typeof o.txt != 'undefined'){
				obs.className = o.css ? o.css : 'wsbase_slider'; obs.innerHTML = o.txt; obs.style.width = obs.style.height = null; obs.style.display = ''; var XY = WSBasic.Base.posxy(obj), SZ = WSBasic.Base.posxy(obs), BW = Math.max(document.body.clientWidth, document.documentElement.clientWidth); obs.style.top = (XY.y + (o.cov ? 0 : XY.h)) + 'px'; if ((XY.x + SZ.w) > BW){
					obs.style.left = (XY.x + XY.w - SZ.w) + 'px';
				} else {
					obs.style.left = XY.x + 'px';
				} if (XY.w > SZ.w){
					obs.style.width = XY.w + 'px';
				} WSBasic.Info.Closer.Timer.init();
			}
		}, Dialog : {
			ev : {
				_timer_tmp : '', 
				_timer_array : [], 
				_timer_handle : null, 
				ini : function(){
					if (WSBasic.Info.Dialog.ev._timer_handle != null){
						clearInterval(WSBasic.Info.Dialog.ev._timer_handle); WSBasic.Info.Dialog.ev._timer_handle = null; if (WSBasic.Info.Dialog.ev._timer_tmp != ''){
							var loop = 0, tmps = '', srcs = [], srcp = /<script[^\>]*?src=\"([^\>]*?)\"[^\>]*?>[^\>]*?<\/script>/ig; while (srcs = srcp.exec(WSBasic.Info.Dialog.ev._timer_tmp)){
								loop++; WSBasic.Info.Dialog.ev.src(srcs[1]);
							} WSBasic.Info.Dialog.ev._timer_tmp = WSBasic.Info.Dialog.ev._timer_tmp.replace(srcp, ''); if (loop > 0){
								WSBasic.Info.Dialog.ev._timer_handle = setInterval('WSBasic.Info.Dialog.ev.txt()', loop * 150);
							} else {
								WSBasic.Info.Dialog.ev.txt();
							}
						}
					}
				}, txt : function(){
					if (WSBasic.Info.Dialog.ev._timer_handle != null){
						clearInterval(WSBasic.Info.Dialog.ev._timer_handle);
						WSBasic.Info.Dialog.ev._timer_handle = null;
					} if (WSBasic.Info.Dialog.ev._timer_tmp != ''){
						var results = new Array(), pattern = /<script(.*?)>([^\x00]+?)<\/script>/ig; while(results = pattern.exec(WSBasic.Info.Dialog.ev._timer_tmp)) {
							WSBasic.Info.Dialog.ev.run(results[2]);
						} WSBasic.Info.Dialog.ev._timer_tmp = null;
					}
				}, src : function(src){
					if (src && src != '' && !WSBase._func.in_array(src, WSBasic.Info.Dialog.ev._timer_array)){
						var ow = WSBase._func.is_object(WSBasic.Base.Conf.aid); if (ow){
							var obj = document.createElement('script'); if (obj){
								obj.type = 'text/javascript'; try{
									obj.src = src;
								} catch (err){
								} ow.appendChild(obj); WSBasic.Info.Dialog.ev._timer_array.push(src);
							}
						}
					}
				}, run : function(txt){
					var ow = WSBase._func.is_object(WSBasic.Base.Conf.aid); if (ow){
						var obj = document.createElement('script'); if (obj){
							obj.type = 'text/javascript'; try{
								obj.text = txt;
							} catch (err){
							} ow.appendChild(obj);
						}
					}
				}, set : function(txt){
					if (txt != ''){ 
						if (txt.indexOf('script') != -1){
							WSBasic.Info.Dialog.ev._timer_tmp = txt;
							WSBasic.Info.Dialog.ev._timer_handle = setInterval('WSBasic.Info.Dialog.ev.ini()', 150); 
						} var parters = [
							[/\<\!\-\-begineajax\-\-\>([^\x00]+?)\<\!\-\-finishajax\-\-\>/ig, ''], 
							[/<script(.*?)>([^\x00]+?)<\/script>/ig, ''], 
							[/class="viewact"/ig, 'class="ajaxact"'], 
							[/class="form"/ig, 'class="aform"'], 
							[/class="list"/ig, 'class="alist"']
						]; for (var i = 0; i < parters.length; i++){
							txt = txt.replace(parters[i][0], parters[i][1]);
						}
					} return txt;
				}
			}, bd : function(o){
				results  = '<table cellpadding="0" cellspacing="0" class="wsbase_border">';
				results += '<tr><td class="wsbd1 wsbase_opacity"></td><td class="wsbd2 wsbase_opacity"></td><td class="wsbd3 wsbase_opacity"></td></tr>';
				results += '<tr><td class="wsbd4 wsbase_opacity"></td><td class="wsbd5">';
				results += '<div id="' + WSBasic.Base.Conf.did + '_draghandle" class="d_h">';
				results += '<div class="d_h_l">' + o.ti + ' &nbsp;</div>';
				results += '<div class="d_h_r"><a href="#" onclick="WSBasic.Info.Closer.Hider(\'' + WSBasic.Base.Conf.did + '\', true); return false"></a></div>';
				results += '</div><div class="d_c">' + o.txt + '</div>';
				results += '</td><td class="wsbd6 wsbase_opacity"></td></tr>';
				results += '<tr><td class="wsbd7 wsbase_opacity"></td><td class="wsbd8 wsbase_opacity"></td><td class="wsbd9 wsbase_opacity"></td></tr></table>';
				return results;
			}, on : function(o){
				/*
				+-------------------------------
				+	ti:		标题
				+	txt:	内容
				+-------------------------------
				*/
				var obj = WSBase._func.is_object(WSBasic.Base.Conf.did); if (obj){
					o.txt = WSBasic.Info.Dialog.ev.set(o.txt);
					o.txt = WSBasic.Info.Dialog.bd(o);
					obj.style.width = obj.style.height = null; obj.innerHTML = o.txt; obj.style.display = ''; var XY = WSBasic.Base.posxy(obj), BW = Math.max(document.body.clientWidth, document.documentElement.clientWidth), BH = Math.max(document.body.clientHeight, document.documentElement.clientHeight), ST = Math.max(document.body.scrollTop, document.documentElement.scrollTop), SC = document.documentElement.clientHeight; if (XY.h < BH){
						if (XY.h > SC){
							if ((ST + XY.h) > BH){
								obj.style.top = (BH - XY.h) + 'px';
							} else {
								obj.style.top = ST + 'px';
							}
						} else {
							obj.style.top = ST + parseInt((SC - XY.h) / 2) + 'px';
						}
					} if (XY.w < BW){
						obj.style.left = parseInt((BW - XY.w) / 2) + 'px';
					} WSBasic.Drag.Mover.Reger(WSBasic.Base.Conf.did); WSBasic.Info.Masker();
				}
			}
		}, Xmltxt : function(o){
			var obj = WSBase._func.is_object(o.obj), obd = WSBase._func.is_object(WSBasic.Base.Conf.did); if (obj && o.txt){
				if (obj.innerHTML = WSBasic.Info.evalJS.txt(o.txt)){
					WSBasic.Info.evalJS.ini(o.txt);
				}
			} WSBasic.Info.Closer.Hider(obd, true);
		}, Inputs : function(o){
			var obj = WSBase._func.is_object(WSBasic.Base.Conf.iid); if (obj && o.obj && o.txt){
				obj.style.width = obj.style.height = obj.innerHTML = null;
				obj.innerHTML = '<span>' + o.txt + '</span>'; obj.style.display = ''; 
				var XY = WSBasic.Base.posxy(o.obj), SZ = WSBasic.Base.posxy(obj); obj.style.top = (XY.y + 1) + 'px'; obj.style.left = (XY.x + (o.ipt ? XY.w : 0) - 5) + 'px'; if (!o.ipt){
					var ST = Math.max(document.body.scrollTop, document.documentElement.scrollTop); if (ST > XY.y){
						if (document.body.scrollTop){
							document.body.scrollTop = XY.y;
						} else if (document.documentElement.scrollTop){
							document.documentElement.scrollTop = XY.y ;
						}
					}
				} obj.onclick = function(){
					WSBasic.Info.Closer.Hider(this);
				}
			}
		}, Titler : function(o){
			if (o.obj && o.txt != ''){
				var obj = WSBase._func.is_object(o.obj); if (obj){
					var XY = WSBasic.Base.posxy(obj), obt = WSBase._func.is_object(WSBasic.Base.Conf.tid); if (obt){
						obt.style.width = obt.style.height = obt.innerHTML = null;
						obt.innerHTML = '<div class="ah"></div><div class="ac">' + o.txt.replace(/\\n/g, '<br />') + '</div>';
						obt.style.display = '';
						obt.style.top = (XY.y + XY.h) + 'px';
						obt.style.left = XY.x + 'px';
						obt.onclick = function(){
							WSBasic.Info.Closer.Hider(this);
						}
					}
				}
			}
		}, Applog : function(o){
			var W = screen.availWidth, H = screen.availHeight, w = 580, h = 420, x = 0, y = 0; x = parseInt((W - w) / 2); y = parseInt((H - h) / 2); return window.open(
				o.url, 
				'parent', 
				'height=' + h + ', width=' + w + ', top=' + y + ', left=' + x + ', toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no'
			); return WSBasic.Info.Dialog.on( {
					ti : o.ti, 
					txt : '<iframe src="' + o.url + '" width="100%" height="400" frameborder="0" scrolling="no"></iframe>' 
				}
			); 
		}, Finish : function(msg){
			var obj = WSBase._func.is_object(WSBasic.Base.Conf.fid); if (obj){
				obj.style.width = obj.style.height = null; obj.innerHTML = msg ? msg : WSBasic.Base.Lang.finish; obj.style.display = 'block'; var XY = WSBasic.Base.posxy(obj), BD = {
					w : Math.max(document.body.clientWidth, document.documentElement.clientWidth), 
					h : document.documentElement.clientHeight, 
					t : Math.max(document.body.scrollTop, document.documentElement.scrollTop)
				}; obj.style.top = (BD.t + BD.h - XY.h - 5) + 'px'; obj.style.left = (BD.w - XY.w - 5) + 'px'; obj.onclick = function(e){
					obj.style.display = 'none'; obj.onclick = null;
				};
			}
		}
	}, Drag : {
		Mover : {
			POS : [], Reger : function(id){
				var obj = WSBase._func.is_object(id), drag = WSBase._func.is_object(id + '_draghandle'); if (obj && drag){
					drag.onmousedown = function(evt){
						try{
							WSBasic.Drag.Mover.Init(evt, obj, drag);
						} catch(err){}
					};
				}
			}, Init : function(e, obj, drag){
				var evt = e ? e : window.event; WSBasic.Drag.Mover.POS = [evt.clientX, evt.clientY, parseInt(obj.style.left), parseInt(obj.style.top)]; document.onmousemove = function(evt) {
					try{
						WSBasic.Drag.Mover.Move(evt, obj);
					} catch(err) {}
				}; document.onmouseup = function(evt) {
					try{
						WSBasic.Drag.Mover.Lock();
					} catch(err) {}
				}; WSBasic.Drag.Mover.Evnt(evt);
			}, Move : function(e, obj){
				var evt = e ? e : window.event, NewXY = [
					evt.clientX, 
					evt.clientY
				], LmtXY = [
					document.body.clientWidth - parseInt(obj.offsetWidth), 
					Math.max(document.body.clientHeight, document.documentElement.clientHeight) - parseInt(obj.offsetHeight)
				], SetXY = [
					WSBasic.Drag.Mover.POS[2] + NewXY[0] - WSBasic.Drag.Mover.POS[0], 
					WSBasic.Drag.Mover.POS[3] + NewXY[1] - WSBasic.Drag.Mover.POS[1]
				]; if (SetXY[0] < 0){
					SetXY[0] = 0;
				} else if (SetXY[0] > LmtXY[0]) {
					SetXY[0] = LmtXY[0];
				} if (SetXY[1] < 0){
					SetXY[1] = 0;
				} obj.style.left = SetXY[0] + 'px'; obj.style.top = SetXY[1] + 'px'; WSBasic.Drag.Mover.Evnt(evt);
			}, Lock : function(){
				WSBasic.Drag.Mover.POS = []; 
				document.onmousemove = null;
				document.onmouseup = null;
			}, Evnt : function(e){
				var evt = e ? e : window.event; if(evt) {
					if(WSBase.Browser.IE) {
						evt.returnValue = false;
						evt.cancelBubble = true;
					} else if(evt) {
						evt.stopPropagation();
						evt.preventDefault();
					}
				}
			}
		}
	}
}, HTMLER = {
	updater : function(url){
		var obj = WSBase._func.is_object('htmlupdateform'); if (obj && typeof obj.src != 'undefined' && url != ''){
			obj.src = url.replace(/\&amp;/ig, '&');
		}
	}
}, flasher = {
	swf : 'themes/focus.swf', 
	ader : function(v1, v2, v3, v4, v5, v6, v7, v8){
		v1 = !isNaN(v1) && v1 > 0 ? parseInt(v1) : 240;
		v2 = !isNaN(v2) && v2 > 0 ? parseInt(v2) : 180; if (v7){ v2 += 20; }
		v6 = !isNaN(v6) && v6 > 0 ? parseInt(v6) : 5000;
		var ks = ['v1', 'v2', 'v3', 'v4', 'v5', 'v6', 'v7'], vs = [v1, v2, v3, v4, v5, v6, v7], tmp = vr = cm = '';
		var uri = (v8 ? v8 : '/') + this.swf;
		tmp += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + v1 + '" height="' + v2 + '">';
		tmp += '<param name="movie" value="' + uri + '" />';
		tmp += '<param name="allowScriptAccess" value="sameDomain" />';
		tmp += '<param name="quality" value="high" />';
		tmp += '<param name="menu" value="false" />';
		tmp += '<param name="wmode" value="opaque" />';
		for (var i = 0; i < ks.length; i++){ vr += cm + ks[i] + '=' + vs[i]; cm = '&amp;';
			tmp += '<param name="' + ks[i] + '" value="' + vs[i] + '" />';
		}
		tmp+='<param name="FlashVars" value="' + vr + '" />';
		tmp+='<embed src="' + uri + '?' + vr + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + v1 + '" height="' + v2 + '"></embed>';
		tmp += '</object>';
		document.write(tmp);
	}
}, marqueer = {
	spd : 10, 
	had : [], 
	cfg : [], 
	uper : function(id, height, limit, second){
		var obj = WSBase._func.is_object(id); if (obj){ alert('obj = ' + obj);
			var limit = !isNaN(limit) && limit > 0 ? parseInt(limit) : 100;
			var second = !isNaN(second) && second > 0 ? parseInt(second) : 5;
			var height = !isNaN(height) && height > 0 ? parseInt(height) : 200;
			var mheight = obj.offsetHeight, message = obj.innerHTML;
			if (mheight > height){
				message = message.replace(/href/g, 'onmouseover="marqueer.upstop(\'' + id + '\')" onmouseout="marqueer.upstart(\'' + id + '\')" href'); 
				message += message;
				obj.style.height = height + 'px';
				obj.style.overflow = 'hidden';
				obj.innerHTML = message;
				this.cfg[id] = [id, height, limit, mheight, second];
				this.updo(id, true);
			}
		}
	},
	updo : function(id, init){
		var obj = WSBase._func.is_object(id); if (obj){
			if (init){
				obj.scrollTop = this.cfg[id][3];
				this.had[id] = setInterval('marqueer.updo("' + id + '")', this.cfg[id][4] * 1000);
				return true;
			} else {
				clearInterval(this.had[id]);
			} var Toped = obj.scrollTop + 1; if (Toped > this.cfg[id][3]){
				Toped = 1;
			} obj.scrollTop = Toped; if (Toped % this.cfg[id][2] == 0 || Toped == this.cfg[id][3]){
				this.had[id] = setInterval('marqueer.updo("' + id + '")', this.cfg[id][4] * 1000);
			} else {
				this.had[id] = setInterval('marqueer.updo("' + id + '")', this.spd);
			}
		}
	}, 
	upstop : function(id){
		clearInterval(this.had[id]);
	},
	upstart : function(id){
		this.had[id] = setInterval('marqueer.updo("' + id + '")', this.cfg[id][4] * 1000);
	}
}, WSUtility = {}; function $(id){
	return WSBase._func.is_object(id);
} 
