//-----------------------------------------------------------------------------------------------
//Page reload - during chaning window size
//-----------------------------------------------------------------------------------------------
function ReloadPage() {
	
	location.reload();

}

//-----------------------------------------------------------------------------------------------
// Higlighting and bluring rows
//-----------------------------------------------------------------------------------------------


var oldCellColor = "#000";

function focusRow(row) {
	var cells = row.cells;
	if (!cells) return;
	oldCellColor = cells[0].style.backgroundColor;
	for (var i=0;i<cells.length;i++) {
		cells[i].style.backgroundColor='rgb(242,242,242)';
		
		
		
	}
}
function blurRow(row) {
	var cells = row.cells;
	if (!cells) return;
	for (var i=0;i<cells.length;i++) {
		cells[i].style.backgroundColor=oldCellColor;
	}
}


var oldCellColor = "#000";

function focusRow_2(row) {
	var cells = row.cells;
	if (!cells) return;
	oldCellColor = cells[0].style.backgroundColor;
	for (var i=0;i<cells.length;i++) {
		cells[i].style.backgroundColor='rgb(230,230,230)';
		
		
		
	}
}
function blurRow_2(row) {
	var cells = row.cells;
	if (!cells) return;
	for (var i=0;i<cells.length;i++) {
		cells[i].style.backgroundColor=oldCellColor;
	}
}






//-----------------------------------------------------------------------------------------------
// Status bar display blocking
//-----------------------------------------------------------------------------------------------


function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT )
{
document.onmouseover=hidestatus
document.onmouseout=hidestatus

}


//-----------------------------------------------------------------------------------------------
// BLOCKING STATUS BAR DISPLAY
//-----------------------------------------------------------------------------------------------


messageNum = 0;
//first message to be displayed in 3000 - pomeni 3 seconds
setTimeout("messageChanger();", 1);

//second message
function messageChanger() {
if (messageNum ==0) {
defaultStatus = "          ";
messageNum = 1;
} else {
defaultStatus = "          ";
messageNum = 0;
}

//Schedule the next message
setTimeout("messageChanger();", 1);
} 




//-----------------------------------------------------------------------------------------------
// VIŠINA CELICE IZRAČUN
//-----------------------------------------------------------------------------------------------


function Visina () {
 var ih; // Set inner width and height
 if (window.innerWidth == null) {
  ih=document.body.clientHeight - 219;
  //alert(ih);
 }
 else {
  ih = window.innerHeight - 219;
 
 }

document.write("<td width=200 align=right valign=top height=" + ih + " class=ND_BG>");

}
