    var divovi;
		var lp_s = new Array();


		function lp_oznaci(id_par, id, izabrani_stupac) {
			var oznaci = true;

			if (document.getElementById(id_par + "_" + id + "_" + izabrani_stupac) && document.getElementById(id_par + "_" + id + "_" + izabrani_stupac).className == "lp_ponuda_dodano_izabrano") {
				oznaci = false;
			}

			//for (var i = 0; divovi[i]; i++) {
			//	if (divovi[i].id.match("^" + id_par + "_.+")) {
			//		if (oznaci) {
			//			divovi[i].className = divovi[i].id == (id_par + "_" + id + "_" + izabrani_stupac) ? "lp_ponuda_dodano_izabrano" : "lp_ponuda_dodano";
			//		} else {
			//			divovi[i].className = "";
			//		}
			//	}
			//}
		}

		function pon_onload() {
		
			//if (window.parent.frames["listic"]) { // Internet Explorer
			//	lp_listic = window.parent.frames["listic"];
			//} else if (window.parent.document.getElementById("listic").contentWindow) { // Mozilla
			//	lp_listic = window.parent.document.getElementById("listic").contentWindow;
			//} else {
			//	return;
			//}
			
			if (window.parent.document.getElementById('listic'))
			{
			  lp_listic = window.parent.parent; //.getElementById('listic')				
			} else
			{
				lp_listic = window.parent.frames; //.getElementById('listic').contentWindow
			}			
			
			
			/*
			if (window.parent.document.getElementById('listic'))
			{
			  lp_listic = window.parent.frames; //.getElementById('listic')				
			} else
			{
				lp_listic = window.parent.frames.contentWindow; //.getElementById('listic').contentWindow
			}
			*/
			
			//window.parent.document.getElementById("listic");
			if (lp_listic == null)
			{
				//alert("Greska lp_listic");			
			} 
			//if (window.parent.frames["listic"]) { // Internet Explorer
			//	lp_listic = window.parent.frames["listic"];
			//} else if (window.parent.document.getElementById("listic").contentWindow) { // Mozilla
			//	lp_listic = window.parent.document.getElementById("listic").contentWindow;
			//} else {
			//	return;
			//}			
			

			//divovi = document.getElementsByTagName("div");

			if (lp_listic.lp_s) { // U slućaju da se lijevi iframe nije učitao; prilikom prvog učitavanja tako-ionako nema dodanih
				for (var i = 0; lp_listic.lp_s[i]; i++) {
					lp_oznaci(lp_listic.lp_s[i][0], lp_listic.lp_s[i][1], lp_listic.lp_s[i][9]);
				}
			}

			//window.parent.document.getElementById("ucitavanje_ponude").className = "lp_iframe_nevidljiv";
			//window.parent.document.getElementById("ponuda").className = "lp_iframe_vidljiv";

			//lp_listic.style.height = 700;
			//window.parent.document.getElementById("listic").height = 700;

		}

function setIframeHeight() {
  var iframeWin = window.frames['listic'];
  var iframeEl = document.getElementById? document.getElementById('listic'): document.all? document.all['listic']: null;
  if ( iframeEl && iframeWin ) {
  iframeEl.style.height = "auto"; // helps resize (for some) if new doc shorter than previous
  var docHt = getDocHeight(iframeWin.document);
  // need to add to height to be sure it will all show
  iframeEl.style.height = 700; //docHt + 30 + "px";
  }
}

		function db(id, tip, koeficijent, izabrani_stupac) {
			var i;

			for (i = 0; lp_s[i][1] != id; i++);

			lp_listic.lp_dodaj_brisi(lp_s[i][0], lp_s[i][1], lp_s[i][2], lp_s[i][3], lp_s[i][4], lp_s[i][5], lp_s[i][6], tip, koeficijent, izabrani_stupac, lp_s[i][7], lp_s[i][8]);


		}
		
		function dbf2(id, tip, koeficijent, izabrani_stupac, nazivf2) {
			var i;

			for (i = 0; lp_s[i][1] != id; i++);

			lp_listic.lp_dodaj_brisi(lp_s[i][0], lp_s[i][1], nazivf2, lp_s[i][3], lp_s[i][4], lp_s[i][5], lp_s[i][6], tip, koeficijent, izabrani_stupac, lp_s[i][7], lp_s[i][8]);


		}		
		
function r(value)
{
window.open('http://www.stats.betradar.com/statistics/williams/?matchid='+value,'Williams','width=995, height=650, resizable=yes, scrollbars=yes'); 
}