// JavaScript Document
//Arreglos--------------------------------------------------------------------------------------------
function getTabla(){
var strArreglo=new Array();
strArreglo[0]='Nombre del Curso*Centro de Trabajo*Duraci&#243;n*Inicio*Fin*';
strArreglo[1]='Busines Objects XI R2 WEB INTELLIGENCE*NUTRECO Monterrey*16 horas*8-MAR-2010*11-MAR-2010*';
strArreglo[2]='Busines Objects REPORTES AVANZADOS XI R2/R3*QUALA Toluca*20 horas*1-MAR-2010*5-MAR-2010*';
strArreglo[3]='Busines Objects XI R2/R3 WEB INTELLIGENCE*COMIMSA/Conacit D.F.*25 horas*11-ENE-2010*14-ENE-2010*';
strArreglo[4]='Busines Objects DISE&#209;ADOR DE UNIVERSOS XI R2/R3*COMIMSA/Conacit D.F.*20 horas*14-ENERO-2010*16-ENE-2010*';
strArreglo[5]='Busines Objects Administraci&#243;n de Servidores XI R2/R3*PEMEX PEP SUR*40 horas*1-Jun-2009*5-Jun-2009*';
strArreglo[6]='Busines Objects Web Intelligence XI*UPMP*24 horas*08-Nov-2009*10-Nov-2009*';        
strArreglo[7]='Busines Objects XI / R2 Reportes Avanzados*MEXALIT Santa Clara*25 horas*6-Nov-2008*10-Nov-2008*';
strArreglo[8]='Busines Objects XI Reportes Avanzados*Pemex Pep*40 horas*30-Jun-2008*4-Jul-2008*';
strArreglo[9]='Busines Objects 5.1*Pemex Pep*40 horas*12-May-2008*16-May-2008*';
strArreglo[10]='Busines Objects 5.1*Quala Mexico*24 horas*13-Nov-2007*16-Nov-2007*';
strArreglo[11]='Busines Objects Web Intelligence XI*General Electric Monterrey.*24 horas*08-Nov-2007*10-Nov-2007*';
strArreglo[12]='Busines Objects Intermedio*IMP*40 horas*02-Oct-2006*06-Oct-2006*';
strArreglo[13]='Business Objects Report Ii*IMP RMSO*16 horas*31-Jul-2006*01-Agos-2006*';
strArreglo[14]='Business Objects Basico*IMP*40 horas*10-Jul-2006*21-Jul-2006*';
strArreglo[15]='Business Objects*IMP PFN*40 horas*05-Jun-2006*09-Jun-2006*';
strArreglo[16]='Business Objects Ii*IMP*40 horas*08-May-2006*19-May-2006*';
strArreglo[17]='Business Objects Report I*IMP RMSO*32 horas*20-Mar-2006*29-Mar-2006*';
strArreglo[18]='Business Objects Basico*IMP*35 horas*13-Mar-2006*17-Mar-2006*';
strArreglo[19]='Business Objects I*IMP*40 horas*20-Feb-2006*03-Feb-2006*';
strArreglo[20]='Business Objects Basico*IMP*40 horas*13-Feb-2006*17-Feb-2006*';
strArreglo[21]='Designer Creador de Universos*IMP*40hrs*16-May-2005*7-May-2005 *';
strArreglo[22]='Business Object 5.1*IMP*40 horas*08-Mar-2005*26-Mar-2005*';
strArreglo[23]='Business Object Reporter 3*IMP*16 horas*23-May-2005*25-May-2005*';
strArreglo[24]='Business Object Reporter 1*IMP*16 horas*1-Abr-2005*2-Abr-2005*';
strArreglo[25]='Business Object Reporter I*Perforaci&#243;n*16 horas*29-Nov-2004*02-Dic-2004*';
strArreglo[26]='Business Object*IMP*40 horas*15-Nov-2004*26-Nov-2004*';
strArreglo[27]='Business Object Disagner*IMP*40 horas*08-Nov-2004*12-Nov-2004*';
strArreglo[28]='Business Object Reporter I*Perforaci&#243;n*4 horas*25-Oct-2004*25-Oct-2004*';
strArreglo[29]='Business Object*IMP*40 horas*26-Jul-2004*30-Jul-2004*';
strArreglo[30]='BusinessObject, Reportes Redefinidos*PEMEX CPG NUEVO PEMEX*80 horas*19-Jul-2004*30-Jul-2004*';
strArreglo[31]='Business Object Reporter WebIntelligence*Perforaci&#243;n*16 horas*01-Jul-2004*02-Jul-2004*';
strArreglo[32]='Business Object Reporter 3*Perforaci&#243;n*16 horas*29-Jun-2004*30-Jun-2004*';
strArreglo[33]='Business Object Reporter 1*Perforaci&#243;n*16 horas*10-Jun-2004*11-Jun-2004*';
strArreglo[34]='Business Object Reporter 1*Perforaci&#243;n*32 horas*11-May-2004*14-May-2004*';
strArreglo[35]='Business Object*IMP*40 horas*10-Mar-2003*14-Mar-2003*';
strArreglo[36]='Business Object*IMP*20 horas*11-Nov-2002*15-Nov-2002*';
strArreglo[37]='Business Object*IMP*20 horas*04-Nov-2002*08-Nov-2002*';
strArreglo[38]='Business Object*IMP*20 horas*23-Sep-2002*27-Sep-2002*';
strArreglo[39]='Businses Object*IMP*20 horas*23-Sep-2002*27-Sep-2002*';
strArreglo[40]='Business Object*IMP*24 horas*02-Sep-2002*04-Sep-2002*';
strArreglo[41]='Business Object*IMP*20 horas*19-Ago-2002*23-Ago-2002*';
strArreglo[42]='Business Object*IMP*20 horas*12-Ago-2002*16-Ago-2002*';
strArreglo[43]='Business Object*IMP*40 horas*24-Jun-2002*28-Jun-2002*';
strArreglo[44]='Business Object*IMP*30 horas*19-Nov-2001*28-Nov-2001*';
strArreglo[45]='Business Objets*PEMEX UPMP*20 horas*12-Nov-2001*16-Nov-2001*';
strArreglo[46]='Business Object*IMP*40 horas*10-Sep-2001*14-Sep-2001*';
strArreglo[47]='Business Object*IMP*24 horas*10-Sep-2001*12-Sep-2001*';
strArreglo[48]='Business Object B&#225;sico*PEMEX UPMP*20 horas*27-Ago-2001*31-Ago-2001*';
strArreglo[49]='Businesss Object*IMP*15 horas*13-Ago-2001*17-Ago-2001*';
strArreglo[50]='Business Object*PEMEX UPMP*20 horas*13-Ago-2001*17-Ago-2001*';
strArreglo[51]='Business Object*PEMEX UPMP*20 horas*30-Jul-2001*03-Ago-2001*';
strArreglo[52]='Business Object*IMP*20 horas*23-Jul-2001*27-Jul-2001*';
strArreglo[53]='Business Object*PEMEX UPMP*20 horas*16-Jul-2001*20-Jul-2001*';
strArreglo[54]='Business Object*PEMEX PEP*20 horas*25-Jun-2001*29-Jun-2001*';
strArreglo[55]='Business Object B&#225;sico*IMP*24 horas*18-Jun-2001*20-Jun-2001*';
strArreglo[56]='Business Object B&#225;sico*IMP*24 horas*11-Jun-2001*13-Jun-2001*';
strArreglo[57]='Business Object B&#225;sico*IMP*24 horas*14-Jun-2001*18-Jun-2001*';
strArreglo[58]='Business Object*IMP*8 horas*18-Jun-2001*18-Jun-2001*';
strArreglo[59]='Business Object Designer*IMP*24 horas*30-Abr-2001*02-May-2001*';
strArreglo[60]='Business Object Designer*IMP*15 horas*17-Abr-2001*18-Abr-2001*';
strArreglo[61]='Business Object*IMP*15 horas*03-Abr-2001*04-Abr-2001*';
strArreglo[62]='Business Object*IMP*15 horas*20-Mar-2001*21-Mar-2001*';

	
	
var tblArreglo=new Array(strArreglo.length);

for (j=0;j<=(strArreglo.length-1);j++)
{
	var tblOpcion=new Array();
	divideGuarda(strArreglo[j],tblOpcion);
	//document.write("-el titulo-"+tblOpcion[1]+"-");
	tblArreglo[j]=tblOpcion;	
	//document.write("-en tblArreglo-"+tblArreglo[j][1]+"-");
}
//dise&#241;o de la pagina
return tblArreglo;
}
//1--------------------------------------------------------------------------------------------------------------------------------
function divideGuarda(cadena,tblOpcion){

//document.write(cadena);
var indiceCampo=0;
var inicio=0;
var campo=''; 

for(i=0;i<=(cadena.length-1);i++){
	if(cadena.substr(i,1)=='*'){
		tblOpcion[indiceCampo]=campo;
		//document.write("-"+tblOpcion[indiceCampo]+"-");
		indiceCampo=indiceCampo+1;
		
		campo='';	    
		i=i+1;		
	}
	
	campo=campo+cadena.substr(i,1);
}
}
//Funciones-------------------------------------------------------------------------------------------

