function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
	var anchor = anchors[i];
	if (anchor.getAttribute("href") &&
	anchor.getAttribute("rel") == "external")
	anchor.target = "_blank";
	}
}

function showDetails(loc,w,h) {
w = w+18;
h = h+18;
  detailWin = window.open(loc,"_detailWin", "width="+w+", height="+h+", menubar=no, scrollbars=no, resizable=no");
	if (detailWin) {
	  detailWin.focus();
		return false;
	} else {
		return true;
	} 
}


window.onload = externalLinks;
//window.onbeforeunload = function() {document.getElementById('contai').style.display = 'block';};
window.onbeforeunload = function() {document.body.style.cursor = 'wait';}

function clearBgReg_brand(obj) {
	obj.style.background = '#fbaa41';
}
function clearBgReg_fitness(obj) {
	obj.style.background = '#ff9933';
}
function clearBgReg_ostatni(obj) {
	obj.style.background = '#98bff6';
}	
function clearBgReg_vernostni(obj) {
	obj.style.background = '#fbaa41';			
}

function poslim(kam)
{
	location.href='index.php?module=poslat_link&amp;REF='.kam;
}



