
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/// llenado de mensajes

	function PList(id,username,groupid,pos,layer,subject,inputDate,readNum,linkname,linkurl,pic,sound,fileName,face,ismail,flag,length,bgcolor,clase,category,paranew){
		

		document.write("<tr bgcolor='"+bgcolor+"'>"); //quitarle el > si se va a poner comportamiento
		//document.writeln("onMouseOver=this.style.backgroundColor='#FFFFFF' onMouseOut=this.style.backgroundColor='"+bgcolor+"' >");
		document.write('<td  width="2" bgcolor="#D76060">');
		document.write('</td>');
		document.write('<td width="390" height="20"  >&nbsp;');

		if(isShowLayer){
			/*for(i=1;i<layer;i++){
				document.write("　　");
			}*/
			if(layer>1)
							document.write(" <font class='community_text'>"+(layer-1)+"</font>&nbsp; <img src='./imagenes/repuestas2.gif' width='10' height='14' alt='Respuesta del mensaje'>&nbsp;");
		}

		if(face>0){
			document.write("&nbsp;<img src='./imagenes/face/"+face+".gif'>&nbsp;"); //este es para poner las imagenes
		}
		document.write("<a href='postmessage.html?id="+id);
		//document.write("&category="+"<?print $category?>");
		//document.write("<?print $paranew?>");
		document.write("&category="+category);
		document.write(paranew);
		document.write("' target='_self' class='"+clase+"'>");
		/*if(layer<=1)
		{*/
			//document.write("<b>");
			//document.write('<span align="left"><font size="2" >');
			document.write(subject);
			//document.write('</font></span>');
			//document.write("</b>");
		/*}
		else
		{
			document.write('<span align="left"><font size="2">');
			document.write(subject);
			document.write('</font></span>');
		}*/

		//document.write('\( L:'+length+'--H:'+readNum+' \)');

		document.write("</a>");
		document.write("</td>");
		document.write('<td width="84" height="20" class="community_text" align="center">');
		//document.write('<div align="center"><font size="2">');
		document.write(username);
		//document.write('</font></div>');
		document.write("</td>");
		document.write('<td width="31" height="20" class="community_text" align="center">');
		//document.write('<div align="center"><font size="2">');
		document.write(length);
		//document.write('</font></div>');
		document.write("</td>");

		document.write('<td width="70" height="20" class="community_text" align="center">');
		//document.write('<div align="center"><font size="2">');
		document.write(inputDate);
		//document.write('</font></div>');
		document.write('</td>');
		document.write('<td width="31" height="20" class="community_text" align="center">');
		//document.write('<div align="center"><font size="2">');
		document.write(readNum);
		//document.write('</font></div>');
		document.write('</td>');
		document.write('<td  width="2" bgcolor="#D76060" class="community_text" align="center"> </td>');

		/*
		document.write('<td width="8%" height="20">');
		document.write('<div align="center">');
			if(linkurl!=""){
				document.write("<a href='http://"+linkurl+"' tag='"+linkname+"' target='_self'>");
				document.write("<img src='./images/ie.gif' border=0>");
				document.write("</a>");
			}
			if(pic!=""){
				document.write("<a href='http://"+pic+"' target='_self'>");
				document.write("<img src='./images/pic.gif' border=0>");
				document.write("</a>");
			}
			if(sound!=""){
				document.write("<a href='http://"+sound+"' target='_self'>");
				document.write("<img src='./images/sound.gif' border=0>");
				document.write("</a>");
			}
			if(fileName!=""){
				document.write("<a href='./files/"+fileName+"' target='_self'>");
				document.write("<img src='./images/disk.gif' border=0>");
				document.write("</a>");
			}

		document.write('</div>');
		document.write("</td>");
		*/
		document.write("</tr>");
		
	}

	function UnPublishPList(id,username,groupid,pos,layer,subject,inputDate,readNum,linkname,linkurl,pic,sound,fileName,face,ismail,flag,length,bgcolor,clase,category,paranew){
		document.write("<tr bgcolor='"+bgcolor+"'>"); //quitarle el > si se va a poner comportamiento
		//document.writeln("onMouseOver=this.style.backgroundColor='#FFFFFF' onMouseOut=this.style.backgroundColor='"+bgcolor+"' >");
		document.write('<td  width="2" bgcolor="#D76060">');
		document.write('</td>');
		document.write('<td width="390" height="20"  >&nbsp');

		if(isShowLayer){
			/*for(i=1;i<layer;i++){
				document.write("　　");
			}*/
			if(layer>1)
							document.write(" <font class='community_text'>"+(layer-1)+"</font>&nbsp; <img src='./imagenes/repuestas2.gif' width='10' height='14' alt='Respuesta del mensaje'>&nbsp;");
		}

		if(face>0){
			document.write("&nbsp;<img src='./imagenes/face/"+face+".gif'>&nbsp;"); //este es para poner las imagenes
		}
		document.write("<a href='postmessage.html?id="+id);
		//document.write("&category="+"<?print $category?>");
		//document.write("<?print $paranew?>");
		document.write("&category="+category);
		document.write(paranew);
		document.write("' target='_self' class='"+clase+"'>");
		/*if(layer<=1)
		{*/
			//document.write("<b>");
			//document.write('<span align="left"><font size="2" >');
			document.write(subject);
			//document.write('</font></span>');
			//document.write("</b>");
		/*}
		else
		{
			document.write('<span align="left"><font size="2">');
			document.write(subject);
			document.write('</font></span>');
		}*/

		//document.write('\( L:'+length+'--H:'+readNum+' \)');

		document.write("</a>");
		document.write("</td>");
		document.write('<td width="84" height="20" class="community_text" align="center">');
		//document.write('<div align="center"><font size="2">');
		document.write(username);
		//document.write('</font></div>');
		document.write("</td>");
		document.write('<td width="30" height="20" class="community_text" align="center">');
		//document.write('<div align="center"><font size="2">');
		document.write(length);
		//document.write('</font></div>');
		document.write("</td>");

		document.write('<td width="70" height="20" class="community_text" align="center">');
		//document.write('<div align="center"><font size="2">');
		document.write(inputDate);
		//document.write('</font></div>');
		document.write('</td>');
		document.write('<td width="31" height="20" class="community_text" align="center">');
		//document.write('<div align="center"><font size="2">');
		document.write(readNum);
		//document.write('</font></div>');
		document.write('</td>');
		document.write('<td  width="2" bgcolor="#D76060" class="community_text" > </td>');
 
		 
		 
		 ///Codigo anterior
		 /*document.write("<tr><td><table width='100%' cellspacing='0' cellpadding='0'>");
		document.write("<tr bgcolor='"+bgcolor+"'");
		//document.writeln("onMouseOver=this.style.backgroundColor='#FFFFFF' onMouseOut=this.style.backgroundColor='"+bgcolor+"' >");
		document.write('<td width="51%" height="20">');

		if(isShowLayer){
			for(i=1;i<layer;i++){
				document.write("　　");
			}
		}

		if(face>0){
		//	document.write("&nbsp;<img src='./images/face/"+face+".gif' align='center'>");
		}
		document.write("<a href='postmessage.html?id="+id);
		document.write("&category="+"<?print $category?>");
		document.write("<?print $paranew?>");
		document.write("' target='_self' class='clase'>");
		if(layer<=1)
		{
				document.write("<b>");
				document.write('<span align="left"><font color="FF0000" size="2">');
				document.write(subject);
				document.write('</font></span>');
				document.write("</b>");
		}
		else
		{
			document.write('<span align="left"><font color="FF0000" size="2">');
			document.write(subject);
			document.write('</font></span>');
		}
		//document.write('\( L:'+length+'--H:'+readNum+' \)');
		document.write("</a></td>");
		document.write('<td width="10%" height="20">');
		document.write('<div align="center"><font  color="FF0000"  size="2">');
		document.write(username);
		document.write('</font></div>');
		document.write("</td>");
		document.write('<td width="7%" height="20">');
		document.write('<div align="center"><font  color="00ff00"  size="2">');
		document.write(length);
		document.write('</font></div>');
		document.write("</td>");
		document.write('<td width="17%" height="20">');
		document.write('<div align="center"><font  color="FF0000"  size="2">');
		document.write(inputDate);
		document.write('</font></div>');
		document.write('</td>');
		document.write('<td width="7%" height="20">');
		document.write('<div align="center"><font  color="FF0000"  size="2">');
		document.write(readNum);
		document.write('</font></div>');

		document.write('</td>');

		/*
		document.write('<td width="8%" height="20">');
		document.write('<div align="center">');
			if(linkurl!=""){
				document.write("<a href='http://"+linkurl+"' tag='"+linkname+"' target='_self'>");
				document.write("<img src='./images/ie.gif' border=0>");
				document.write("</a>");
			}
			if(pic!=""){
				document.write("<a href='http://"+pic+"' target='_self'>");
				document.write("<img src='./images/pic.gif' border=0>");
				document.write("</a>");
			}
			if(sound!=""){
				document.write("<a href='http://"+sound+"' target='_self'>");
				document.write("<img src='./images/sound.gif' border=0>");
				document.write("</a>");
			}
			if(fileName!=""){
				document.write("<a href='./files/"+fileName+"' target='_self'>");
				document.write("<img src='./images/disk.gif' border=0>");
				document.write("</a>");
			}
		document.write('</div>');
		document.write("</td>");
		*/
		//fin del codigo anterior
		document.write("</tr>");
		///document.write("</table></td></tr>");
	}


	function TempubPList(id,username,groupid,pos,layer,subject,inputDate,readNum,linkname,linkurl,pic,sound,fileName,face,ismail,flag,length,bgcolor,clase,category,paranew){
			document.write("<tr bgcolor='"+bgcolor+"'>"); //quitarle el > si se va a poner comportamiento
		//document.writeln("onMouseOver=this.style.backgroundColor='#FFFFFF' onMouseOut=this.style.backgroundColor='"+bgcolor+"' >");
		document.write('<td  width="2" bgcolor="#D76060">');
		document.write('</td>');
		document.write('<td width="390" height="20"  >&nbsp');

		if(isShowLayer){
			/*for(i=1;i<layer;i++){
				document.write("　　");
			}*/
			if(layer>1)
							document.write(" <font class='community_text'>"+(layer-1)+"</font>&nbsp; <img src='./imagenes/repuestas2.gif' width='10' height='14' alt='Respuesta del mensaje'>&nbsp;");
		}

		if(face>0){
			document.write("&nbsp;<img src='./imagenes/face/"+face+".gif'>&nbsp;"); //este es para poner las imagenes
		}
		document.write("<a href='postmessage.html?id="+id);
		//document.write("&category="+"<?print $category?>");
		//document.write("<?print $paranew?>");
		document.write("&category="+category);
		document.write(paranew);
		document.write("' target='_self' class='"+clase+"'>");
		/*if(layer<=1)
		{*/
			//document.write("<b>");
			//document.write('<span align="left"><font size="2" >');
			document.write(subject);
			//document.write('</font></span>');
			//document.write("</b>");
		/*}
		else
		{
			document.write('<span align="left"><font size="2">');
			document.write(subject);
			document.write('</font></span>');
		}*/

		//document.write('\( L:'+length+'--H:'+readNum+' \)');

		document.write("</a>");
		document.write("</td>");
		document.write('<td width="84" height="20" class="community_text" align="center">');
		//document.write('<div align="center"><font size="2">');
		document.write(username);
		//document.write('</font></div>');
		document.write("</td>");
		document.write('<td width="31" height="20" class="community_text" align="center">');
		//document.write('<div align="center"><font size="2">');
		document.write(length);
		//document.write('</font></div>');
		document.write("</td>");

		document.write('<td width="70" height="20" class="community_text" align="center">');
		//document.write('<div align="center"><font size="2">');
		document.write(inputDate);
		//document.write('</font></div>');
		document.write('</td>');
		document.write('<td width="31" height="20" class="community_text" align="center">');
		//document.write('<div align="center"><font size="2">');
		document.write(readNum);
		//document.write('</font></div>');
		document.write('</td>');
		document.write('<td  width="2" bgcolor="#D76060" class="community_text"> </td>');

			
			
			////codigo anterior
			
	/* fin del codigo anterior		
		document.write("<tr bgcolor='"+bgcolor+"'");
		//document.writeln("onMouseOver=this.style.backgroundColor='#FFFFFF' onMouseOut=this.style.backgroundColor='"+bgcolor+"' >");
		document.write('<td width="51%" height="20">');

		if(isShowLayer){
			for(i=1;i<layer;i++){
				document.write("　　");
			}
		}

		if(face>0){
		//	document.write("&nbsp;<img src='./images/face/"+face+".gif' align='center'>");
		}
		document.write("<a href='postmessage.html?id="+id);
		document.write("&category="+"<?print $category?>");
		document.write("<?print $paranew?>");
		document.write("' target='_self'  >");
		if(layer<=1)
		{
				document.write("<b>");
				document.write('<span align="left"><font color="339999" size="2">');
				document.write(subject);
				document.write('</font></span>');
				document.write("</b>");
		}
		else
		{
			document.write('<span align="left"><font color="339999" size="2">');
			document.write(subject);
			document.write('</font></span>');
		}
		//document.write('\( L:'+length+'--H:'+readNum+' \)');
		document.write("</a></td>");
		document.write('<td width="10%" height="20">');
		document.write('<div align="center"><font  color="339999"  size="2">');
		document.write(username);
		document.write('</font></div>');
		document.write("</td>");
		document.write('<td width="7%" height="20">');
		document.write('<div align="center"><font  color="339999"  size="2">');
		document.write(length);
		document.write('</font></div>');
		document.write("</td>");

		document.write('<td width="17%" height="20">');
		document.write('<div align="center"><font  color="339999"  size="2">');
		document.write(inputDate);
		document.write('</font></div>');
		document.write('</td>');
		document.write('<td width="7%" height="20">');
		document.write('<div align="center"><font  color="339999"  size="2">');
		document.write(readNum);
		document.write('</font></div>');
		document.write('</td>');

		/*
		document.write('<td width="8%" height="20">');
		document.write('<div align="center">');
			if(linkurl!=""){
				document.write("<a href='http://"+linkurl+"' tag='"+linkname+"' target='_self'>");
				document.write("<img src='./images/ie.gif' border=0>");
				document.write("</a>");
			}
			if(pic!=""){
				document.write("<a href='http://"+pic+"' target='_self'>");
				document.write("<img src='./images/pic.gif' border=0>");
				document.write("</a>");
			}
			if(sound!=""){
				document.write("<a href='http://"+sound+"' target='_self'>");
				document.write("<img src='./images/sound.gif' border=0>");
				document.write("</a>");
			}
			if(fileName!=""){
				document.write("<a href='./files/"+fileName+"' target='_self'>");
				document.write("<img src='./images/disk.gif' border=0>");
				document.write("</a>");
			}
		document.write('</div>');
		document.write("</td>");
		*/  /*   F9EEEE*///fin del codigo anterior 
		document.write("</tr>");
		 
	}



