<!--
		
function generatepass(plength){
		var keylist = "abcdefghijklmnopqrstuvwxyz1234567890";
		temp = '';
		for (i=0; i<plength; i++)
				temp += keylist.charAt(Math.floor(Math.random()*keylist.length));
		return temp;
}

function getObjFromID(elmID) {
    //var v = this.getValidator();

    //if(!v.isString(elmID)) {return elmID;}

    if(document.getElementById) {ObjElmID = document.getElementById(elmID);}
    else if(document.all) {ObjElmID = document.all[elmID];}
    else if(document.layers) {ObjElmID = getObjLayer(elmID);}
    else if(document.forms) {
        if(document.forms[elmID]) {getObjLayer = document.forms[elmID];}
        else {
            for(var i=0; i<document.forms.length; i++) {
                if(document.forms[i][elmID]) {
                    getObjLayer = document.forms[i][elmID];
                    break;
                }
            }
        }
    }
    else {elmID = null;}

    return ObjElmID;
}

function parseQueryStringValue(queryString) {
		var params = {};
		(queryString||getQueryString()).replace('?','').split('&').each(function(group){
			var pair = group.split('='); 
			params[ pair[0] ] = pair[1];
		}, this);
		return params;
}

function getQueryStringValue(name, params) {
		if (params[name]) {
			return params[name];
		} else {
			return false;
		}
}

function getStringUTF8Decode(utftext) {
		
		var string = "";
		var i = 0;
		var c = c1 = c2 = 0;

		while ( i < utftext.length ) {

				c = utftext.charCodeAt(i);

				if (c < 128) {
						string += String.fromCharCode(c);
						i++;
				}
				else if((c > 191) && (c < 224)) {
						c2 = utftext.charCodeAt(i+1);
						string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
						i += 2;
				}
				else {
						c2 = utftext.charCodeAt(i+1);
						c3 = utftext.charCodeAt(i+2);
						string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
						i += 3;
				}

		}

		return string;
}


//-->
