﻿function opro(x) { window.open('/index/8-'+x,'up'+x,'scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); }
function opr(x) { window.open('/index/8-0-'+x,'up'+x,'scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); }
function opm(x) { window.open('/index/14-'+x+'-0-1','userpm','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); }
function orep(x) { new _uWnd('Rd',' ',380,200,{autosize:1,closeonesc:1},{url:'/index/',type:'post',data:{a:'23',s:x,c:location.href}}); }
function omx(x) { new _uWnd(x,'Мир Наруто',500,300,{autosize:1,autosizeonimages:1,resize:0,maxw:500,minw:500},{url:'/images/marx.xml'}); }
function newpm() { new _uWnd('Pm','Письмо',130,100,{autosize:1,maxh:150,minh:100,close:1,closeonesc:0,modal:1,nomove:1,resize:0},{url:'/entry.xml'}); }
function oimg(s) { new _uWnd('Image','Полный размер',500,500,{header:1,minh:300,minw:300,resize:0,autosize:1,autosizeonimages:1},'<img src=' + s + ' />'); }

function isSpace(s){ return (s==" " || s=="\n" || s=="\13" || s=="\t" || s=="\r")?true:false }
 
function fuckgenin(str) {
var c=0;
var i;
var fid=document.getElementById('forumid').value;
var prevspace=true;
for (i=str.length-1;i>=0;i--){ if(isSpace(str.charAt(i)) && prevspace){ } else { c++ }
prevspace=isSpace(str.charAt(i))
}
if (c>500 || fid>7) {
document.getElementById('fake').style.display = 'none';
document.getElementById('counter').innerHTML = 0;
document.getElementById('frF16').style.display = 'block';
} else {
document.getElementById('counter').innerHTML = 500 - c ;
document.getElementById('fake').style.display = 'block';
document.getElementById('frF16').style.display = 'none';
}
return false;
}
function disableRight() {
var message="Function Disabled!";
function clickIE4(){ if (event.button==2){ return false; } }
function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ return false; } } }
if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; }
else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; }
document.oncontextmenu=new Function("return false");
}

$('#op').click( function(){ alert('Hey!'); } );
$('#anticopy').bind("contextmenu",function(e){ return false; });

