function bloc3(b5,b6){rat=b5.replace(",",".")*1;t="";for(i=0;i<5;i++){r2=rat-i;if(r2<0.4)t+="<img src=1.gif style='background: url(i/6.png) -1058px 0px;width:16px;height:13px'>";if(r2>=0.4&&r2<0.9)t+="<img src=1.gif style='background: url(i/6.png) -1074px 0px;width:16px;height:13px'>";if(r2>=0.9)t+="<img src=1.gif style='background: url(i/6.png) -1090px 0px;width:16px;height:13px'>";}document.write(t);if(b6>0){document.write(" ("+Math.floor(b5*100)/100+" after "+b6+" votes)</b>")}}
function err(n){cart=window.open("error.php?n="+n,"err","top=7, left=0, width=1024, height=790, resizable=1, scrollbars=1");cart.focus()}
function amazon(){if(document.all){document.write('<table summary=news border=0 cellspacing=0 cellpadding=0 width=199><tr><td class=q1></td><td class=a6 valign=bottom align=center><b>Related Ebooks:</b></td><td class=q2></td></tr><tr><td class=s4></td><td align=center><iframe style="MARGIN-TOP: -81;MARGIN-bottom: -40; Z-INDEX: -1; MARGIN-LEFT: -10; " align=center src = "http://rcm.amazon.com/e/cm?t=elibrary0a-20&o=1&p=14&l=st1&mode=books&search='+key+'&fc1=000000&lt1=_blank&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="157" height="600" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe></td><td class=s5></td></tr><tr><td class=q3></td><td class=a9></td><td class=q4></td></tr></table>');}else{document.write('<p align=center><iframe src = "http://rcm.amazon.com/e/cm?t=elibrary0a-20&o=1&p=14&l=st1&mode=books&search='+key+'&fc1=000000&lt1=_blank&lc1=3366FF&bg1=FFFFFF&f=ifr" marginwidth="0" marginheight="0" width="160" height="600" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe></p>')}}

function fbs_click(){u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}
function f_news(){ema=document.forms.news.cemail.value;if(ema==""||ema=="Your Email"||ema.length<5||ema.indexOf("@")<1||ema.indexOf(".")<3){alert("You failed to correctly fill in your:\n\nEmail Addres\n\nPlease re-enter and submit again!");}else{document.forms.news.submit();}}
function f_ev_n(n){ema=document.forms.news.cemail.value;if(n==0&&ema==""){document.forms.news.cemail.value="Your Email";}if(n==1&&ema=="Your Email"){document.forms.news.cemail.value="";}document.forms.news.man.value=1;}

fn='<center><b style="color:#F7DA0F">Newsletter</b><form style="margin:3px 0" action = http://e-library.net/newsletter.php method=post name=news><div style="float:left"><input style="margin:0" name=cemail onblur=f_ev_n(0) onfocus=f_ev_n(1) value="Your Email" class=inp><input name=man type=hidden></div><div class=sig align=center><a href = javascript:f_news()>Sign Up</a></div></form><center>'
function f_sub(){f='';if (document.f1.r.value=='0'){f+='\nPlease Rate!';}if (document.f1.c.value==''){f+='\nPlease explain your vote!';}if(f){alert(f);return false}};
function f_check(){t1=document.forms.f1.c.value;l1=t1.length;if (l1>250){document.forms.f1.c.value=t1.substring(0,250)};document.forms.f1.l1.value=250-l1};

