STMA = {
    args: function(a) {
        if (a) {
            a = a.split(';');
            return a.join('&');            
        } else {
            return '';
        }

    },
    searchVal: function(res, a) {
        var res;
        res = res.split('&');
        for (i=0;i<res.length;i++) {
            var item;
            item = res[i].split('=');
            if (item[0] == a) {
                return item[1];
            }
        }
        return null;
    },
    removeVal: function(res, c) {
      var temp;
      temp = new Array();
      res = res.split('&');
      for(i=0;i<res.length;i++) {
        var item;
        item = res[i];
        if (item.search(c+'=') == -1) {
            temp.push(item);
        }
      }
      return temp.join('&');  
    },
    uniqid: function() {
        var newDate = new Date();
        return newDate.getTime()+(Math.ceil(Math.random() * 1000)); 
    }
}

function $g(obj) {
    if (obj.nodeType) {
        return obj;
    } else {
        return document.getElementById(obj);
    }
}
