///// JS Homes /////
function validaFormVuelos(obj, txtValidador)
{
	obj.startDt.value = obj.startDt_tmp.value.split('/')[2] + obj.startDt_tmp.value.split('/')[1] + obj.startDt_tmp.value.split('/')[0];
	obj.endDt.value = obj.endDt_tmp.value.split('/')[2] + obj.endDt_tmp.value.split('/')[1] + obj.endDt_tmp.value.split('/')[0];

	var txtform = "startDt_tmp=" + obj.startDt_tmp.value + "&endDt_tmp=" + obj.endDt_tmp.value + 
		"&endPt=" + obj.endPt.value + "&startPt=" + obj.startPt.value +
		"&endPtDesc=" + obj.endPtDesc.value + "&startPtDesc=" + obj.startPtDesc.value +
		"&startPt_hidden=" + obj.startPt_hidden.value + "&endPt_hidden=" + obj.endPt_hidden.value;
	
	obj.endPtDesc.value = obj.endPt.value;     // paso el valor a la descripcion.
	obj.startPtDesc.value = obj.startPt.value;

	if (obj.endPt_hidden.value.length == 3)
		obj.endPt.value = obj.endPt_hidden.value;
	if (obj.startPt_hidden.value.length == 3)
		obj.startPt.value = obj.startPt_hidden.value;

	if (!obj.startPt.value){
		alert("Debe seleccionar un origen");
		obj.startPt.focus();
		return false;
	}
	if (!obj.endPt.value){
		alert("Debe seleccionar un Destino");
		obj.endPt.focus();
		return false;
	}
	return true;
}


function updateHidden(txt, li)
{
    txt.form[txt.name + "_hidden"].value = li.id;
}
function goFlash(url)
{
	urchinTracker('/Flash/' + url);
	location.href = url;
}