﻿
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/christmas-light-business/><img border=0 src=http://www.buy-ebook.com/covers100/christmas-light-business.jpg alt='Start a Christmas Light Instalation Business'><br><br>Start a Christmas Light Instalation Business<br>I make $100,000 every year hanging Christmas Lights</a><br>&nbsp;<br>"
t+="<a TARGET=_blank href=http://www.buy-ebook.com/christmas-cookie-recipes/><img border=0 src=http://www.buy-ebook.com/covers100/christmas-cookie-recipes.jpg alt='Christmas Cookie Recipes'><br><br>Christmas Cookie Recipes</a><br>&nbsp;<br>"
t+="<a TARGET=_blank href=http://www.buy-ebook.com/big-book-of-christmas/><img border=0 src=http://www.buy-ebook.com/covers100/big-book-of-christmas.jpg  alt='BIG BOOK OF CLASSIC CHRISTMAS TALES'><br><br>Big Book of Classic Christmas Tales</a><br>&nbsp;<br>"
t+="<a TARGET=_blank href=http://www.buy-ebook.com/prosperity66/><img border=0 src=http://www.buy-ebook.com/covers100/prosperity66.jpg  alt='Christmas Coloring And Craft Printables'><br><br>Christmas Coloring And Craft Printables<br>Encourage your children to creatively celebrate this holiday through artistic expression achieved with...</a><br>&nbsp;<br>"
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 alt='The Ultimate Guide to Christmas on the Net'><br><br>The Ultimate Guide to Christmas on the Net</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://e-library.net/Fat-Loss-Secret__visit13276.html><img border=0 src=http://f.e-library.net/images/top/fatsecret.jpg alt='Fat Loss Secret'><br><br>Fat Loss Secret<br>The Amazing Instant Fat Loss Secret That Doctors Refuse to Tell You About!</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="+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 (b1!="top"){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=http://f.e-library.net/img/sw.gif>";if(r2>=0.39 && r2<0.89)t+="<img border=0 src=http://f.e-library.net/img/st2.gif>";if(r2>=0.89)t+="<img border=0 src=http://f.e-library.net/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("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 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>')}

}


