/* "JJAX" Request Sender 1.1 */
var jjax = {
	req: function(url, options){
		this.url = '';
		this.options = options || {};
		for(var i in this.options.postBody)
			this.url +=	((this.url=='') ? '' : '&') + i + '=' + this.options.postBody[i];
		this.url = url + (this.options.postBody ? '?' : '') + this.url;
		this.send();
	},
	send: function(){
		//prompt("URL", this.url);
		var script = document.createElement('script');
		script.src = this.url;
		script.type = "text/javascript";
		this.options.appendTo ? this.options.appendTo.appendChild(script) : document.body.appendChild(script);
	}
}
