// Current Page Reference
// copyright Stephen Chapman, 1st Jan 2005
// you may copy this function but please keep the copyright notice with it
function getURL() 
{	
    var dir = location.href.substring(0, location.href.lastIndexOf('\/'));
    var dom = dir; 
    if (dom.substr(0,7) == 'http:\/\/') 
    {
        dom = dom.substr(7);
    }
    var path = ''; 
    var pos = dom.indexOf('\/'); 
    if (pos > -1) 
    {
        path = dom.substr(pos+1); 
        dom = dom.substr(0,pos);
    }
    var page = location.href.substring(dir.length+1, location.href.length+1);
    uri =   location;
}

    