function resize_iframe()
{

	var height=window.innerWidth;//Firefox
	//averiguar el tamaño de la página que contiene el iframe
	var oBody = glu.document.body;
	height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight) + 20;
	if(height<=800){
			height=800;
	}
	/*
	if (document.body.clientHeight)
	{
		height=document.body.clientHeight;//IE
	}
	*/
	//document.getElementById("glu").style.height= document.getElementById('glu').contentWindow.document.body.scrollHeight +20;
	document.getElementById("glu").style.height = height +"px";
	//document.getElementById('glu').noResize = false;
	//resize the iframe according to the size of the window
}


//window.onresize=resize_iframe; 
//-->

function getUrlVars()
{
	var vars = [], hash;
	var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
	 
	for(var i = 0; i < hashes.length; i++)
	{
		hash = hashes[i].split('=');
		vars.push(hash[0]);
		vars[hash[0]] = hash[1];
	}
	 
	return vars;
}

function ContFrame()
{
		url=getUrlVars();
		if(url[0] !== "url")
		{
			url['url'] = "index2.html";
		}
		//alert(url['url']);
		document.getElementById('glu').src = url['url'];
}