﻿
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 popular(){
t=""
//t+="<a TARGET=_blank href=http://www.buy-ebook.com/guide-to-christmas/><img border=0 src=http://www.buy-ebook.com/covers100/guide-to-christmas.jpg width=100><br><br>The Ultimate Guide to christmas on the Net</a><br>&nbsp;<br>"
//t+="<a TARGET=_blank href=http://artdhtml.searchhits.hop.clickbank.net><img border=0 src=http://www.christmas-ebooks.com/images/chris_activity1.jpg width=100><br><br>The Complete christmas Collection:<br>Christmas Recipes<br>Christmas Crafts<br>Kids Christmas Activities</a><br>&nbsp;<br>"

t+="<a TARGET=_blank href=http://artdhtml.liebe17.hop.clickbank.net><img border=0 src=http://f.e-library.net/images/top/liebe17.jpg alt='The Woman Men Adore'><br><br>The Woman Men Adore... and Never Want to Leave<br>by Bob Grant, L.P.C. - \"The Relationship Doctor\"</a><br>&nbsp;<br>"
t+="<a TARGET=_blank href=http://www.buy-ebook.com/weight-watchers-recipes/><img border=0 src=http://f.e-library.net/images/top/weight-watchers-recipes.jpg width=100 alt='100 Favorite Weight Watchers Recipes'><br><br>100 Favorite Weight Watchers Recipes</a><br>&nbsp;<br>"
t+="<a TARGET=_blank href=http://www.buy-ebook.com/psychological-tactics/><img border=0 src=http://f.e-library.net/images/top/psychological-tactics.jpg width=100 alt='Forbidden Psychological Tactics'><br><br>Forbidden Psychological Tactics!<br>Discover the Amazing Persuasion Secrets that the Authorities Want Banned!</a><br>&nbsp;<br>"
document.write(t)
}

function show_img(sr_,hr_,al_){
document.write ("<a target=_blank href=http://e-library.net/"+hr_+"><img alt='Ebook Cover' border=0 src =\""+sr_+"\" onload='if(this.width>300){this.width=250};this.alt=\""+al_.replace("'","`")+"\"' ></a>")
}

function bi(txt_){
image=window.open("","image","top=200, left=333, width=300, height=400, resizable=1, scrollbars=1")
image.document.open()
image.document.write("<html><head><title>Ebook Cover</title></head><body onLoad='init();' bgcolor=#dddddd><p align=center><img name=i0 src=\""+txt_+"\"><br><br><a style='font-family: Arial; font-size: 12px; color:#049AFF;' href='javascript:window.close()'>close</a><script>function init(){w=document.images['i0'].width+33;h=document.images['i0'].height+77;if (parseInt(navigator.appVersion)>3) {if (navigator.appName=='Netscape') {top.outerWidth=w+8;top.outerHeight=h+29;}else{top.resizeTo(400,300);wd = 400-document.body.clientWidth;hd = 300-document.body.clientHeight;top.resizeTo(w+wd,h+hd);}}}</script></body></html>")
image.document.close()
image.focus()
}

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 (b6>0){document.write("<b>Rating:</b> ")}
rat=b5.replace(",",".")*1;t=""
for(i=0;i<5;i++){r2=rat-i;if(r2<0.39)t+="<img border=0 src=img/sw.gif>";if(r2>=0.39 && r2<0.89)t+="<img border=0 src=img/st2.gif>";if(r2>=0.89)t+="<img border=0 src=img/sr.gif>"}
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=10, left=0, width=1024, height=590, resizable=1, scrollbars=1")
cart.focus()
}
function fealin(){
t='<a href=res.html>Place Your link here</a><br>just for $29.95 per year'
document.write(t)
}

try {key=key+" popular"}
catch(e) {key=" popular"}

function amazon(){
if(document.all){document.write('<table border=0 width=171 cellspacing=0 cellpadding=0><tr><td><b><img border=0 src=http://e-library.net/img/s11.gif width=19 height=28></b></td><td width=130 background=http://e-library.net/img/s13.gif class=t4 valign=bottom align="center"><b>Related Books:</b></td><td><img border=0 src=http://e-library.net/img/s10.gif width=22 height=28></td></tr><tr><td background=http://e-library.net/img/ftb.gif colspan=3  align=center><br><table border=0 width=157 align=center cellspacing=0 cellpadding=0><tr><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></tr></table></td></tr><tr><td colspan=2 background=http://e-library.net/img/s2.gif><img alt="ebooks readers" border=0 src=http://e-library.net/img/s1.gif width=19 height=22></td><td><img alt="submit ebook" border=0 src=http://e-library.net/img/s3.gif width=22 height=22></td></tr></table>')}
else{document.write('<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>')}

}