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;}
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 show_img(sr_,hr_,al_,n,wd){document.write("<a target=_blank href=http://e-library.net/"+hr_+"><img alt='Ebook Cover' border=0 src =\""+(n?"http://f.e-library.net/covers"+(wd==104?"104":"")+"/"+n+".jpg":sr_)+"\" "+(wd?"width="+wd:"")+" onerror='if(this.src!=\""+sr_+"\"){this.src=\""+sr_+"\";}' onload='if(this.width>300){this.width=250};this.alt=\""+al_.replace("'","`")+"\"' ></a>")}
function bloc2(b1,b2,b3,b4,b5,b6,b7){document.write("<b>Price:</b> "+b1+"<br>"+(b2?"<b>Date:</b> "+b2+"<br>":"")+"<b>Visits:</b> "+b3+"")}
function bloc3(b1,b2,b3,b4,b5,b6,b7){if(b1!="top"){document.write("<b>Rating:</b> ");}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/0.png) -1058px 0px;width:16px;height:13px'>";if(r2>=0.4&&r2<0.9)t+="<img src=1.gif style='background: url(i/0.png) -1074px 0px;width:16px;height:13px'>";if(r2>=0.9)t+="<img src=1.gif style='background: url(i/0.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("http://e-library.net/error.php?n="+n,"err","top=7, left=0, width=1024, height=790, resizable=1, scrollbars=1");cart.focus()}
function award(){t='Date: 3/5/2008<br>From: World Wide Web Awards&trade;<br><a href=http://e-library.net/awards.html><b>E-Library</b> has been selected to receive the World Wide Web Awards&trade; <b>"Gold"</b>Award.</a><br><embed width=135 height=135 src=http://f.e-library.net/images/worldwidewebawards-net-gold.swf><br>The World Wide Web Gold Award represents web presence at its best.';document.write(t)}
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 adv(){document.write('<iframe src="http://cbads.com/ads.php?a=1000ebooks&lc=0F9FFF&af=3&f=1&key='+key+'" width=125 height=1600 marginwidth=0 marginheight=0 border=0 frameborder=0 style="border:0px" scrolling="no"></iframe>')}
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>'

