// JavaScript Document
//Arreglos--------------------------------------------------------------------------------------------
function getTabla(){

var strArreglo=new Array();
strArreglo[0]='Nombre del Curso*Centro de Trabajo*Duraci&#243;n*Inicio*Fin*';
strArreglo[1]='Actualizacion-Autocad Intermedio *IMP*40 horas*15-Marzo-2010*19-Marzo-2010*';
strArreglo[2]='Autocad 2010 (Enfoque.Dibujo.Topografico .y Arquitectonico)*CNCI*25 horas*8-Marzo-2010*12-Marzo-2010*';
strArreglo[3]='Actualizacion-Autocad 2010 (2D y 3D)*IMP*40 horas*1-Mar-2010*5-Mar-2010*';
strArreglo[4]='E-Autocad Intermedio *IMP*40 horas*13-Jun-2005*17-Jun-2005*';
strArreglo[5]='G-Autocad 2009 (Enfoque.Dibujo.Topografico .y Arquitectonico)*IMP*40 horas*22-Ago-2009*26-Ago-2009*';
strArreglo[6]='G-Autocad 2009 (Enf.Dib.Top.yArq)*IMP*20 horas*19-May-2009*21-May-2009*';
strArreglo[7]='E-Autocad Intermedio*Perforaci&#243;n*24 horas*09-Jun-2009*11-Jun-2009*';
strArreglo[8]='G-Autocad*IMP*40 horas*24-Mar-2009*28-Mar-2009*';
strArreglo[9]='Autodesk Map 2005*IMP*80 hrs*29-Ago-2008*09-Sep-2008*';
strArreglo[10]='Autocad*PEMEX PEP*40 horas*28-May-2008*06-Jun-2008*';
strArreglo[11]='Autocad*PEMEX PEP*40 horas*28-May-2008*06-Jun-2008*';
strArreglo[12]='Autocad*IMP*80 horas*24-Sep-2007*26-Sep-2007*';
strArreglo[13]='Autocad*IMP*40 horas*24-Sep-2007*28-Sep-2007*';
strArreglo[14]='Autocad*IMP*40 horas*12-Jul-2006*16-Jul-2006*';
strArreglo[15]='Autocad*IMP*40 horas*04-Jun-2006*08-Jun-2006*';
strArreglo[16]='Autocad*IMP*20 horas*21-May-2006*25-May-2006*';
strArreglo[17]='Autocad*IMP*20 horas*21-May-2006*25-May-2001*';
strArreglo[18]='Autocad Intermedio-Avanzado*PEMEX PEP*40 horas*30-Jul-2001*10-Ago-2001*';
strArreglo[19]='Autocad Intermedio*PEMEX PEP*20 horas*21-May-2001*25-May-2001*';
strArreglo[20]='Autocad Intermedio*PEMEX PEP*20 horas*21-May-2001*25-May-2001*';
strArreglo[21]='Autocad Intermedio*IMP*40 horas*12-Mar-2001*16-Mar-2001*';
strArreglo[22]='Autocad Intermedio*IMP*40 horas*04-Jun-2001*08-Jun-2001*';
strArreglo[23]='Autocad Intermedio*IMP*40 horas*01-Mar-2004*05-Mar-2004*';
strArreglo[24]='Autocad Intermedio*IMP*20 horas*27-Ago-2001*31-Ago-2001*';
strArreglo[25]='Autocad Intermedio*IMP*20 horas*22-Mar-2004*26-Mar-2004*';
strArreglo[26]='Autocad Intermedio*IMP*20 horas*22-Mar-2004*26-Mar-2004*';
strArreglo[27]='Autocad Intermedio*IMP*20 horas*01-Oct-2001*05-Oct-2001*';
strArreglo[28]='Autocad B&#225;sico*PEMEX UPMP*20 horas*03-Dic-2001*07-Dic-2001*';
strArreglo[29]='Autocad B&#225;sico*PEMEX PEP*20 horas*12-Mar-2001*16-Mar-2001*';
strArreglo[30]='Autocad B&#225;sico*PEMEX PEP*20 horas*12-Mar-2001*16-Mar-2001*';
strArreglo[31]='Autocad Basico*IMP*40 horas*25-Jul-2005*29-Jul-2005*';
strArreglo[32]='Autocad B&#225;sico*IMP*40 horas*24-Sep-2001*28-Sep-2001*';
strArreglo[33]='Autocad Basico*IMP*40 horas*23-Jun-2003*04-Jul-2003*';
strArreglo[34]='Autocad Basico*IMP*40 horas*22-Mar-2005*03-abr-2005*';
strArreglo[35]='Autocad B&#225;sico*IMP*40 horas*12-Mar-2001*16-Mar-2001*';
strArreglo[36]='Autocad Basico*IMP*40 horas*06-Jun-2005*10-Jun-2005*';
strArreglo[37]='Autocad B&#225;sico*IMP*40 horas*03-Dic-2001*07-Dic-2001*';
strArreglo[38]='Autocad B&#225;sico*IMP*24 horas*24-Sep-2001*26-Sep-2001*';
strArreglo[39]='Autocad B&#225;sico*IMP*20 horas*27-Ago-2001*31-Ago-2001*';
strArreglo[40]='Autocad Basico*GAS-IMP*40 horas*03-Nov-2003*07-Nov-2003*';
strArreglo[41]='Autocad Avanzado*PEMEX PEP*20 horas*18-Jun-2001*22-Jun-2001*';
strArreglo[42]='Autocad Avanzado*IMP*40 horas*28-May-2001*06-Jun-2001*';
strArreglo[43]='Autocad Avanzado*IMP*40 horas*03-Dic-2001*07-Dic-2001*';
strArreglo[44]='Autocad Avanzado*IMP*40 horas*01-Ago-2005*05-Ago-2005*';
strArreglo[45]='Autocad Avanzado*IMP*20 horas*10-May-2004*14-May-2004*';
strArreglo[46]='Autocad 2000 B&#225;sico*IMP*20 horas*28-May-2001*06-Jun-2001*';
strArreglo[47]='Autocad 2000 B&#225;sico*IMP*20 horas*01-Oct-2001*05-Oct-2001*';
strArreglo[48]='Autocad 2000 Avanzado*IMP*20 horas*30-Jul-2001*10-Ago-2001*';
strArreglo[49]='Autocad 2000 Avanzado*IMP*20 horas*18-Jun-2001*22-Jun-2001*';
strArreglo[50]='Actualizacion de Autocad*IMP*40 horas*01-Mar-2005*05-Mar-2005*';
strArreglo[51]='Actualizacion de Autocad*IMP*40 horas*01-Mar-2004*05-Mar-2004*';

	

	
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]+"-");
}//if
//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 ='120' 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 ='80' class='cabesera' bgcolor='#0000FF' style='border-bottom-style: solid; border-bottom-width: 1px'>"+tblArreglo[0][3]+"</td>"
				cadena=cadena+"<td width ='80' 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
//----------------------------------------------------------------------------------------------------
