function ows(URL) {
URLn="imagesB/"+URL+".htm";
a=window.open(URLn,'','height=354,width=238,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no');}
function owF(URL) {
URLn="FimagesB/"+URL+".htm";
a=window.open(URLn,'','height=354,width=231,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no');}
function ow(URL) {
URLn="imagesB/"+URL+".htm";
a=window.open(URLn,'','height=354,width=231,status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no');}

function pic(URL,WID,HEI,STR) {
HEI2=HEI+2;
st="height="+HEI2+",width="+WID+",status=no,scrollbars=no,location=no,toolbar=no,directories=no,menubar=no,resizable=yes,left=0,top=0,screenX=0,screenY=0";
URLn="pict.php?file="+URL+"&wid="+WID+"&hei="+HEI+"&alt="+STR;
a=window.open(URLn,"Pict",st);}

function doIm(){ for (i=1;i<8;i++) if (i!=4) top.frames[0].document.images[i].src="1.gif"; }
function z(num) { parent.katpod.location.replace("Nad/"+"katpod"+num+".htm");setTimeout("doIm()",500); }
function ChPn(page) { window.open(page,"","status=yes,scrollbars=yes,location=yes,toolbar=yes,directories=yes,menubar=yes,resizable=yes") }

function golos1(va) { document.write("<form action='golos1.php' method='post' style='margin: 5px 0px 0px 0px;'>");
document.write("<p class='gg'><i>Ваша оценка этой книги:</i>&nbsp; &nbsp;<select name='ots' size=1 style='background-color:#FFFFE7;vertical-align:middle;'>");
document.write("<option selected>-<option>1<option>2<option>3<option>4<option>5<option>6<option>7<option>8<option>9<option>10</select>");
cook=document.cookie?"Y":"N";
document.write("&nbsp; <input type='submit' value='Ok!' class='t'><input type='hidden' name='namek' value='" + va + "'><input type='hidden' name='cook' value='" + cook + "'></form>"); }
function golos2(va) { document.write("<form action='golos2.php' method='post' style='margin: 5px 0px 0px 0px;'>");
document.write("<p class='gg'><i>Ваша оценка этой книги:</i>&nbsp; &nbsp;<select name='ots' size=1 style='background-color:#FFFFE7;vertical-align:middle;'>");
document.write("<option selected>-<option>1<option>2<option>3<option>4<option>5<option>6<option>7<option>8<option>9<option>10</select>");
cook=document.cookie?"Y":"N";
document.write("&nbsp; <input type='submit' value='Ok!' class='t'><input type='hidden' name='namek' value='" + va + "'><input type='hidden' name='cook' value='" + cook + "'></form>"); }

function nizfun(va1,va2,va3,va4,va5) { 
if ((va1+va4+va5)!=0)
{
document.write("<br clear=all><p style='margin:0px;text-align:right'><table width=99% border=0 cellspacing=0 cellpadding=0>");

document.write("<tr><td width=25%>");
if (va4=="00000") {document.write("&nbsp;")} else
{ document.write("<form action='http://www.labirint.ru/" + va4 + "' method='post' target='_top' style='margin: 7px 0px 0px 0px;text-align:left;'><p class='g2'>&nbsp;<input type='submit' value='Купить эту книгу'></form>");}
if (va5!="00") {
document.write("<td width=25%><form action='Otryv/" + va5 +".htm' method='get' target='_top' style='margin: 7px 0px 0px 0px;text-align:left;'><p class='g2'>&nbsp;<input type='submit' value='Прочесть отрывок'></form></td>");
}
document.write("</td><td width=43%>");
if (va1=="00") {document.write("&nbsp;")}
else { document.write("&nbsp; &nbsp;");
if (va1=="1") { document.write("<form action='golos1.php' method='post' style='margin: 5px 0px 0px 0px;'>"); }
else { document.write("<form action='golos2.php' method='post' style='margin: 5px 0px 0px 0px;'>"); }
document.write("<p class='gg'><i>Ваша оценка этой книги:</i>&nbsp; &nbsp;<select name='ots' size=1 style='background-color:#FFFFE7;vertical-align:middle;'>");
document.write("<option selected>-<option>1<option>2<option>3<option>4<option>5<option>6<option>7<option>8<option>9<option>10</select>");
cook=document.cookie?"Y":"N";
document.write("&nbsp; <input type='submit' value='Ok!' class='t'><input type='hidden' name='namek' value='" + va2 + "'><input type='hidden' name='cook' value='" + cook + "'></form>");
}
document.write("</td></tr></table><hr>");
}
else document.write("<br clear=all><hr>");
}

