//**************************************************************************************************************************************
// skripta za otvaranje velieke slike - autoresize
//**************************************************************************************************************************************
function popimage(imagesrc,naslov,naziv){
	var look='status=no,scrollbars=no, width=300,height=300';
	popwin=window.open('',naziv,look);
	popwin.document.open();
	popwin.document.write('<head><title>'+naslov+'</title></head><body background="images/back_preload.gif" onLoad="self.resizeTo(document.imgItemPic.width+10,document.imgItemPic.height+65)" leftmargin="0" topmargin="0">');
	popwin.document.write('<a href="javascript:this.window.close()"><img name="imgItemPic" alt="'+naslov+'" border="0" vspace="0" hspace="0" src="'+imagesrc+'"></a>');
	popwin.document.write('</body>');
	popwin.document.close();
	popwin.focus();
}
//**************************************************************************************************************************************

function toggleColor(objElement)
			{
			if (objElement.className=='normal')
				objElement.className='focus';
			else
				objElement.className='normal';
			}

function disableEnterKey() {
					if(event.keyCode == 13) 
					event.keyCode=9 //return the tab key
				event.cancelBubble = true       
			}
			

//**************************************************************************************************************************************
//otvaranje novog prozora
//**************************************************************************************************************************************
function newWindow(link,sirina,visina)
{
	var NewWin=window.open(link,'Sezonci','width='+ sirina +',height='+ visina +',toolbar=no,menubar=yes,location=no,scrollbars=yes,resizable=no');
	NewWin.focus()
}
//**************************************************************************************************************************************

<!-- This script works in: Navigator 3 - 4, Opera 3.1, and Explorer 4

if (document.images) {
teston = new Image(); // Active images
teston.src = "test.on.gif";

testoff = new Image(); // Inactive images
testoff.src = "test.off.gif";
}

function imgOn(imgName) {

if (document.images) {
document[imgName].src = eval(imgName + "on.src");
}
}

function imgOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
}
}

// -->
