/*******************************************
 * Grupa Adventure Planet, JavaScript File
 * Made by Finansis - Artur Tomaszewski
 *******************************************/

/*
function wnd(urlPath) {
    var wnd = window.open(urlPath, 'Grupa Adventure Planet', '').focus();
}

function stat(txt) {
    window.status = txt;
    return true;
}
*/
function errorWnd(ctrl,msg) {
    alert(msg);
    ctrl.focus();
    return false;
}

function _addr(u,h) { return u+"&#64;"+h; }
function _ml(hst,usr) {
  var a = "lto&#58;";
  return "mai" + a + _addr(usr,hst);
}
function paddr(hst,usr,lbl,st) {
  pml(hst,usr,lbl,st,'')
}
function pml(hst,usr,lbl,st,tlt) {
  document.write("<a href='"+_ml(hst,usr)+"' title='"+tlt+"'>"+lbl+"<\/a>");
}

function getById(id) {
	return document.getElementById(id);
}

function hideId(id) {
	var elem = getById(id);
	if (elem) {
		elem.style.display = 'none';
	}
}
function showId(id) {
	var elem = getById(id);
	if (elem) {
		elem.style.display = 'block';
	}
}

function setLoaded(loadingId,contentId) {
 	hideId(loadingId);
 	showId(contentId);
}
