helpWidth = 0;

function portletRaportAnual(anul, zi,luna,an, ext1, ext2)
{
	margine = 10;
	document.write('<table width="120" cellpadding="0" cellspacing="0">');
	document.write('	<tr>');
	document.write('		<td width="20">');
	document.write('		</td>');
	document.write('		<td width="40">');
	document.write('		</td>');
	document.write('		<td width="60">');
	document.write('	    </td>');
	document.write('	</tr>');
	document.write('	<tr height="'+margine+'">');
	document.write('		<td colspan=2 bgcolor="#00FFFF">');
	document.write('		</td>');
	document.write('		<td width="60"></td>');
	document.write('	</tr>');
	document.write('	<tr>');
	document.write('		<td colspan=2 bgcolor="#00FFFF">');
	document.write('			<center>');
	document.write(anul);
	document.write('			</center>');
	document.write('		</td>');
	document.write('		<td width="75" bgcolor="#FFFFFF">');
	
	recent(zi,luna,an);
	
	document.write('		</td>');
	document.write('	</tr>');
	document.write('	<tr height="' + margine + '">');
	document.write('		<td colspan=2 bgcolor="#00FFFF">');
	document.write('		</td>');
	document.write('		<td width="75" bgcolor="#CCCCCC">');
	document.write('		</td>');
	document.write('	</tr>');
	document.write('	<tr>');
	document.write('		<td width="15" bgcolor="#FFFFFF">');	
	document.write('		</td>');
	document.write('		<td colspan=2 bgcolor="#CCCCCC">');
	document.write('			<center> ');
	
	strLink = '<a href="/pdf/raportanual/' + dirLimba; 
	
	if(ext1 != null)
	{
		if( (anul == '2000') && (limba == 1) ) {
			strLink = strLink + 'Raport-Anual-CNVM-2000/';
	    }
		if(limba == 1)
		{
			document.write(strLink + 'Raport-Anual-CNVM-' + anul + '.' + ext1 + '" target=_blank>');
		}
		if(limba == 2)
		{
			document.write(strLink + 'CNVM-Annual-Report-' + anul + '.' + ext1 + '" target=_blank>');
		}
		document.write('<font size=2>');	
		document.write(		ext1);
		document.write('</font>');
		document.write('</a>');
	}

	strLink = '<a href="/pdf/raportanual/' + dirLimba; 
	
	if(ext2 != null)
	{
		document.write('&nbsp;');
		if(limba == 1)
		{
			document.write(strLink + 'Raport-Anual-CNVM-' + anul + '.' + ext2 + '">');
		}
		if(limba == 2)
		{
			document.write(strLink + 'CNVM-Annual-Report-' + anul + '.' + ext2 + '">');
		}		
		document.write('<font size=2>');	
		document.write(		ext2);
		document.write('</font>');
		document.write('</a>');
	}
	document.write('			</center>');
	document.write('		</td>');
	document.write('	</tr>');
	document.write('	<tr height=' + margine + '>');
	document.write('		<td width="15" bgcolor="#FFFFFF">');	
	document.write('		</td>');
	document.write('		<td colspan=2 bgcolor="#CCCCCC">');
	document.write('		</td>');	
	document.write('	</tr>');	
	document.write('</table>');
}

