function makeOnLoad( ) { //v2.0
  //alert( 'Usuario: ' + top.leftFrame.document.formulario.FrCUsr.value ) ;
  //alert( 'Password: ' + top.leftFrame.document.formulario.FrCPwd.value ) ;
  
  // deja solo el nombre del usuario y el pass lo borra
  top.leftFrame.document.formulario.FrCPwd.value = "" ;
}


function processFormulario1( )
{
	// toma la fecha de entrada
	day1 = document.getElementById( "ADay" ).value ;
	month1 = document.getElementById( "AMonth" ).value ;
	year1 = document.getElementById( "AYear" ).value ;

	// toma la fecha de salida
	day2 = document.getElementById( "ADay1" ).value ;
	month2 = document.getElementById( "AMonth1" ).value ;
	year2 = document.getElementById( "AYear1" ).value ;
	
	var date1 = new Date( year1 , month1 - 1 , day1 , 0 , 0 , 0 , 0 ) ;
	var date2 = new Date( year2 , month2 - 1 , day2 , 0 , 0 , 0 , 0 ) ;
	
	difTime = date2.getTime( ) - date1.getTime( ) ;
	
	// en caso de que sea 0 o menor a 0 la diferencia
	if( difTime <= 0 )
	{
		// anuncia error
		alert( "La Fecha de Salida debe ser posterior a la fecha de entrada." ) ;
		
		// sale del metodo
		return ;
	}
	
	// calcula el numero de noches con la diferencia en milisegundos
	numNoches = difTime / ( 1000 * 60 * 60 * 24 ) ;
	
	document.formu.NNights.value = "" + numNoches ;
	
	//alert( numNoches ) ;
	
	document.formu.submit( ) ;
}

