
function checkTerminos(source, arguments)
{
	checkAccept = document.getElementById(ckAccept_ClientID);
	if(checkAccept.checked)
		arguments.IsValid = true;
	else
		arguments.IsValid = false;
	return arguments.IsValid;
}

function validateCombos(source, arguments)
{
	var ad = document.forms[0].ControlPromocionesPublicacionMulti2_viajeros_adultos.options[document.forms[0].ControlPromocionesPublicacionMulti2_viajeros_adultos.selectedIndex].value;
	var inf = document.forms[0].ControlPromocionesPublicacionMulti2_viajeros_nietos.options[document.forms[0].ControlPromocionesPublicacionMulti2_viajeros_nietos.selectedIndex].value;
	/*var nin = document.forms[0].ControlPromocionesPublicacionMulti2_viajeros_infantes.options[document.forms[0].ControlPromocionesPublicacionMulti2_viajeros_infantes.selectedIndex].value;*/
	arguments.IsValid = true;
	
	if((parseInt(ad)+parseInt(inf)/*+nin*/)==0 || (parseInt(ad)+parseInt(inf)/*+nin*/)>Maximo)
	{
		arguments.IsValid = false;
	}
	if(ad == 0 && inf == 0)
	{
		arguments.IsValid = false;
	}
	if(Maximo==0)
	{
		arguments.IsValid = true;
	}
	return arguments.IsValid;
}


function validateFechas(source, arguments)
{
	var fi = document.getElementById("ControlPromocionesPublicacionMulti2_rdpFechaIda").value;
	var ff = document.getElementById("ControlPromocionesPublicacionMulti2_rdpFechaRegreso").value;
	arguments.IsValid = true;
	if(fi == "0001-01-01" || ff == "0001-01-01")
	{
		arguments.IsValid = false;
	}
	return arguments.IsValid;
}

