<!--
function MM_openBrWindow( theURL, winName, features ) { //v2.0

  window.open( theURL, winName, features );

}

function setcolor(element,t_val) {
	if (element.style) {
		if (t_val == 1)
			element.style.backgroundColor='#EAF4FE';
		else 
			element.style.backgroundColor='#FFFFFF';
	}
}

function ShowMessage( element, message, BolSelect ) {

	alert( message );
	element.focus();
	if( BolSelect )
		element.select();

}

function CheckDateInput( FieldName )
{
	if( FieldName.value == "" ) return false;

	var IntDay = FieldName.value.substring( 0, FieldName.value.indexOf( "/" ) );
	if( IntDay == "" || isNaN( IntDay ) || IntDay > 31 ) return false;

	var IntMonth = FieldName.value.substring( FieldName.value.indexOf( "/" ) + 1, FieldName.value.lastIndexOf( "/" ) );
	if( IntMonth == "" || isNaN( IntMonth ) || IntMonth > 12 ) return false;

	var IntYear = FieldName.value.substring( FieldName.value.lastIndexOf( "/" ) + 1, FieldName.value.length );
	if( IntYear == "" || isNaN( IntYear ) ) return false;

	if( CheckDate( IntYear, IntMonth, IntDay ) ) 
		{ return true; }
	else 
		{ return false; }
}

// funcion auxiliar para la validacion de fecha
function CheckDate( Year, Month, Day ) 
{
	DateFrom = new Date( Year, Month - 1, Day );
    if( DateFrom.getDate()!= Day || Day > DaysInMonth( Year, Month ) )
		{ return false; }
	else
		{ return true; }
} 

// funcion auxiliar para la validacion de fecha
function DaysInMonth( WhichYear, WhichMonth ) 
{
  var DaysInMonth = 31;

  if( WhichMonth == 4 || WhichMonth == 6 || WhichMonth == 9 || WhichMonth == 11) 
  	DaysInMonth = 30;

  else if( WhichMonth == 2 && ( WhichYear/4 ) != Math.floor( WhichYear/4 ) )
  	DaysInMonth = 28;

  else if( WhichMonth == 2 && ( WhichYear/4 ) == Math.floor( WhichYear/4 ) )
  	DaysInMonth = 29;

  return DaysInMonth;
}

//-->