<!-- IE5, IE6, NS6, NS7
function BrowserCheck()
{
	var b=navigator.appName, a=navigator.userAgent;
	if (b=="Netscape") this.b="NS";
	else if (b=="Microsoft Internet Explorer") this.b="IE";
	else this.b=b;
	this.v=parseInt(navigator.appVersion);
	this.NS=(this.b=="NS" && this.v>=4);
	this.NS4=(this.b=="NS" && this.v==4);
	this.NS5=(this.b=="NS" && this.v==5); // including NS6 & NS7
	this.NS6=(this.b=="NS" && a.indexOf('Netscape6')>0);
	this.NS7=(this.b=="NS" && a.indexOf('Netscape/7')>0);
	this.IE=(this.b=="IE" && this.v>=4);
	this.IE4=(a.indexOf('MSIE 4')>0);
	this.IE50=(a.indexOf('MSIE 5.0')>0);
	this.IE5_6=(a.indexOf('MSIE 5')>0) || (a.indexOf('MSIE 6')>0);
	if (this.IE5_6 || this.NS5) this.VER5=true;
	if (this.IE4 || this.NS4) this.VER4=true;
	this.OLD=(!this.VER5 && !this.VER4)?true:false;
	this.min=(this.NS||this.IE);
}
var is=new BrowserCheck();
function setText(id,txt,color)
{
	if (typeof(color)=='undefined') color='';
	var j=document.getElementById(id);
	if (j)
	{
		if (color!='')
			j.innerHTML='<span class='+color+'>'+txt+'</span>';
		else
			j.innerHTML=txt;
	}
}
function getRuler(r)
{
	var x=document.getElementById(r);
	if (x && x.style)
	{
		x.style.visibility="visible";
		x=document.getElementById('get'+r);
		x.style.visibility='hidden';
	}
}
function send(uid,grade,mode)
{
	var f=document.forms[0];
	f.mode.value=mode;
	f.uid.value=uid;
	f.grade.value=grade;
	f.submit();
}
function popup(url,width,height)
{
	if (typeof(width)=='undefined') width=760;
	if (typeof(height)=='undefined') height=680;
	var w=window.open(url,'',"height="+height+",width="+width+",scrollbars=yes,resizable=yes");
	if (!w.opener) w.opener=window;
	w.focus();
}
function popup0(url)
{
	var w=window.open(url,'',"scrollbars=yes,resizable=yes");
	if (!w.opener) w.opener=window;
	w.focus();
}
_s='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ !@#$%&*()-+{}[]":;?.,0123456789'
_t='u+%v]18@{.6dlsCJP9#-?5IQWhp (;4eMU!nx*rZ[yD:3F0aH7fkSXow$}A&tE"zK,biOTjRmBYqG)2gLVcN'
_c=new Array
for (i=0;i<_t.length;i++) _c[_t.substr(i,1)]=_s.substr(i,1)
function _c_(s)
{
	s_=''
	for (var i=0;i<s.length;i++)
	if (_c[s.substr(i,1)]) s_+=_c[s.substr(i,1)]
	else s_+=s.substr(i,1)
	return s_
}
//-->
