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

var strArreglo=new Array();

	strArreglo[0]='CURSOS*FECHAS INICIO DE CURSOS*LUGAR*HORARIOS*TOTAL DE HORAS*COSTO POR PERSONA*';
	strArreglo[1]='NEODATA 2010 Precios Unitarios*Del 20 Al 21 de Marzo*Vhsa/Mty*09:00 a 17:00 S-D*16 HRS*$3,450.00*';
	strArreglo[2]='OPUS 2009 CMS*Del 22 al 26 de Marzo*Mty/D.F.*16:00 a 20:00 L-V*20 HRS*$3,800.00*';
	strArreglo[3]='OPUS AEC 11 Precios Unitarios*Del 27 al 28 de Marzo*Mty/Vhsa*09:00 a 17:00 S-D*16 HRS*$3,450.00*';
	strArreglo[4]='NEODATA 2010 Precios Unitarios*Del 22 al 26 de Marzo*Mty/Vhsa*16:00 a 20:00 L-V*20 HRS*$3,800.00*';
	strArreglo[5]='Mantenimiento de computadoras *Del 29 al 2 de Abril*D.F./Vhsa*09:00 a 14:00 L-V*20HRS*$2,950.00*';
	strArreglo[6]='BUSINESS OBJECTS XI R2/R3 Dise&#241;o&#160;de Reportes*Del 27 al 28 de Marzo*Mty/D.F.*09:00 a 17:00 S-D*16 HRS*$6,450.00*';	
        strArreglo[7]='AUTOCAD 2010*Del 5 al 9 de Abril*Vhsa/Mty*16:00 a 20:00 L-V*20 HRS*$3,500.00*';
        strArreglo[8]='MS PROJECT*Del 5 al 9 de Abril*Vhsa/D.F.*09:00 a 17:00 S-D*16 HRS*$4,500.00*';
	strArreglo[9]='BUSINESS OBJECTS WEB INTELLIGENCE XI ADMINISTRACION DE SERVIDORES*Del 10 al 11 de Abril*Mty/D.F.*09:00 a 14:00 L-V*16 HRS*$8,500.00*';
	strArreglo[10]='PRIMAVERA PROJECT PLANNER P6 Basico*Del 12 Al 16 de Abril*Mty/Vhsa*09:00 a 17:00 S-D*16 HRS*$6,850.00*';
	strArreglo[11]='NEODATA 2009 Precios Unitarios*Del 12 AL 16 de Abril*Vhsa/Mty/D.F.*16:00 a 21:00 M-V*20 HRS*$3,800.00*';
	strArreglo[12]='ARCGIS/ARCVIEW 9*Del 17 AL 18 de Abril*Mty/D.F/Vhsa.*9:00 a 17:00 S-D*16 HRS*$5,800.00*';
	strArreglo[13]='AUTODESK MAP 3D*Del 19 al 23 de Abril*D.F/Mty*09:00 a 17:00 L-V*20 HRS*$5,800.00*';

	strArreglo[14]='BUSINESS OBJECTS WEB INTELLIGENCE XI DISE&#209;O DE REPORTES*Del 12 al 16 de Abril*Mty*09:00 a 13:00 L-V*20 HRS*$6,900.00*';
	strArreglo[15]='Adminstracion de projectos con MS PROJECT 2007*Del 24 al 25 de Abril*D.F./Vhsa*9:00 a 17:00 S-D*16 HRS*$4,500.00*';
	strArreglo[16]='Metodolog&#237;a&#160;RUP (Proceso Unificado de Rational)/UML*Del 26 al 30 de Abril*Mty*16:00 a 20:00 L-V*20 HRS*$6,900.00*';
	strArreglo[17]='OPUS Propuestas 2009*3 al 7 de Mayo*Mty/D.F.*9:00 a 13:00 L-V*20 HRS*$3,800.00*';
	strArreglo[18]='PROJECT AVANZADO*Del 3 al 7 de Mayo *D.F./Vhsa*16:00 a 20:00 L-V*20 HRS*$5,500.00*';
	strArreglo[19]='PRIMAVERA P6 PROJECT MANAGEMENT AVANZADO*10 al 14 de Mayo*Mty*16:00 a 20:00 L-V*20 HRS*$8,800.00*';
	strArreglo[20]='Neodata 2010 Precios Unitarios *Del 10 al 14 de Mayo*Mty/Vhsa*09:00 a 17:00 L-V*16 HRS*$3,850.00*';
	strArreglo[21]='VISUAL NET*Del 15 al 16 de Mayo*Vhsa/Mty*9:00 a 17:00 S-D*16 HRS*$6,450.00*';
	strArreglo[22]='Neodata Precios Unitarios 2009*Del 17 al 21 de Mayo*Vhsa/Mty*16:00 a 20:00 L-V*20 HRS*$3,800.00*';	
        strArreglo[23]='Primavera Project Planner P6*Del 17 al 21 de Mayo*Mty/Vhsa*09:00 a 13:00 L-V*20 HRS*$6,850.00*';
	strArreglo[24]='BUSINESS OBJECTS XI R3 Dise&#241;o de Reportes Avanzado*Del 22 al 23 de Mayo*Mty/D.F.*09:00 a 17:00 S-D*16 HRS*$7,900.00*';
	strArreglo[25]='MS PROJECT BASICO*Del 24 al 28 de Mayo*D.F./Mty/Vhsa*16:00 a 20:00 L-V*20 HRS*$4,800.00*';
	strArreglo[26]='OPUS Precios Unitarios*Del 29 al 30 de Mayo*Mty/Vhsa*09:00 a 17:00 S-D*16 HRS*$3,450.00*';
	strArreglo[27]='BUSINESS OBJECTS WEB INTELLIGENCE XI DISE&#209;O DE REPORTES*Del 2 al 6 de Junio*Mty/Vhsa/D.F.*09:00 a 13:00 L-V*20 HRS*$6,900.00*';
	strArreglo[28]='Neodata 2010 Precios Unitarios *Del 7 al 11 de Junio*Mty/Vhsa/D.F.*09:00 a 13:00 L-V*20 HRS*$3,800.00*';
	strArreglo[29]='OPUS Preopuestas 2009 *Del 7 al 11 de Junio*Mty/D.F.*16:00 a 20:00 L-V*20 HRS*$3,800.00*';
	strArreglo[30]='AUTOCAD 2010 3D*Del 12 al 13 de Junio*Vhsa/D.F.*09:00 a 17:00 S-D*16 HRS*$3,250.00*';
	strArreglo[31]='MS Project Avanzado*Del 14 al 18 de Junio*Mty/Vhsa*09:00 a 13:00 L-V*20 HRS*$5,500.00*';
	strArreglo[32]='PRIMAVERA PROJECT PLANNER 3.1 Avanzado*Del 19 al 20 de Junio*Mty/Vhsa*09:00 a 14:00 L-V*20 HRS*$6,850.00*';
	strArreglo[33]='PRIMAVERA P6 Avanzado *Del 21 al 24 de Marzo*Mty/D.F.*16:00 a 21:00 L-J*20 HRS*$8,800.00*';
	strArreglo[34]='Neodata 2010 Precios Unitarios *Del 25 al 26 de Junio*Mty/Vhsa/D.F.*09:00 a 17:00 S-D*16 HRS*$3,450.00*';	
        strArreglo[30]='Visio 2007 *Del 28 al 1 Julio*Mty/Vhsa*09:00 a 14:00 L-J*20 HRS*$3,400.00*';
	strArreglo[35]='Oracle Basico *Del 26 al 27 de Juni*D.F.*09:00 a 14:00 S-D*20 HRS*$4,800.00*';
	strArreglo[36]='OPUS PRECIOS UNITARIOS *Del 28 al 2 de Julio*Vhsa/Mty.*09:00 a 13:00 L-V*20 HRS*$3,800.00*';



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;&#175;&#160;&#164;e 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 class='cabesera' bgcolor='#0000FF' style='border-bottom-style: solid; border-bottom-width: 1px'>"+tblArreglo[0][0]+"</td>"
				cadena=cadena+"<td class='cabesera' bgcolor='#0000FF' style='border-bottom-style: solid; border-bottom-width: 1px'>"+tblArreglo[0][1]+"</td>"
				cadena=cadena+"<td class='cabesera' bgcolor='#0000FF' style='border-bottom-style: solid; border-bottom-width: 1px'>"+tblArreglo[0][2]+"</td>"
				cadena=cadena+"<td width ='110'class='cabesera' bgcolor='#0000FF' style='border-bottom-style: solid; border-bottom-width: 1px'>"+tblArreglo[0][3]+"</td>"
				cadena=cadena+"<td width ='50' class='cabesera' bgcolor='#0000FF' style='border-bottom-style: solid; border-bottom-width: 1px'>"+tblArreglo[0][4]+"</td>"
				cadena=cadena+"<td width ='50' class='cabesera' bgcolor='#0000FF' style='border-bottom-style: solid; border-bottom-width: 1px'>"+tblArreglo[0][5]+"</td>"

		
		//}//for
		cadena=cadena+"</tr>";

		
	for(i=1;i<=(tblArreglo.length-1);i++){
		
		cadena+="<tr>";
	
		for(j=0;j<=5;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('Fecha').innerHTML="CALENDARIO DE CURSOS A IMPARTIRSE"+"<BR>"+" DEL 22 DE MARZO AL 2 DE JULIO DE 2010";
	document.getElementById('Arreglo').innerHTML=cadena;
}//function
//----------------------------------------------------------------------------------------------------


