var loaded = false;

   var viewedcntr=0
   

    function noOfTgoovot(tgoovot,forum,scriptname) {
    //alert(tgoovot);  
    //alert(forum);       
    location.href=scriptname+"?forum="+forum+"&mtk="+tgoovot     
    }
    
    function noOfMsgPerPage(noofmsg,forum,scriptname) {
    //alert(tgoovot);  
    //alert(forum);       
    location.href=scriptname+"?forum="+forum+"&msgp="+noofmsg
    }
    

	function openWindow1(url, name) {
                        popupWin = window.open(url, name, 'height=600,width=600,location=yes,resizable=1,scrollbars=1')
	}
	
	function openLocation(url, name) {
	   location.href=url;                        
	}
	
	function openWindow(url, name) {
                        popupWin = window.open(url, name, 'height=600,width=800,location=yes,resizable=1,scrollbars=1')
	}
	
	function openWindow2(url, name) {
                        popupWin = window.open(url, name, 'height=600,width=800, top=50,left=50, location=yes,resizable=1,scrollbars=1')
	}
	
	
	
function searchonoff()
  {
   if(document.all)
		document.all['laysearch'].style.display=(document.all['laysearch'].style.display=="block")?"none":"block";
	 else
		document.getElementById('laysearch').style.display=(document.getElementById('laysearch').style.display=="block")?"none":"block";
    
  }
  
  function searchme(frm,frmPrev,archiv,scriptname)
  {
     var sub,body,nick,str;         
     
     if(document.all)
     {             
     sub=document.all.searchsub.value; 
     body=document.all.searchbody.value;
     nick=document.all.searchnick.value
     }
     else
     {
     sub=document.getElementById('searchsub').value; 
     body=document.getElementById('searchbody').value; 
     nickdocument.getElementById('searchnick').value; 
     }  
     if (sub.length >1 ||body.length >1 ||nick.length>1)
        location.href=scriptname+"?forumPrev="+frmPrev+"&forum="+frm+"&searchbody="+body+"&searchsub="+sub+"&searchnick="+nick+"&archiv="+archiv;  
     else
        alert("יש להקיש לפחות 2 תווים בחיפוש")   
  }
  
  	
	
	
	
