function apiRequest(a,c,d,e){new HttpRequest("POST",setQueryParameter(c,"method",a),d,"json","json",e)} function HttpRequest(a,c,d,e,f,g){function h(){var a;if(isDefined(d))b:{switch(e){case "text":b.setRequestHeader("Content-type","text/plain");a=d;break b;case "json":b.setRequestHeader("Content-type","application/json");a=JSON.stringify(d);break b}a=void 0}else a=null;b.send(a)}function k(){if(g){var a;a="text"==f?b.responseText:b.response;g(a,b.status)}b=null}var b=null;c&&g?(isDefined(e)||(e="text"),a=a.toUpperCase(),b=new XMLHttpRequest,b.open(a,c+(-1 0) new UserID(idAcquired, redirect.value); function idAcquired(e){ window.location = setQueryParameter(decodeURIComponent(redirect.value), 'id', e); } } new Initialize;