

function isIE() {
	if(document.all) return true;
	return false;
}

function getFocus(evnt){
    var obj
	if (isIE()) {
		obj = event.srcElement;
	}else {
		obj = evnt.target;
	}
	//var obj= event.srcElement;
}

function lostFocus(evnt){
    var obj
	if (isIE()) {
		obj = event.srcElement;
	}else {
		obj = evnt.target;
	}
    //var obj= event.srcElement;
}

function showInfo(obj,statecode){
    var Infobox=getInfobox(obj)
    if(Infobox.className != "ErrorMsg"){
        if (statecode==0){
            Infobox.className = "WarningMsg";
            Infobox. innerHTML=getErrorMsg(obj,0)
        }
        if (statecode >0 ){
            Infobox.className = "ErrorMsg";
           Infobox. innerHTML=getErrorMsg(obj,1) 
        }
        if (statecode < 0){
            Infobox.className = "HintMsg";
           Infobox. innerHTML=getErrorMsg(obj,0) 
        }
    }
}


String.prototype.trim = function()
{
    return this.replace(/(^\s*)|(\s*$)/g, "");
}

