var QueryString = unescape(document.location.search.slice(1)); var ARGV = new Array(); // Parse QUERY_STRING if (0 < QueryString.length) { var arg_list = QueryString.split("&"); if (0 < arg_list.length) { for (var ix=0; ix < arg_list.length; ix++) { var arg = arg_list[ix]; var pair = arg.split("="); if (1 < pair.length) { ARGV[ix] = new String(pair[1]); ARGV[pair[0]] = ARGV[ix]; } } } }