exists(strSessionName)){ i1.value=session_get(strSessionName); n2(); }
setInterval(checkMe,200);
}
function resizeWin(){
document.getElementById("f1").style.height=document.body.clientHeight-25;
}
function n0(){
n1(this.href);
return(false);
}
function n1(str){
i1.value=str;
n2();
}
function n2(){
str=i1.value;
if(i1=="")return;
if(!/^http:\/\//i.test(str))str="http://"+str;
document.title="Book Viewer - Loading...";
xp.open("get",str);
xp.onreadystatechange=n22;
xp.send("");
}
function n22(){
var str;
if(this.readyState==4){
if(this.status==200){
str=adodb_binary2string(this.getAttribute("responseBody"));
str=str.replace(/<script[\s\S]+?\/script>/gi,"").replace(/<iframe[\s\S]+?\/iframe>/gi,"").replace(/on(load|mouseover|mouseout|mousemove|focus|blur|keydown|keyup|keypress|change|readystatechange|click|dblclick|mousewheel) *= *\"[\s\S]+?\"/gi,"");
f1.document.open();
f1.document.write("<base href=\""+i1.value.substring(0,i1.value.lastIndexOf("/")+1)+"\" \/>");
try{
f1.document.write(str);
}catch(e){}
f1.document.close();
f1.document.body.focus();
document.title="Book Viewer - Ready";
}
}
}
function cancelErr(){ return(true); }
html_encode=function(strV){
return(strV.replace(/&/g,"&").replace(/"/g,""").replace(/ /g," ").replace(/\t/g," ").replace(/</g,"<").replace(/>/g,">").replace(/\r\n/g,"<br>"));
}
function adodb_binary2string(b){
var adodbStream=new ActiveXObject("ADODB.Stream");
adodbStream.Type=1;//1=adTypeBinary
adodbStream.Open();
&nb