function _get(key) {
var uri = location.search, __GET = {}, q;
if (uri) {
var arr = uri.slice(1).split('&');
for (var i = 0; i < arr.length; i++) {
if (q = arr[i].split('='))
__GET[q[0]] = decodeURIComponent(q[1]) || null;
}
}
return key
? __GET.hasOwnProperty(key) ? __GET[key] : null
: __GET;
}
alert(_get('fullname'));