// path p; var p = "http://www.editura.ubbcluj.ro"; function doChButton1() { document.getElementById("button_search").src=p+"/images/button_search_click.png"; } function doChButton2() { document.getElementById("button_search").src=p+"/images/button_search.png"; } function doCart(id,nr) { if(parseInt(document.getElementById("cantitate"+id).value)>0) { var rez = parseInt(document.getElementById("cantitate"+id).value)*parseFloat(document.getElementById("pret"+id).value); rez = Math.round(rez*100)/100; var str1 = "YOUR ORDER: "; var str2 = " pct. x "; if(langFind()=='en') { str1 = "YOUR ORDER: "; str2 = " pct. x "; } if(langFind()=='ro') { str1 = "COMANDA DVS: "; str2 = " buc. x "; } if(confirm(str1+document.getElementById("cantitate"+id).value+str2+document.getElementById("pret"+id).value+" LEI = "+rez+" LEI")) { if(readCookie()!=null) appendCookie(nr+"_"+parseInt(document.getElementById("cantitate"+id).value)); else createCookie(nr+"_"+parseInt(document.getElementById("cantitate"+id).value)); refreshCart(); // ajax reload } } else { if(langFind()=='en') alert("Error."); if(langFind()=='ro') alert("Eroare."); } } function doResize(size) { try { document.getElementById('cell').height = window.innerHeight-size; } catch(err) {} } function doSearch() { if(document.frm_header.txt.value!="") { if(langFind()=='en') document.frm_header.action=p+"/www/en/books/search.php"; if(langFind()=='ro') document.frm_header.action=p+"/www/ro/books/search.php"; document.frm_header.submit(); } } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0) result = 'en'; if(url.search('www/ro')>0) result = 'ro'; return result; } //----------------guest form---------------------- function doSubmitGuest() { if(document.frm.nume.value!="" && document.frm.calitate.value!="" && document.frm.titlu.value!="" && document.frm.continut.value!="" && document.frm.code.value!="") document.frm.submit(); else alert("Missing data / Date incomplete!"); } function doResetGuest() { document.frm.nume.value=""; document.frm.calitate.value=""; document.frm.titlu.value=""; document.frm.continut.value=""; document.frm.code.value=""; } //---------------- newsletter form ---------------- function doSubmitN() { if(document.frm.nume.value!="" && document.frm.email.value!="" && document.frm.code.value!="") document.frm.submit(); else alert("Missing data / Date incomplete!"); } function doResetN() { document.frm.nume.value=""; document.frm.email.value=""; document.frm.code.value=""; } //-------------------------------------------------