	// Funciones necesarias para calcular de forma dinamica la altura de un iframe 

	function setupQuery() {
		// keep the results iframe fully in the browser window
		resizeResults();
		window.onresize = function() { resizeResults(); }
	}
	
	// don't need an entire framework just for this
	function id(i) { return document.getElementById(i); }
	
	// keep results iframe as big as window
	function resizeResults() {
		var results = document.getElementById('results');
		var height = 0;
		//var heightMinus = 355;
		var heightMinus = 150;
	
		// get height of window
		if (window.innerHeight) {
			height = window.innerHeight - 18;
		} else if (document.documentElement && document.documentElement.clientHeight) {
			height = document.documentElement.clientHeight;
			//heightMinus = 360;
			heightMinus = 150;
		} else if (document.body && document.body.clientHeight) {
			height = document.body.clientHeight;
		}
	
		results.style.height = height + "px";
	}