Base d'URL obtener
function getBaseUrl() {
var re = new RegExp(/^.*\//);
document.getElementById('baseresult').innerHTML += re.exec(window.location.href);
}
Helpless Hamster