// Current Page Reference
// copyright Stephen Chapman, 1st Jan 2005
// you may copy this function but please keep the copyright notice with it
function getMyURL() {

var MyURL = document.URL;

pos = MyURL.indexOf('?')+1;

Param = MyURL.substr(pos,MyURL.length - pos);


var arg = Param.split('&');
ArrLen = arg.length;

ArrLastElem = ArrLen - 1;

var BtnParam = arg[ArrLastElem].split('=');
BtnParam = BtnParam[1];

//document.getElementById("Text1").value = BtnParam;

return BtnParam;

}




                  
