function get_url_vars() {
    var result = {};
    var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { result[key] = decodeURIComponent(value); });
    return result;
}
function getQueryParameters(qs) {
    qs = qs.split("+").join(" ");
    var params = {};
    var tokens;

    var i= 0;
    while (tokens= /[?&]?([^=]+)=([^&]*)/g.exec(qs)) {
    	i= i+1;
    	alert(tokens[1]);
    	if(i>5) return false;
        params[decodeURIComponent(tokens[1])]
            = decodeURIComponent(tokens[2]);
    }

    return params;
}
function get_param_decode(value){
	if(jQuery.url.param(value)==undefined){
		return '';
	}
	return decodeURIComponent(jQuery.url.param(value));
}
function autotab(obj,destination){
    if(obj.getAttribute("maxlength") && obj.value.length==obj.getAttribute("maxlength")){
        $("#"+destination).focus();
    }
}
