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