/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +--------------------------------------------------------+
// | Copyright : Song Hyo-Jin <shj at xenosi.de>            |
// +--------------------------------------------------------+
//
// $Id: xenofw.get.js, 2006. 2. 4. crucify Exp $
var _get=new Array();function parseGet(){var d,f,c,b,a=new Array(),g;f=/\?/;if(!f.test(location.href)){return true}d=location.href.replace(/^.*\?/,"");if(d==""){return true}d=d.split("&");f=/^([^=]+)=?(.*)$/;c=/^(.*)\[(\d*)\]$/;for(b=0;b<d.length;b++){if(!f.test(d[b])){window.alert("error")}a[0]=RegExp.$1;a[1]=RegExp.$2;if(c.test(a[0])){if(RegExp.$2==""){try{_get[RegExp.$1].push(a[1])}catch(g){_get[RegExp.$1]=new Array();_get[RegExp.$1][0]=a[1]}}else{try{_get[RegExp.$1][RegExp.$2]=a[1]}catch(g){_get[RegExp.$1]=new Array();_get[RegExp.$1][RegExp.$2]=a[1]}}}else{_get[a[0]]=a[1]}}return true}parseGet();

