var producto = 'antiques';

function Buscar(texto) {
	if (texto != "") {
		document.getElementById('texto_buscar').value = texto;
	}
	if (document.getElementById('texto_buscar').value == "") {
		alert("Ingrese que desea buscar");
		return false;
	}
	ParseaAjax('post','/php/buscar.php','colOne','colOne','texto_buscar producto cod_pais');
	if (texto != "") {
		document.getElementById('texto_buscar').value = "";
	}
	return false;
}

function Oferta (id_oferta) {
	document.getElementById('id_oferta').value = id_oferta;
	ParseaAjax('post','/php/oferta.php','colOne','colOne','id_oferta producto cod_pais');
	return false;
}

function Listado (nivel,id_nivel) {
	document.getElementById('nivel').value = nivel;
	document.getElementById('id_nivel').value = id_nivel;
	ParseaAjax('post','/php/listado.php','colOne','colOne','nivel id_nivel producto cod_pais');
	return false;
}

function CambiarPagina (destino) {
	window.location.href = destino;
}

function SubmitirEnter(e) {
var keycode;
if (window.event)
	keycode = window.event.keyCode;
else if (e)
	keycode = e.which;
else
	return true;

	if (keycode == 13) {
		Buscar('');
		return false;
	} else {
		return true;
	}
}

