javascript:varurlParts=document.location.href.split('/');if(urlParts[2]==='www.openstreetmap.org'){if(urlParts[3]==="relation"){varidMatch=urlParts[4].match(/\d+/);varobjId=idMatch[0];window.open('http://ra.osmsurround.org/analyzeRelation?relationId='+objId);}else{alert('Only relations can be analysed.');}}else{alert('This is not a supported www.openstreetmap.org page.');}void(0);