function nizfun_b(isbn,ID,va3,pict,ssyl) {

if (ID!="000000")
{ document.write("<table border='0' cellspacing='0' cellpadding='0' width='99%' vspace='0px'><tr><td width=300px><nobr>");
document.write("<p>"+ssyl+"<img src='"+pict+"' class='em2'>"+va3+"</p>");
document.write("</nobr></td><td width=95% background='tochka.gif'><h6>&nbsp;</h6></td><td><h6>&nbsp;&nbsp;<a href=http://www.labirint.ru/" +ID+ " target='_top'><img src='cart.gif' class='em4'></a></h6></td></tr></table>");
			}
else
 { document.write("<table border='0' cellspacing='0' cellpadding='0' width='99%' vspace='0px'><tr><td width=300px><nobr>");
 document.write("<p>"+ssyl+"<img src='"+pict+"' class='em2'>"+va3+"</p>");
 document.write("</nobr></td></tr></table>"); }
}

function gofun(va1,va2) { 
if ( (va1=="00") || (va2=="") ) {document.write("<h6>&nbsp;</h6>")}
else {
if (va1=="1") { document.write("<form action='golos1.php' method='post' style='margin: 2px 0px 0px 0px;'>"); }
else { document.write("<form action='golos2.php' method='post' style='margin: 2px 0px 0px 0px;'>"); }
document.write("<p class='gg'><nobr>&nbsp; &nbsp;<i>Ваша оценка этой книги:</i>&nbsp; &nbsp;<select name='ots' size=1 style='background-color:#FFFFE7;vertical-align:middle;'>");
document.write("<option selected>-<option>1<option>2<option>3<option>4<option>5<option>6<option>7<option>8<option>9<option>10</select>&nbsp;<input type='submit' value='Ok!' class='t'></nobr>");
cook=document.cookie?"Y":"N";
document.write("<input type='hidden' name='namek' value='" + va2 + "'><input type='hidden' name='cook' value='" + cook + "'></form>");
}
}

function CheckFramesK(){
if (window.name!="katn"){
 window.name="root";
 var PageURL = "";var Search = "";var Hash = "";
if (document.location.search == "") {
 Search = "?embedded=yes"; }
else { Search = document.location.search + "&embedded=yes"; };
if (document.location.hash != "") { Hash = document.location.hash; };
PageURL = document.location.protocol + "//"+ document.location.host + document.location.pathname + Search + Hash;
document.write("<frameset framespacing='0' border='0' frameborder='0' frameborder='no' cols='200,*'>");
document.write("<frame name='menu' src='menu.php' scrolling='no' noresize marginwidth='0' marginheight='0'>");
document.write("<frameset framespacing=0 border=0 frameborder=0 frameborder='no' rows='26,12,*'>");
document.write("<frameset framespacing=0 border=0 frameborder=0 frameborder='no' cols='67,*,300'>");
document.write("<frame name='katnad' src='Nad/katnad.htm' noresize scrolling='no' marginwidth=0 marginheight=0>");
document.write("<frame name='katpod' src='Nad/katpod0.htm' noresize scrolling='no' marginwidth=0 marginheight=0>");
document.write("<frame name='katv' src='Nad/katv.php' noresize scrolling='no' marginwidth=0 marginheight=0 target='katn'>");
document.write("</frameset>");
document.write("<frame name='katpu' src='pust.htm' scrolling='no' marginwidth=0 marginheight=0>");
document.write("<frame name='katn' src='" + PageURL + "' noresize scrolling='yes' marginwidth=0 marginheight=0>");
document.write("</frameset>");
document.write("</frameset>");
 } }
