function preloadimages() {
var imgdir = "images/";
box1 = new Image; box1.src = imgdir+"table_bg.gif";
box2 = new Image; box2.src = imgdir+"cn03.gif";
box3 = new Image; box3.src = imgdir+"cn04.gif";
box4 = new Image; box4.src = imgdir+"cn05.gif";
box5 = new Image; box5.src = imgdir+"search_bg.gif";
box6 = new Image; box6.src = imgdir+"form_bg_active.gif";
box7 = new Image; box7.src = imgdir+"form_bg.gif";
box8 = new Image; box8.src = imgdir+"cn09.gif";
box9 = new Image; box9.src = imgdir+"cn10.gif";
box10 = new Image; box10.src = imgdir+"cn11.gif";
box11 = new Image; box11.src = imgdir+"cn12.gif";
box12 = new Image; box12.src = imgdir+"cn14.gif";
box13 = new Image; box13.src = imgdir+"arrow_menu.gif";
box14 = new Image; box14.src = imgdir+"icon_vprasaj.gif";
box15 = new Image; box15.src = imgdir+"cn15.gif";
box16 = new Image; box16.src = imgdir+"cn16.gif";
box17 = new Image; box17.src = imgdir+"cn17.gif";
box18 = new Image; box18.src = imgdir+"cn18.gif";
box19 = new Image; box19.src = imgdir+"pixel_gray.gif";
box20 = new Image; box20.src = imgdir+"znamke_top.gif";
}


function changeColor(color){
var el=event.srcElement;
if (el.tagName=="INPUT"&&(el.type=="button"||el.type=="submit"||el.type=="reset"))
event.srcElement.style.backgroundColor=color;
}

function setBgImage(element,imageFile) {
element.style.backgroundImage="url("+imageFile+")";
element.style.color="#ffffff";
}

function setBgImageOver(element,imageFile) {
element.style.backgroundImage="url("+imageFile+")";
element.style.color="#902B14";
}





function over(text)
{
	window.status = text;
	return true;
}

function out()
{
	window.status = '';
	return true;
}

function confirm_action($url, $msg)
{
	var is_confirmed = confirm($msg);
	if (is_confirmed) {
		window.location = $url;
	}
}

function openPop(url, width, height, s)
{
	x = (640 - width)/2;
	y = (480 - height)/2;
	if (screen)	{
		x = (screen.availWidth - width) / 2;
		y = (screen.availHeight - height) / 2;
	}
	if (navigator.appName == "Netscape")
		height = height + 50;
	window.open(url, '', 'scrollbars=' + s + ',status=0,resizable=0,width=' + width + ',height=' + height + ',screenX=' + x + ',screenY=' + y + ',top=' + y + ',left=' + x);
}
