var zlsearch_backgroundcolor; var zlsearch_element = document.getElementById("zllv"); do { var style = zlsearch_element.currentStyle || window.getComputedStyle(zlsearch_element, null); zlsearch_backgroundcolor = style.backgroundColor; zlsearch_element = zlsearch_element.parentNode; } while ((zlsearch_backgroundcolor == "" || zlsearch_backgroundcolor == "transparent") && zlsearch_element.style != undefined) zlsearch_backgroundcolor = zlsearch_backgroundcolor.replace("#", "_"); var frm = document.getElementById("zllv").appendChild(document.createElement("IFRAME")); frm.src="http://zl.lv/searchbox/index.php?backgroundcolor=" + zlsearch_backgroundcolor + "&boxid=language:lv|backgroundcolor:_4E7EA8|width:245|what:1|where:0|whatvalue:|wherevalue:Madonas|size:m|margintop:10|marginbottom:10|marginleft:10|marginright:10|title1:Uzņēmumi Madonā|title2:"; frm.id="zlsearchiframe" frm.width="245px"; frm.height="110px"; frm.marginWidth="0"; frm.marginHeight="0"; frm.frameBorder=0; frm.scrolling="no";