function popUp(URL, height, width){
        day = new Date();
        id = day.getTime();
        if (!height){
                height=350;
        }
		if (!width){
                width=800;
        }
        eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width="+width+",height="+height+",left = 150,top = 100');");
}

function insertHand (x) {
        if(navigator.appName=='Netscape') {
                x.style.cursor='pointer';
		}
        else {
                x.style.cursor='hand';
		}
}

function getWindowWidth() {
	var screenW = 640, screenH = 480;
	if (parseInt(navigator.appVersion)>3) {
		screenW = screen.width;
		screenH = screen.height;
	}
	else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3	&& navigator.javaEnabled()) 
	{
		var jToolkit = java.awt.Toolkit.getDefaultToolkit();
		var jScreenSize = jToolkit.getScreenSize();
		screenW = jScreenSize.width;
		screenH = jScreenSize.height;
	}

	return screenW;
}

function PopupPic(sPicnum) {
	window.open( "popup.htm?"+sPicnum+"", "", "resizable=0,HEIGHT=200,WIDTH=200,top=200,left=200");
}

function nothing() {
}

function promijeni(id) {
	if(document.all&&document.getElementById) {
		id.className+=" over";
	}
}

function vrati(id) {
	if(document.all&&document.getElementById) {
		id.className=id.className.replace(" over", "");
	}
}