
var URL=Class.create({initialize:function(options){this.options={file:'dummy.php',modfkt:null,modId:null,admin:inAdmin,pid:null,id:null,adminURL:(aAdminUrl)?aAdminUrl:null,selfMade:null};Object.extend(this.options,options||{});this.createURL();},createURL:function(){this.URL=(this.options.admin)?this.options.adminURL+"/":"/";this.URL+=this.options.file+"?";this.spacer="";if(this.options.modId) {this.URL+="module="+this.options.modId;this.spacer="&"}if(this.options.modfkt){
this.URL+=this.spacer+"modfkt="+this.options.modfkt; this.spacer="&";}if(this.options.id){this.URL+=this.spacer+"id="+this.options.id; this.spacer="&"}if(this.options.pid){
this.URL+=this.spacer+"pid="+this.options.pid+"&ajax=1"; this.spacer="&";}if(this.options.selfMade) {
var sp = this.options.selfMade.split("/");if (sp.length > 0) {var i = 0;do {this.URL += this.spacer + sp[i] + "=" + sp[(i+1)];this.spacer="&";i+=2;} while(i < sp.length);}
}},getURL:function(){return this.URL;}});

