function showPicture(img,title){
	
	var newWindow
	var newContent
	
	newContent="<html><head><title>JKP TEMERIN</title>\n"
	newContent += "<script language='JavaScript' type='text/javascript'>\n"
	newContent += "<!--\n"
	newContent += "<link rel='stylesheet' href='style/style.css'>\n"
	newContent += "// -->\n"
	newContent += "</script>\n"
	newContent += "<meta http-equiv='Content-TYPE' content='text/html; charset=utf-8'>\n"
	newContent += "	</head>\n"
	newContent += "<body background='imgs/bg-text.jpg'><h3 align='center'></h3>\n"
	newContent += " <img src='imgs/pixel-gray.gif' width='100%' height='1'>\n"
	newContent += "<div align=center><tr><td  valign=top><font class='cene_title'>"+title+"</font><br><img src='imgs/vesti/" + img  +"' border=1 alt='" + title + "'>\n"
	newContent += "</div>\n"
	newContent += "<br><br><img src='imgs/pixel-gray.gif' width='100%' height='1'><div align='center'><a href='javascript:self.parent.close()'><font class='anketa_text'>Zatvori</font></a></div>\n"
	newContent += "<br></body></html>"
	
	newWindow=window.open("","","height=650,width=850")
	newWindow.document.write(newContent)
	newWindow.moveTo(0,0)	
	newWindow.document.close()
}
function showWindow1(img,title){
	
	var newWindow
	var newContent
	
	newContent="<html><head><title>JKP KOMUNALIJE - SREMSKA MITROVICA</title>"
	newContent += "<script language='JavaScript' type='text/javascript'>"
	newContent += "<!--"
	newContent += "<link rel='stylesheet' href='style/style.css'>"
	newContent += "// -->"
	newContent += "</script>"
	newContent += "<meta http-equiv='Content-TYPE' content='text/html; charset=utf-8'>"
	newContent += "	</head>"
	newContent += "<body background='imgs/bg-text.jpg'><h3 align='center'></h3>\n"
	newContent += "<?php\n"
	newContent += "$title=\"<font class='text_title'>" + title + "</font>\";\n"
	newContent += "$align='center';\n"
	newContent += "echo \"GDE SI BRE \";\n"
	
	newContent += "?>\n"
	newContent += "<table height='100%' align=center><tr><td  valign=center><br>\n"
	newContent += "<div align=center> <font  face='Verdana, Arial' size=1><b> " + title + " </b></font></div></td></tr></table></body></html>"
	
	
	newWindow=window.open("","","height=500,width=600")
	newWindow.document.write(newContent)
	newWindow.moveTo(0,0)	
	newWindow.document.close()
}

function showWindow(fpath){
	
	var newWindow
	var newContent
	
	
	
	newWindow=window.open("files/" + fpath,"","width=600 scrollbars=yes")
	
	newWindow.moveTo(0,0)	
	newWindow.document.close()
}
function showWindow2(fpath){
	
	var newWindow
	var newContent
	
	
	
	newWindow=window.open(fpath,"","width=600 scrollbars=yes")
	
	newWindow.moveTo(0,0)	
	newWindow.document.close()
}
function anketaRez(){
	
	var vote
	
	for (var i=0;i< document.forms[0].vote.length;i++){
		if (document.forms[0].vote[i].checked){
			break
		}
	}
	vote=document.forms[0].vote[i].value
	var path="files/anketa.php?op=submitAnketa&vote=" + vote
	newWindow=window.open(path,"","width=300 height=205  statusbar=no")
	
	newWindow.moveTo(0,0)	
	newWindow.document.close()
}

function prikazRez(){
		
	var path="anketa.php?op=prikazRez"
	newWindow=window.open(path,"","width=300 height=225  statusbar=no")
	
	newWindow.moveTo(0,0)	
	newWindow.document.close()
}
function prikazAnkRez(){
		
	var path="files/anketaRez.php"
	newWindow=window.open(path,"","width=300 height=225  statusbar=no")
	
	newWindow.moveTo(0,0)	
	newWindow.document.close()
}

function NadjiUlicu(){
		
	var ulica=document.forms[0].ulice
	var ul=ulica.options[ulica.selectedIndex].value
	var loc="meni.php?id=rj3_plan&op=1&ulN='" + ul + "'"
	location=loc
	
}
function showMap(fpath){
	
	var newWindow
	var newContent
	newWindow=window.open(fpath,"","width=850 height=535 scrollbars=yes")
	
	newWindow.moveTo(0,0)	
	newWindow.document.close()
}
