function displayer_object(){

	this.results = function(results,id){
		this.tmpmsg = '';
		this.tmpjav = '';
		switch (results){
			case 'uu'			: this.tmpmsg = jslang.login_uu;		this.tmpjav = 'document.' + id + '.username.focus()';	break;
			case 'iu'			: this.tmpmsg = jslang.login_iu;		this.tmpjav = 'document.' + id + '.username.focus()';	break;
			case 'up'			: this.tmpmsg = jslang.login_up;		this.tmpjav = 'document.' + id + '.password.focus()';	break;
			case 'ip'			: this.tmpmsg = jslang.login_ip;		this.tmpjav = 'document.' + id + '.password.focus()';	break;
			case 'uc'			: this.tmpmsg = jslang.login_uc;		this.tmpjav = 'document.' + id + '.certid.focus()';		break;
			case 'ic'			: this.tmpmsg = jslang.login_ic;		this.tmpjav = 'document.' + id + '.certid.focus()';		break;
			case 'j_notfound'	: this.tmpmsg = jslang.j_notfound;		this.switcher(id,true);									break;
			case 'j_exprite'	: this.tmpmsg = jslang.j_notfound;		this.switcher(id,true);									break;
			case 'j_reapply'	: this.tmpmsg = jslang.j_reapply;		this.switcher(id,true);									break;
			case 'j_applied'	: this.tmpmsg = jslang.j_applied;		this.switcher(id,true);									break;
			case 'j_iage'		: this.tmpmsg = jslang.j_iage;			this.switcher(id,true);									break;
			case 'j_isex'		: this.tmpmsg = jslang.j_isex;			this.switcher(id,true);									break;
			case 'j_iedu'		: this.tmpmsg = jslang.j_iedu;			this.switcher(id,true);									break;
			case 'j_iexp'		: this.tmpmsg = jslang.j_iexp;			this.switcher(id,true);									break;
			case 'j_ic'			: this.tmpmsg = jslang.j_ic;																	break;
			case 'j_rsms'		: this.tmpmsg = jslang.j_rsms;																	break;
			case 'j_s_apply'	: this.tmpmsg = jslang.j_s_apply;		this.switcher(id,true);									break;
			case 'j_f_apply'	: this.tmpmsg = jslang.j_f_apply;		this.switcher(id,true);									break;
			case 'j_f_faver'	: this.tmpmsg = jslang.j_f_faver;		this.switcher(id,true);									break;
			case 'j_refaver'	: this.tmpmsg = jslang.j_refaver;		this.switcher(id,true);									break;
			case 'j_s_faver'	: this.tmpmsg = jslang.j_s_faver;		this.switcher(id,true);									break;

			case 'e_to'			: this.tmpmsg = jslang.e_to;			this.tmpjav = 'document.' + id + '.receiver.focus()';	break;
			case 'e_ito'		: this.tmpmsg = jslang.e_ito;			this.tmpjav = 'document.' + id + '.receiver.focus()';	break;
			case 'e_ic'			: this.tmpmsg = jslang.e_ic;			this.tmpjav = 'document.' + id + '.certid.focus()';		break;
			case 'e_s'			: this.tmpmsg = jslang.e_s;				this.switcher(id,true);									break;

			default				:										this.switcher(id,true);									break;
		}
		if (this.tmpmsg != ''){
			alert(this.tmpmsg + "\t");
		}
		if (this.tmpjav != ''){
			eval(this.tmpjav);
		}
	}

	this.vlogin = function(fname,results){
		if (fname){
			var theform = eval('document.' + fname);
		}else{
			var theform = false;
		}
		if (theform){
			if (theform.username.value == ''){
				this.results('uu',fname);
				return false;
			}else if (theform.password.value == ''){
				this.results('up',fname);
				return false;
			}else if (theform.certid && theform.certid.value == ''){
				this.results('ic',fname);
				return false;
			}
		}
	}

	this.loginer = function(id){
		Ajax.xml('display&amp;option=login&amp;extent=comcontact&amp;info=' + id,'loginer_' + id);
	}

	this.location = function(url){
		window.location = url;
	}

}
displayer = new displayer_object();