function portletRaportAnualindisponibil(anul, zi,luna,an, ext1, ext2)
{
	margine = 10;
	document.write('<table width="120" cellpadding="0" cellspacing="0">');
	document.write('	<tr>');
	document.write('		<td width="20">');
	document.write('		</td>');
	document.write('		<td width="40">');
	document.write('		</td>');
	document.write('		<td width="60">');
	document.write('	    </td>');
	document.write('	</tr>');
	document.write('	<tr height="'+margine+'">');
	document.write('		<td colspan=2 bgcolor="#00FFFF">');
	document.write('		</td>');
	document.write('		<td width="60"></td>');
	document.write('	</tr>');
	document.write('	<tr>');
	document.write('		<td colspan=2 bgcolor="#00FFFF">');
	document.write('			<center>');
	document.write(anul);
	document.write('			</center>');
	document.write('		</td>');
	document.write('		<td width="75" bgcolor="#FFFFFF">');
	
	recent(zi,luna,an);
	
	document.write('		</td>');
	document.write('	</tr>');
	document.write('	<tr height="' + margine + '">');
	document.write('		<td colspan=2 bgcolor="#00FFFF">');
	document.write('		</td>');
	document.write('		<td width="75" bgcolor="#CCCCCC">');
	document.write('		</td>');
	document.write('	</tr>');
	document.write('	<tr>');
	document.write('		<td width="15" bgcolor="#FFFFFF">');	
	document.write('		</td>');
	document.write('		<td colspan=2 bgcolor="#CCCCCC">');
	document.write('			<center> ');
	
	strLink = '<a href="/pdf/raportanual/' + dirLimba; 
	
	if(ext1 != null)
	{
		if( (anul == '2000') && (limba == 1) ) {
			strLink = strLink + 'Raport-Anual-CNVM-2000/';
	    }
		if(limba == 1)
		{
			document.write(strLink + anul + '.' + ext1 + '" target=_blank>');
		}
		if(limba == 2)
		{
			document.write(strLink + 'CNVM-Annual-Report-' + anul + '.' + ext1 + '" target=_blank>');
		}
		document.write('<font size=2>');	
		document.write(		ext1);
		document.write('</font>');
		document.write('</a>');
	}

	strLink = '<a href="/pdf/raportanual/' + dirLimba; 
	
	if(ext2 != null)
	{
		document.write('&nbsp;');
		if(limba == 1)
		{
			document.write(strLink + 'Raport-Anual-CNVM-' + anul + '.' + ext2 + '">');
		}
		if(limba == 2)
		{
			document.write(strLink + 'CNVM-Annual-Report-' + anul + '.' + ext2 + '">');
		}		
		document.write('<font size=2>');	
		document.write(		ext2);
		document.write('</font>');
		document.write('</a>');
	}
	document.write('			</center>');
	document.write('		</td>');
	document.write('	</tr>');
	document.write('	<tr height=' + margine + '>');
	document.write('		<td width="15" bgcolor="#FFFFFF">');	
	document.write('		</td>');
	document.write('		<td colspan=2 bgcolor="#CCCCCC">');
	document.write('		</td>');	
	document.write('	</tr>');	
	document.write('</table>');
}











function portletHeader(titlu, width, WidthTitlu, zi, luna, an, help, cale,abrogat)
{
	MargineDreapta = 1;
   	document.write('<table border="0" cellpadding="0" cellspacing="0" width="' + width + '" name="obiectportlet">');
   	document.write('  <tr>');
   	document.write('     <td background="' + cale+caleImaginiGlobale + 'headerR.jpg" width="' + width + '" height="25">'); //
	document.write('&nbsp;&nbsp;&nbsp;');
//	document.write(			titlu);	
	if (abrogat==true){
	document.write('<font color="#FF0000">');	
   	document.write(			titlu);	
	document.write('</font>');	
	}
	else document.write(			titlu);	
   	if(an != 0)
   	{  
   	  document.write('        <script language="JavaScript">');   
      document.write('            actualizat('+zi+','+luna+','+an+');');        
	  document.write('        </script>');
   	}
   	document.write('    </td>');
	document.write('     <td width="1">');
   	document.write('     </td>');
   	document.write('   </tr>');
}

function portletBodyHeader(help)
{	

   document.write('   <tr>');   
   document.write('       <td bgcolor="' + culoareFundal + '">');   
   		 document.write('<center>');
   document.write('<table>');
      document.write('<tr>');
	     document.write('<td width="10">');
		 document.write('</td>');
		 document.write('<td width="100%">');
}

function portletBodyFooter()
{
   				document.write('</td>');
   		document.write('</tr>');
   document.write('</table>');
   document.write('</center>');
   document.write('</td>');
   document.write('      <td width="2">');
   document.write('      </td>');
   document.write('   </tr>');
}

function portletFooter()
{
   document.write('   <tr>');
   document.write('    	 <td colspan=3 height="1">');
   document.write('      </td>');
   document.write('   </tr>');
   document.write('</table>');
}
