
var numOfMsg1=1


function printRec111(levelID,MessageID,forum1,UserID1,parrent,counter1,divname1,isFile,FileName,toUserID1,isRead,Archiv2,isMan,theDateStr,theHour,forum,showTree,FileNameExt,searchstr,forumPrev,msgid,Archiv,MsgBody,MsgSubject,GuestNick,username,scriptname,UserID,classColor,numOfId,toNick,flagForum,par)
{
   var fullmsg ,spaces ,msg



 
   flagForum=forum

   if (GuestNick==username)
        flagForum=0


//FileNameExt=FileName.substr(FileName.length-3,3) 


//FileNameExt.toLowerCase( )




//if (FileNameExt!="")

    
	
	fullmsg="<tr><td align=right dir=rtl>"
	
  
	spaces=100-levelID



		
	msg=MessageID
	

    
    fullmsg=fullmsg+"<TABLE cellSpacing=1 cellPadding=0 width=\"100%\" border=0 DIR=RTL align=left>"  
    fullmsg=fullmsg+"<TR>"
    fullmsg=fullmsg+"<TD align=left  bgColor=#eeeeee>"
    fullmsg=fullmsg+"<TABLE cellSpacing=0 cellPadding=0 width=\""+spaces+"%\" border=0 DIR=RTL align=left>"  
    fullmsg=fullmsg+"<TR>"
    fullmsg=fullmsg+"<TD align=left valign=top>"

	
    
     if (forum==998 && UserID1!=UserID)      
        fullmsg=fullmsg+"<A   title=\"סמן הודעה\" style=\"TEXT-DECORATION: none\"   href=\"updateReadMsg.asp?"+par+"&forumPrev="+forumPrev+"\">";
     else        
		fullmsg=fullmsg+"<A   title=\"צפיה בהודעה בעמוד נפרד בהקשרה\" style=\"TEXT-DECORATION: none\" href=\""+scriptname+"?Archiv="+Archiv2+"&forum="+forum1+"&showTree="+MessageID+"\">"
	
		
		fullmsg=fullmsg+"<B>"
		
		if (levelID==0)
		{		
		fullmsg=fullmsg+"<font   STYLE=\"FONT-SIZE:13pt;\" face=verdana   color=\"014a81\" >"
		fullmsg=fullmsg+"<B>•</B>&nbsp;"
		}
		else
		{
		fullmsg=fullmsg+"<font  face=verdana   STYLE=\"FONT-SIZE:12pt;\" color=\"43a1d7\" >"
		fullmsg=fullmsg+"•&nbsp;"
		}		
      
		fullmsg=fullmsg+"</B></FONT>"
		fullmsg=fullmsg+"</A>"
        fullmsg=fullmsg+"</TD>"            
        fullmsg=fullmsg+"<TD align=right width=\"100%\" bgColor=#eeeeee valign=top>"
		fullmsg=fullmsg+"<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" align=center border=0 >"        
	    fullmsg=fullmsg+"<TR>"
		fullmsg=fullmsg+"<TD align=right >"          				
				   					
		fullmsg=fullmsg+"<span dir=rtl>"
				    
		 					  				    
    
    var temp       
	fullmsg=fullmsg+"<A class=subj  href=\"javascript:void('l"+msg+"')\" id=link"+numOfId+" ></a>" ;

	//fullmsg=fullmsg+"<SPAN  id=subj"+numOfId+" onclick=\"showmsg('"+msg+"','"+flagForum+"','"+forumPrev+"','"+numOfId+"','"+isRead+"','"+FileName+"','"+MsgBody+"')" ;
	fullmsg=fullmsg+"<SPAN  id=subj"+numOfId
	fullmsg=fullmsg+" onclick=\"showmsg('"+msg+"','"+flagForum+"','"+forumPrev+"','"+numOfId+"','"+isRead+"','"+FileName+"','"+MsgBody+"')\"" 		
	fullmsg=fullmsg+" style=\"CURSOR: hand\" class="+classColor+">"
	
					
	fullmsg=fullmsg+"<FONT STYLE=\"FONT-SIZE:15px;\">"					
	fullmsg=fullmsg+"<U>"+MsgSubject+"</U>"            
			
	fullmsg=fullmsg+"</font>"
	fullmsg=fullmsg+"</span>"					
	
	
			
    fullmsg=fullmsg+"<FONT  color=#eeeeee STYLE=\"FONT-SIZE: 8pt\">.</FONT>"
    
   
                    
	if (MsgBody=="") 					
	{
		  fullmsg=fullmsg+"&nbsp;<font color=#ffcc33><b>לת</b></font>&nbsp;"					
	}  
					
    fullmsg=fullmsg+"</span>"                    
                           
    fullmsg=fullmsg+"<FONT  color=#eeeeee STYLE=\"FONT-SIZE: 8pt\">.</FONT>"                   
	
	
	if (counter1 > 0)
    {
		fullmsg=fullmsg+"<font STYLE=\"FONT-SIZE: 10pt\">"
		fullmsg=fullmsg+"<span  dir=ltr style=\"CURSOR: hand\"  "
		if (divname1!="-1")
		{
			 fullmsg=fullmsg+"onclick=\"showmsg('"+divname1+"','"+flagForum+"','"+forumPrev+"','0','"+isRead+"','','')\""
		}    
		
		fullmsg=fullmsg+" title=\"לחיצה על מספר התגובות תגלה או תסתיר אותן בהתאמה\">&nbsp;(<B>"+counter1+"</B>)&nbsp;"
		fullmsg=fullmsg+"</span>"
            
		fullmsg=fullmsg+"</font>"
            
	}
	
	 
										
		fullmsg=fullmsg+"<FONT  color=#eeeeee STYLE=\"FONT-SIZE: 8pt\">.</FONT>"  
		fullmsg=fullmsg+"<SPAN  class=Mark id=mark"+numOfId+" >"
		
		fullmsg=fullmsg+"<FONT  STYLE=\"FONT-SIZE: 10pt\">"					
		
		
		
		if (GuestNick!=username)
				 {fullmsg=fullmsg+"O"}
					 					
		fullmsg=fullmsg+"</font>"
		fullmsg=fullmsg+"</span>"	
		
		
		
		if (isRead=="True")
		{
			fullmsg=fullmsg+"<FONT  color=#eeeeee>.</FONT>&nbsp;"  
			fullmsg=fullmsg+"<span dir=ltr>"
			fullmsg=fullmsg+"<font color=ORANGE STYLE=\"FONT-SIZE: 10pt\">V</font>"
			fullmsg=fullmsg+"</span>"					
		}
				
		
					
		if (isFile=="True")
		{
		   var  picturepath ,msgTitle				
		   picturepath="http://4ourpets.com/forumimg/"+FileName
				
		   fullmsg=fullmsg+"<span dir=ltl>&nbsp;" 
					    
  		   fullmsg=fullmsg+"<a href=\"javascript:openWindow1('show_picture.asp?picture1="+picturepath+"&title1="+MsgSubject+"&id="+MessageID+"', 'remote');\" >"    

 		   fullmsg=fullmsg+"<font STYLE=\"FONT-SIZE: 10pt\" color=mediumslateblue>"+FileNameExt+"</font></a>" 
				fullmsg=fullmsg+"</span>"
		
										
		}
   

   
   			        if (forum1==998 )
			        {
			        fullmsg=fullmsg+"<FONT  color=#eeeeee STYLE=\"FONT-SIZE: 8pt\">.</FONT>"
					fullmsg=fullmsg+"<span dir=rtl>"
					fullmsg=fullmsg+"<font color=red STYLE=\"FONT-SIZE: 10pt\">"					
					fullmsg=fullmsg+"&nbsp;שולח:&nbsp;"
					fullmsg=fullmsg+"</font>"
					fullmsg=fullmsg+"</span>"
					}
					

                   fullmsg=fullmsg+"<FONT  color=#eeeeee STYLE=\"FONT-SIZE: 8pt\">.</FONT>"			                            
                   fullmsg=fullmsg+"<span dir=ltr>"                    
					fullmsg=fullmsg+"<A style=\"TEXT-DECORATION: none\"  href=\"javascript:openWindow('showuser.asp?UserID="+UserID1+"&forum=998&forumPrev="+forum+"', 'remote');\">"						
						

					//isMan="False"
					
									
					//if RSmflag="True" then
					//	for k=0 to rsmLen              
					//		if RSm(1,k)=GuestNick then isMan="True"            
					//	next                            
					//end if	
					             
                                                       
					if (isMan=="True")
					{
					fullmsg=fullmsg+"<FONT  color=#eeeeee STYLE=\"FONT-SIZE: 8pt\">.</FONT>"
					fullmsg=fullmsg+"<FONT  STYLE=\"FONT-SIZE: 10pt\" color=navy><b>"
					}
					else
					{                                
					     if (isMan=="Red")
					     { 
						fullmsg=fullmsg+"<FONT  color=#eeeeee STYLE=\"FONT-SIZE: 8pt\">.</FONT>"
						fullmsg=fullmsg+"<FONT  STYLE=\"FONT-SIZE: 10pt\" color=firebrick><b>"
					     }
                                              else                                                                                         
						if (GuestNick==username)
					          fullmsg=fullmsg+"<FONT  color=black STYLE=\"FONT-SIZE: 10pt\"><b>"						                                                                                                         
                                                else   
                            		          fullmsg=fullmsg+"<FONT  STYLE=\"FONT-SIZE: 10pt\">"
						
					}
				
				
					
					
	              	              
					fullmsg=fullmsg+GuestNick+"</FONT>"
					
					if (isMan=="True" || GuestNick==username)					 
					  fullmsg=fullmsg+"</b>"					 
              
					fullmsg=fullmsg+"</A>"
					fullmsg=fullmsg+"</span>"
					
						
					
					if (forum1==998)
					{		
					 fullmsg=fullmsg+"<FONT  color=#eeeeee STYLE=\"FONT-SIZE: 8pt\">.</FONT>" 
					 fullmsg=fullmsg+"<span dir=rtl>"
					 fullmsg=fullmsg+"<font color=red STYLE=\"FONT-SIZE: 10pt\">"					
					fullmsg=fullmsg+"&nbsp;נמען:&nbsp;"
					fullmsg=fullmsg+"</font>"			
					fullmsg=fullmsg+"</span>"
					fullmsg=fullmsg+"<FONT  color=#eeeeee STYLE=\"FONT-SIZE: 8pt\">.</FONT>"  
					fullmsg=fullmsg+"<span dir=ltr>"
					 fullmsg=fullmsg+"&nbsp;<A style=\"TEXT-DECORATION: none\"  href=\"javascript:openWindow('showuser.asp?UserID="+toUserID1+"', 'remote');\">"
					 if (toNick==username)
                                         {
					    fullmsg=fullmsg+"<FONT  color=black STYLE=\"FONT-SIZE: 10pt\"><b>"
                                         }
					  else
                                          {
						fullmsg=fullmsg+"<FONT  STYLE=\"FONT-SIZE: 10pt\">"
                                          }
						
					fullmsg=fullmsg+toNick

					fullmsg=fullmsg+"</font></a></span>"

					}
					 
					
					
					
					
					
            		
              fullmsg=fullmsg+"</TD>"              
            
				
			  fullmsg=fullmsg+"<TD align=right width=\"60\" ><FONT STYLE=\"FONT-SIZE: 10pt\">"+theDateStr+"</FONT></TD>"  
			   

			  fullmsg=fullmsg+"<TD align=left width=\"3\" ><FONT STYLE=\"FONT-SIZE: 10pt\" color=#eeeeee>|</FONT></TD>"          
			  fullmsg=fullmsg+"<TD align=left width=\"50\" ><FONT STYLE=\"FONT-SIZE: 10pt\">&nbsp;&nbsp;"+theHour+"&nbsp;&nbsp;</FONT></TD>"
          
		  fullmsg=fullmsg+"</TR>"
       fullmsg=fullmsg+"</TABLE>"
       fullmsg=fullmsg+"<div id=id"+msg+"  style=\"display:"
       
       
       
       //'AAA
       if (msgid>1 || showTree==msg)
        //fullmsg=fullmsg+"block"
        fullmsg=fullmsg+"none"
       else
        fullmsg=fullmsg+"none"
       
       fullmsg=fullmsg+"\">"                 
      //<% '-----------------  %>
      fullmsg=fullmsg+"<table width=\"85%\" align=right cellpadding=0 cellspacing=0 border=0>"
      fullmsg=fullmsg+"<tr>"
      fullmsg=fullmsg+"<td valign=top align=right dir=rtl>"  
       
       
       
       if (isFile=="True" && FileName.length>4)
       {
           fullmsg=fullmsg+"<br><table width=200 align=left cellpadding=2 cellspacing=0 border=0>"
           
                 										        
      fullmsg=fullmsg+"<tr><td valign=top align=right>"
      fullmsg=fullmsg+"<a href=\"javascript:openWindow1('show_picture.asp?picture1="+picturepath+"&title1="+MsgSubject+"&id="+MessageID+"', 'remote');\">"
      //fullmsg=fullmsg+"&nbsp;&nbsp;<img    name=\"img"+msg+"\" id=\"img"+msg+"\"  src=\""+picturepath+"\" width=250 border=1>&nbsp;&nbsp;"
      fullmsg=fullmsg+"<SPAN id=span"+MessageID+">"
      //fullmsg=fullmsg+""
      fullmsg=fullmsg+"</SPAN>"
      fullmsg=fullmsg+"</a>"
      fullmsg=fullmsg+"<br></td></tr></table>"
      }
      
      
      fullmsg=fullmsg+"<FONT STYLE=\"FONT-SIZE:15px;\">"             
      fullmsg=fullmsg+"<SPAN id=spanbody"+MessageID+">"
      fullmsg=fullmsg+""
      fullmsg=fullmsg+"</SPAN>"
     
      //fullmsg=fullmsg+MsgBody
      
      fullmsg=fullmsg+"<br><br>"      
      fullmsg=fullmsg+"<TABLE cellSpacing=0  align=right bgColor="+colors[5]+" border=0>"        
      fullmsg=fullmsg+"<TR>"         
      fullmsg=fullmsg+"<TD align=right>"
        
	  fullmsg=fullmsg+"<TABLE  style=\"BORDER-RIGHT: "+colors[8]+" 1px solid; BORDER-TOP: "+colors[8]+" 1px solid; BORDER-LEFT: "+colors[8]+" 1px solid; BORDER-BOTTOM: "+colors[8]+" 1px solid\"" 
	  fullmsg=fullmsg+"cellSpacing=0 cellPadding=0 bgColor="+colors[6]+">"       
	  fullmsg=fullmsg+"<TR>"
	  fullmsg=fullmsg+"<TD>&nbsp;"
	 

  
	if (forum1!=999 && Archiv=="false")
	{		        		     

         if  (forum!=998 || (forum==998 &&  UserID1!=UserID))		
	   //if  (forum!=998 || (forum==998 &&  UserID1!=UserID))
	   {
		   fullmsg=fullmsg+"<A style=\"TEXT-DECORATION: none\"" 
		   fullmsg=fullmsg+"href='addmsg_text.asp?forumPrev="+forumPrev+"&forum="+forum1+"&amp;msgid="+MessageID+"&amp;level="+levelID
		   if (forum==998) 
			     fullmsg=fullmsg+"&private1=true"
				
		   fullmsg=fullmsg+"'><FONT color=fffbd5><B>הוספת תגובה </B></FONT></A>&nbsp;&nbsp;&nbsp;"			
                   fullmsg=fullmsg+"<A style=\"TEXT-DECORATION: none\"" 
		   fullmsg=fullmsg+"href='addmsg.asp?forumPrev="+forumPrev+"&forum="+forum1+"&amp;msgid="+MessageID+"&amp;level="+levelID
		   if (forum==998) 
			     fullmsg=fullmsg+"&private1=true"
				
		   fullmsg=fullmsg+"'><FONT color=fffbd5><B>[עורך ]</B></FONT></A>&nbsp;&nbsp;&nbsp;"			
	  }
	else								
	    fullmsg=fullmsg+"<FONT color=fffbd5><B>אין אפשרות להגיב להודעה זאת</b></font>"
	}
				
	     
	 fullmsg=fullmsg+"</TD>"
	 fullmsg=fullmsg+"</TR>"
	 fullmsg=fullmsg+"</TABLE>"      
		
	 fullmsg=fullmsg+"</td>"
	 fullmsg=fullmsg+"<TD align=left>"
     fullmsg=fullmsg+"<TABLE  style=\"BORDER-RIGHT: "+colors[8]+" 1px solid; BORDER-TOP: "+colors[8]+" 1px solid; BORDER-LEFT: "+colors[8]+" 1px solid; BORDER-BOTTOM: "+colors[8]+" 1px solid\" "
	 fullmsg=fullmsg+"height=15 cellSpacing=0 cellPadding=0 width=15 bgColor="+colors[6]+">"              
     fullmsg=fullmsg+"<TR>"
	 fullmsg=fullmsg+"<TD align=middle><A" 
	 fullmsg=fullmsg+" style=\"CURSOR: hand; TEXT-DECORATION: none\"" 
	 fullmsg=fullmsg+" onclick=\"showmsg('"+msg+"','"+flagForum+"','"+forumPrev+"','0','"+isRead+"','','"+MsgBody+"')\" title=\"הסתר הודעה\"><FONT color=FFFBD5>" 
	//fullmsg=fullmsg+" onclick=\"showmsg('"+msg+"','"+flagForum+"','"+forumPrev+"','"+numOfId+"','"+isRead+"','"+FileName+"','"+MsgBody+"')\"" 		
	//fullmsg=fullmsg+" style=\"CURSOR: hand\" class="+classColor+">"



	 fullmsg=fullmsg+"<font STYLE=\"FONT-SIZE: 10pt\"><B>X</B></FONT></A>"
	 fullmsg=fullmsg+"</TD>"
	 fullmsg=fullmsg+"</TR>"
     fullmsg=fullmsg+"</TABLE>"            
     fullmsg=fullmsg+"</TD>"
     fullmsg=fullmsg+"</TR>"
     fullmsg=fullmsg+"</TABLE>"                     
     //<%'----------------------%>
     fullmsg=fullmsg+"</td>"
     fullmsg=fullmsg+"</tr>"
     fullmsg=fullmsg+"</table>"   
     //<%'----------------------%>
                 
    fullmsg=fullmsg+"</div>"    
    fullmsg=fullmsg+"</TD>"
    fullmsg=fullmsg+"</td>"                                    
    fullmsg=fullmsg+"</TR>"
    fullmsg=fullmsg+"</TABLE>"    
    fullmsg=fullmsg+"</td>"                                    
    fullmsg=fullmsg+"</TR>"
    fullmsg=fullmsg+"</TABLE>"         


    
document.write(fullmsg);

}

//end of printrec


function  printLine111(color)
{

var str
str="<TABLE cellSpacing=2 cellPadding=0 width=\"100%\" border=0 DIR=RTL align=left><TR>"
str=str+"<TD align=left  bgColor="+color+"></td></TR></TABLE>"  

document.write(str);        

}

