var wnd,txt;
onerror=function(){return(true)};
function paste()
{
if(wnd.document.getElementById("target"))
wnd.document.getElementById("target").innerHTML=txt;
else
setTimeout('paste()',100);
}
function ipaste()
{
if(wnd.document.getElementById("target"))
{
wnd.moveTo(0,0);
wnd.resizeTo(screen.availWidth,screen.availHeight);
wnd.document.getElementById("target").src=txt;
wnd.document.getElementById("target").alt="";
wnd.document.getElementById("target").title="Закрыть окно";
}
else
setTimeout('ipaste()',100);
}
function printme(postid)
{
txt=document.getElementById(postid).innerHTML;
wnd=eval('win'+'dow.o'+'pen'+'("print.html","_blank")');
setTimeout('paste()',500);
}
function showme(lnk)
{
txt=lnk.href;
wnd=eval('win'+'dow.o'+'pen'+'("show.html","_blank")');
setTimeout('ipaste()',500);
}
function dropShadow()
{
var st=document.createElement("link");
st.setAttribute("rel","StyleSheet");
st.setAttribute("href","../shadow.css");
document.body.appendChild(st);
}
function initShowBox()
{
var anchors=document.getElementsByTagName('a');
for(var i=0;i<anchors.length;i++)
{
var anchor=anchors[i];
var relAttribute=String(anchor.getAttribute('rel'));
if(anchor.getAttribute('href')&&(relAttribute.toLowerCase().match('show')))
anchor.onclick=function(){showme(this);return false;}
}
var img=new Image();
img.src='../img/wait.gif';
setTimeout('dropShadow()',50);
}
function cl(link)
{
img=new Image();
img.src='http://www.liveinternet.ru/click?*'+link;
}
function finderror()
{
alert("На сайте работает система Orphus (www.orphus.ru)\n\nВыделите орфографическую ошибку мышью и нажмите Ctrl+Enter. \n\nСделаем язык чище!");
}
