// JavaScript Document
<!--
//Contratos Busqueda
function SearchSubmit() {
		/*if (document.all("chkListAll").checked) {
			var ListAll = "1";
		}
		else {
			var ListAll = "0";
		}*/
		//Modificaion de Eduart Luis
		ListAll = "1";
		var Codes = document.all("ProcessNum").value
		var Process = document.all("lstProcess").value
		var Departments = document.all("lstDepartments").value
		var Activities = document.all("lstActivities").value
		//var Prices = document.all("Price").value
		var vOrder = document.all("optOrder").value
	
		var sPage = "cont_result.asp?ListAll=" + ListAll + "&Process=" + Process + "&Departments=" + Departments + "&Activities=" + Activities + "&Codes=" + Codes + "&Prices=" + "" + "&vOrder=" + vOrder;
		sPage = sPage+ '&back=' + toQueryString(sPage);
		//alert(sPage);
		//window.navigate(sPage);
		ajaxpage(sPage,'content_result');
	}

	function toQueryString(sPage)
	{
		sPage=sPage.replace(/\?/g,'%3F');
		sPage=sPage.replace(/&/g,'%26');
		sPage=sPage.replace(/=/g,'%3D');
		return sPage;
	}
	function NavCotiza() {

		var sPage = "cont_result.asp?Process=1&Departments=0&Activities=0&Codes=&Prices=&vOrder=0&Showhist=0";
		//window.navigate(sPage);
		ajaxpage(sPage,'content_result');
	}

	function NavInvita() {

		var sPage = "cont_result.asp?Process=2&Departments=0&Activities=0&Codes=&Prices=&vOrder=0&Showhist=0";
		//window.navigate(sPage);
		ajaxpage(sPage,'content_result');
	}

	function NavLicis() {

		var sPage = "cont_result.asp?Process=3&Departments=0&Activities=0&Codes=&Prices=&vOrder=0&Showhist=0";
		//window.navigate(sPage);
		ajaxpage(sPage,'content_result');
	}

	function NavHistorico() {

		var sPage = "cont_result.asp?Process=0&Departments=0&Activities=0&Codes=&Prices=&vOrder=0&Showhist=1";
		sPage = sPage+ '&back=' + toQueryString(sPage);
		//window.navigate(sPage);
		ajaxpage(sPage,'content_result');
	}

	function DoNavPage(np) {
		var sPage = "cont_result.asp?ListAll=1&Process=0&Departments=0&Activities=0&Codes=&Prices=&vOrder=0&p="+np+"&FirstTime=false";
		//alert(sPage);
		//sPage = sPage+ '&back=' + toQueryString(sPage);
		//window.navigate(sPage);
		ajaxpage(sPage,'content');
		/*var sPage = "cont_result.asp?ListAll=" + "<%= Request.QueryString("ListAll") %>" + "&Process=" + "<%= Request.QueryString("Process") %>" + "&Departments=" + "<%= Request.QueryString("Departments") %>" + 
			    "&Activities=" + "<%= Request.QueryString("Activities") %>" + "&Codes=" + "<%= Request.QueryString("Codes") %>" + "&Prices=&vOrder=" + "<%= Request.QueryString("vOrder") %>" + "&p=" + np;
		document.all("frmAction").action = sPage;
		document.all("frmAction").submit();*/
	}

//-->
<!--
//Resultados Contratos
	function FormSubmit() {
		if (VerifyData()==true) {
			document.all("frmAction").submit();
		}
	}				 

	function VerifyData() {
		var IsOk = true;
		if (document.all('npeople').value=="") {
			alert("Escriba el Nombre del solicitante!");
			document.all('npeople').focus();
			IsOk = false;
		}
		else if (document.all('question').value=="") {
			alert("Escriba la pregunta!");
			document.all('question').focus();
			IsOk = false;
		}
		return IsOk;
	}

//-->
//message
function Regresar(){
		
		alert(split(document.location,'?')[1]);
		//ajaxpage("cont_detail.asp?ID=" + <%= Request.QueryString("ID") %>,'content');
	}
//-->
<!--
//Funciones de uso general
	function DoChkNumKey() {
		var k = window.event.keyCode;
alert(k);
		if (((k>=48)&&(k<=57)) || ((k>=96)&&(k<=105)) || ((k>=37)&&(k<=40)) || (k==8) || (k==46) || (k==9) || (k==13) || (k==110)) {
			event.returnValue = true;
		}
		else {
			event.returnValue = false;
		}
	}



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->