


// 
// resize quest book
function resize_iframe( id )
{
	var obj = document.getElementById(id);  
	
	var height = window.innerHeight;//Firefox
	if (!window.innerHeight)
	{
		// IE
		//strict mode
		if(!(document.documentElement.clientHeight == 0))
			height = document.documentElement.clientHeight;
		else
			height = document.body.clientHeight;
	}
	
	var pata = document.getElementById("pata").offsetHeight;
	
	//resize the iframe according to the size of the	
	//window (all these should be on the same line)
	obj.style.height=parseInt(height-obj.offsetTop-pata - 44)+"px";
	
	obj.contentWindow.focus();
}




function WindowHeight()
{
    var de = document.documentElement;
    return self.innerHeight;
}

function getObjHeight(obj)
{
    if( obj.offsetWidth )
    {
        return obj.offsetHeight;
    }
    return obj.clientHeight;
}

// 
// resize quest book
function resize_iframe_full( id )
{
	var obj = document.getElementById(id);  

	
	//alert(obj.ownerDocument.documentElement.clientHeight);
	var doc = obj.ownerDocument.documentElement;
	
	obj.height = doc.clientHeight;
	//obj.height = doc.clientHeight + doc.offsetHeight;
	
	
	obj.contentWindow.focus();
}

