function userquery(uUrl,type) { //ex.: set uUrl to location.href and type to "id=" query2=""; query1=""; kommando=""; url = uUrl; pos = url.indexOf("&"); //check to see if there is a query if (pos!=-1) { query1 = url.substring(pos+1); // get all query after & kommando=query1; pos = query1.indexOf(type); //position of the string we wanna find if (pos!=-1) { //find the target query we wanna get via the variable query2 = query1.substring(pos); pos2 = query2.indexOf("&"); //check to see if there are more user query if (pos2!=-1) { return kommando=query2.substring(type.length,pos2); //get rid of the rest } else { return kommando=query2.substring(type.length); } } return false; } return false; } //********************************************** function getUrlOnly(url) { pos = url.indexOf("&"); if (pos!=-1) { query1 = url.substring(0,pos); // get all query after & } return query1 } //********************************************** function redirect(wframe) { thisloc = document.location.href param=userquery(thisloc,wframe+"="); if (param) { return param; } else { return eval(wframe); } } //********************************************** function getPath() { upath=location.pathname; upath=upath.toLowerCase(); s = upath.indexOf(".nsf") if(s != -1) { upath=upath.substring(0,s+1) i = upath.lastIndexOf("/"); usrPath=upath.substring(0,i+1); return usrPath; } return; }