function arataIcons(v,d) { document.getElementById(d).innerHTML=''; if (v<0) { var img=':( '; for (var i=0;i>v;i--) { document.getElementById(d).innerHTML+=img; } } else { var img=':) '; for (var i=0;i'; continut+='
'+titlu+'
'; continut+='
Inchide
'; continut+='
'+continut_f+'
'; div_nou.innerHTML=continut; var docH=document.body.scrollHeight; var docW=document.body.scrollWidth; ById('div_over_window_nr_'+nr_ferestre).style.height=docH+'px'; ById('div_over_window_nr_'+nr_ferestre).style.width=docW+'px'; var de = document.documentElement; var b = document.body; var cat_scrool = (de.scrollTop || b.scrollTop) - (de.clientTop || 0); var cat_sus = cat_scrool + 100;; var cat_am=(docW-latime)/2; ById('fereastra_nr_'+nr_ferestre).style.top=cat_sus+'px'; ById('fereastra_nr_'+nr_ferestre).style.left=cat_am+'px'; ById('fereastra_nr_'+nr_ferestre).style.width=latime+'px'; ById('fereastra_nr_'+nr_ferestre).style.height=inaltime+'px'; Drag.init(ById('top_fereastra_nr_'+nr_ferestre), ById('fereastra_nr_'+nr_ferestre),4,docW-latime-10,4,docH-inaltime-10); } function SwindowClose(nr_fer_cl) { ById('div_over_window_nr_'+nr_fer_cl).style.height='0px'; ById('div_over_window_nr_'+nr_fer_cl).style.width='0px'; ById('fereastra_nr_'+nr_fer_cl).style.display='none'; InHtml('fereastra_nr_'+nr_fer_cl,''); } function afImagesProd(nume_prod,i) { Swindow(OutHtml('divImagini_'+i),nume_prod,550,''); } function chvalue() { if ($val('descriere')=='DESCRIETI: Localizarea cat mai exacta, drumurile de acces, comuna cea mai apropiata calitatea drumului, ce se prinde, momeli folosite cu succes, recomandari.') { document.getElementById('descriere').value=''; } } function chvalue2() { if ($val('descriere')=='Descrierea evenimentului: Locatia,Momeala folosita,montura,durata drilului,data si ora, recomandari.') { document.getElementById('descriere').value=''; } } var contorImgs=1; function addMoreImgsProduct(div) { var newInput=document.createElement('div'); newInput.id='div_'+contorImgs; newInput.style.marginTop='5px'; document.getElementById(div).appendChild(newInput); var value=''; value+='
Product image:
'; value+='
'; value+=''; value+='
'; value+='
'; value+='Add_more_image'; value+='
'; value+='
'; newInput.innerHTML=value; contorImgs++; } function delImgsProduct(div,id) { document.getElementById(div).removeChild(document.getElementById(id)); }