<!--

	function BtnClick(event, btnid)
	{
		var btnObj = gid(btnid);
		if (btnObj)
		{
			var e = (event||window.event);
			if (e.keyCode == 13)
			{
				btnObj.click();
				return false;
			}
		}
		return true;
	}

	function ClickButton(event, buttonid, h)
	{
		var btnObj = gid(buttonid);
		if (btnObj)
		{
			var e = (event||window.event);
			if (e.keyCode == 13)
			{
				btnObj.click();
				return false;
			}
		}
		return true;
	}




	function Browser()
	{
		var ua, s, i;
		this.isIE = false;
		this.isNS = false;
		this.isOP = false;
		this.isSF = false;
		ua = navigator.userAgent.toLowerCase();

		s = "opera";
		if ((i = ua.indexOf(s)) >= 0) {
			this.isOP = true;
			return;
		}

		s = "msie";
		if ((i = ua.indexOf(s)) >= 0) {
			this.isIE = true;
			return;
		}

		s = "netscape6/";
		if ((i = ua.indexOf(s)) >= 0) {
			this.isNS = true;
			return;
		}

		s = "gecko";
		if ((i = ua.indexOf(s)) >= 0) {
			this.isNS = true;
			return;
		}
		
		s = "safari";
		if ((i = ua.indexOf(s)) >= 0) {
			this.isSF = true;
			return;
		}
	}


	var ygPos=new function()
	{
		this.getPos=function(oEl)
		{
			var pos=[oEl.offsetLeft,oEl.offsetTop];
			var parent=oEl.offsetParent;
			var tmp={x:null,y:null};
			if(parent!=oEl)
			{
				while(parent)
				{
					if (browser.isIE)
					{
						if(_getStyle(parent,'position')=='relative'&&_getStyle(oEl,'width')=='auto'&&!(_getStyle(oEl,'position')!='static'))
						{
							return[oEl.offsetLeft,oEl.offsetTop];
						}
						else if(_getStyle(parent,'width')!='auto'||_getStyle(oEl.parentNode,'position')!='static')
						{
							tmp.x=parseInt(_getStyle(parent,'borderLeftWidth'));
							tmp.y=parseInt(_getStyle(parent,'borderTopWidth'));
							if(!isNaN(tmp.x))pos[0]+=tmp.x;
							if(!isNaN(tmp.y))pos[1]+=tmp.y;
						}
					}
					else if (browser.isNS)
					{
						if(_getStyle(parent,'position')=='relative')
						{
							tmp.x=parseInt(_getStyle(parent,'border-left-width'));
							tmp.y=parseInt(_getStyle(parent,'border-top-width'));
							if(!isNaN(tmp.x))pos[0]+=tmp.x;
							if(!isNaN(tmp.y))pos[1]+=tmp.y;
						}
						break;
					}
					pos[0]+=parent.offsetLeft;
					pos[1]+=parent.offsetTop;
					parent=parent.offsetParent;
				}
			}
			if(browser.isIE && _getStyle(oEl,'width')!='auto'&&_getStyle(oEl.offsetParent,'width')=='auto'&&_getStyle(oEl.offsetParent,'position')=='relative')
			{
				parent=oEl.parentNode;
				while(parent.tagName!='HTML')
				{
					tmp.x=parseInt(_getStyle(parent,'marginLeft'));
					tmp.y=parseInt(_getStyle(parent,'paddingLeft'));
					if(!isNaN(tmp.x))pos[0]-=tmp.x;
					if(!isNaN(tmp.y))pos[0]-=tmp.y;
					parent=parent.parentNode;
				}
			}
			return pos;
		}
		
		this.getX=function(oEl)
		{
			return this.getPos(oEl)[0];
		}
		
		this.getY=function(oEl)
		{
			return this.getPos(oEl)[1];
		}
		
		this.getSize=function(oEl)
		{
			var size=[oEl.offsetWidth,oEl.offsetHeight];
			var tmp={w:null,h:null};
			if (browser.isIE)
			{
				tmp.w=null;
				tmp.h=null;
			}
			else if (browser.isNS)
			{
				tmp.w=parseInt(_getStyle(oEl,'border-left-width'));
				tmp.h=parseInt(_getStyle(oEl,'border-top-width'));
			}
			if(!isNaN(tmp.w))size[0]-=tmp.w;
			if(!isNaN(tmp.h))size[1]-=tmp.h;
			return size;
		}

		this.getWidth=function(oEl)
		{
			return this.getSize(oEl)[0];
		}

		this.getHeight=function(oEl)
		{
			return this.getSize(oEl)[1];
		}

		this.setPos=function(oEl,endPos)
		{
			var offset=[0,0];
			var delta=
			{
				x:0,y:0
			};
			var curStylePos=_getStyle(oEl,'position');
			if(curStylePos=='static')
			{
				oEl.style.position='relative';
				curStylePos='relative';
			}
			if(oEl.offsetWidth)
			{
				if(curStylePos=='relative')
				{
					offset=this.getPos(oEl);
					var tmp=
					{
						x:_getStyle(oEl,'left'),y:_getStyle(oEl,'top')
					};
					delta.x=(tmp.x&&tmp.x.indexOf('px')!=-1)?parseInt(tmp.x):0;
					delta.y=(tmp.y&&tmp.y.indexOf('px')!=-1)?parseInt(tmp.y):0;
				}
				else
				{
					offset=this.getPos(oEl.offsetParent);
					var tmp=
					{
						x:_getStyle(oEl,'margin-left'),y:_getStyle(oEl,'margin-top')
					};
					delta.x=(tmp.x&&tmp.x.indexOf('px')!=-1)?0-parseInt(tmp.x):0;
					delta.y=(tmp.y&&tmp.y.indexOf('px')!=-1)?0-parseInt(tmp.y):0;
				}
			}
			if(browser.isSF)
			{
				if(oEl.offsetParent&&oEl.offsetParent.tagName=='BODY')
				{
					if(_getStyle(oEl,'position')=='relative')
					{
						delta.x-=document.body.offsetLeft;
						delta.y-=document.body.offsetTop;
					}
					else if(_getStyle(oEl,'position')=='absolute'||_getStyle(oEl,'position')=='fixed')
					{
						delta.x+=document.body.offsetLeft;
						delta.y+=document.body.offsetTop;
					}
				}
			}
			if(endPos[0]!==null)oEl.style.left=endPos[0]-offset[0]+delta.x+'px';
			if(endPos[1]!==null)oEl.style.top=endPos[1]-offset[1]+delta.y+'px';
		}
		
		this.setX=function(oEl,x)
		{
			this.setPos(oEl,[x,null]);
		}
		
		this.setY=function(oEl,y)
		{
			this.setPos(oEl,[null,y]);
		}
		
		var _getStyle=function(oEl,property)
		{
			var dv=document.defaultView;
			if(oEl.style[property])return oEl.style[property];
			else if(oEl.currentStyle)
			{
				if(property.indexOf('-')!=-1)
				{
					property=property.split('-');
					property[1]=property[1].toUpperCase().charAt(0)+property[1].substr(1);
					property=property.join('');
				}
				if(oEl.currentStyle[property])return oEl.currentStyle[property];
			}
			else if(dv&&dv.getComputedStyle(oEl, '')&&dv.getComputedStyle(oEl,'').getPropertyValue(property))
			return dv.getComputedStyle(oEl,'').getPropertyValue(property);
			return null;
		}
		var browser = new Browser();
	}

	function WarpClass(eID, tID, Warp, unWarp, fID, ev)
	{
		var eObj = document.getElementById(eID);
		var tObj = document.getElementById(tID);
		var fObj = document.getElementById(fID);
		if (eObj && tObj)
		{
			if (!tObj.style.display || tObj.style.display == "block")
			{
				tObj.style.display = "none";
				eObj.className = "Warp";
				if( Warp )
					eObj.innerHTML=Warp;
				if (fObj)
				{
					fObj.style.display = "none";
				}
			}
			else
			{
				tObj.style.display = "block";
				eObj.className = "UnWarp";
				if( unWarp )
					eObj.innerHTML=unWarp;
				if (ev)
				{
					eval(ev);
				}
				if (fObj)
				{
					fObj.style.display = "block";
				}
			}
		}
	}
	
	//ToolTip
	var g_tooltip_elm = null;
	var g_tooltip_inner_elm = null;
	var g_tooltip_showing = 0;
	var g_tooltip_link_elm = null;
	var g_tooltip_previous_click = null;
	var g_tip_elm = null;
	
	var _el_is_in_a_link=function(el)
	{
		var p=el;
		while(p)
		{
			if(p.href)
			{
				return 1;
			}
			p=p.parentNode;
		}
		return 0;
	};
	
	function init_tooltip()
	{
		g_tooltip_elm = document.createElement("DIV");
		g_tooltip_inner_elm = document.createElement("DIV");
		g_tooltip_elm.className = "ToolTip";
		g_tooltip_elm.style.display = "none";
		document.body.appendChild(g_tooltip_elm);
		g_tooltip_elm.appendChild(g_tooltip_inner_elm);
	}

	var get_screen_width=function()
	{
		if(window.innerWidth)
		{
			return window.innerWidth;
		}
		else
		{
			if(document.documentElement.clientWidth)
			{
				return document.documentElement.clientWidth;
			}
			else
			{
				if(document.body.clientWidth)
				{
					return document.body.clientWidth;
				}
			}
		}
	};

	function show_tooltip(_1, _2, _3, _4)
	{
		if (!g_tooltip_elm)
		{
			init_tooltip();
		}
		if (g_tooltip_showing)
		{
			if (g_tooltip_link_elm == _1)
			{
				hide_tooltip();
				return ;
			}
			hide_tooltip();
		}
		var _4 = (_4 == undefined) ? "" : _4;
		_3 += _4.length;
		var w = 150;
		if (_3 > 200)
		{
			w = 300;
		}
		else
		{
			if (_3 > 100)
			{
				w = 200;
			}
		}
		g_tooltip_inner_elm.style.width = w + "px";
		var x = ygPos.getX(_1);
		var y = ygPos.getY(_1);
		var _8 = get_screen_width() - 40;
		if (x + w > _8)
		{
			x = _8 - w;
		}
		g_tooltip_elm.style.left = x + "px";
		g_tooltip_elm.style.top = (y + 20) + "px";
		g_tip_elm = document.getElementById(_2);
		g_tooltip_inner_elm.innerHTML = g_tip_elm.innerHTML + _4;
		g_tooltip_showing = 1;
		g_tooltip_elm.style.display = "block";
		g_tooltip_link_elm = _1;
		document.onmousedown = doc_mousedown;
	}
	
	function doc_mousedown(e)
	{
		var _10 = get_e_src(e);
		if (_10 == g_tooltip_link_elm || (_el_is_in_a_link(_10) && tooltip_el_is_in_tooltip(_10)))
		{
			document.onmousedown = function() {};
		}
		else
		{
			hide_tooltip();
		}
	}

	function hide_tooltip()
	{
		document.onmousedown = function() {};
		if (!g_tooltip_elm) return false;
		g_tooltip_showing = 0;
		g_tooltip_elm.style.display = "none";
		g_tooltip_link_elm = "null";
		return false;
	}

	var tooltip_el_is_in_tooltip = function(el)
	{
		var p = el;
		while (p)
		{
			if (p == g_tooltip_elm)
			{
				return 1;
			}
			p = p.parentNode;
		}
		return 0;
	};


function checkmail(str)
{
	//var regexp=/^[a-zA-Z0-9_.]{2,25}[@][a-zA-z0-9-]{1,100}[.]([a-zA-Z]{2,4}|[a-zA-Z]{2,4}[.][a-zA-Z]{2})$/g;
	//var regexp = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
	var regexp = /^[\w\-\.]+@[a-z0-9]+(\-[a-z0-9]+)?(\.[a-z0-9]+(\-[a-z0-9]+)?)*\.[a-z]{2,4}$/i;
	return regexp.test(str);
}


-->