function escribirArreglo(nombreArreglo){
	var cadena='<table border=1  cellpadding="10" cellspacing="0"  width=642" class="Lista1">';
	var anchocelda=0
	
		cadena=cadena+"<tr>";
		//for(j=0;j<=4;j++){
			
				cadena=cadena+"<td width ='110' class='cabesera' bgcolor='#0000FF' style='border-bottom-style: solid; border-bottom-width: 1px'>"+tblArreglo[0][0]+"</td>"
				cadena=cadena+"<td width ='110' class='cabesera' bgcolor='#0000FF' style='border-bottom-style: solid; border-bottom-width: 1px'>"+tblArreglo[0][1]+"</td>"
				cadena=cadena+"<td width ='80' class='cabesera' bgcolor='#0000FF' style='border-bottom-style: solid; border-bottom-width: 1px'>"+tblArreglo[0][2]+"</td>"
				cadena=cadena+"<td width ='90' class='cabesera' bgcolor='#0000FF' style='border-bottom-style: solid; border-bottom-width: 1px'>"+tblArreglo[0][3]+"</td>"
				cadena=cadena+"<td width ='90' class='cabesera' bgcolor='#0000FF' style='border-bottom-style: solid; border-bottom-width: 1px'>"+tblArreglo[0][4]+"</td>"
		
		//}//for
		cadena=cadena+"</tr>";

		
	for(i=1;i<=(tblArreglo.length-1);i++){
		
		cadena=cadena+"<tr>";
	
		for(j=0;j<=4;j++){
			
				cadena=cadena+"<td style='border-bottom-style: solid; border-bottom-width: 1px'>"+tblArreglo[i][j]+"</td>"
		
		}//for
		cadena=cadena+"</tr>";
	}//for
	
	cadena=cadena+"</table>";
	
	document.getElementById('Arreglo').innerHTML=cadena;
}//function
//----------------------------------------------------------------------------------------------------

