var trackerPath = "http://reservations2.cheaphotels.co.uk/ref.php";
var pageRef = document.URLUnencoded; 
//document.write("<iframe src=\""+trackerPath+"\?page="+ pageRef + "&ref="+document.referrer+"\" width=1 height=1 marginwidth=0 marginheight=0 frameborder=0 scrolling=\"no\"><\/iframe>")


function calcHeight()
{
  //find the height of the internal page 

try
{
  var the_height=
    document.getElementById('searchFrame').contentWindow.document.body.scrollHeight;
//change the height of the iframe
  document.getElementById('searchFrame').height= the_height;
} catch(e)
	{
	}
}
//-->

var iframeids=["searchFrame"]
var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=getFFVersion>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers
function startdyncode(){
dyniframesize()
}

function dyniframesize() {
var dyniframe=new Array()
try 
{
	for (i=0; i<iframeids.length; i++)
	{
		if (document.getElementById)
		{ //begin resizing iframe procedure
			dyniframe[dyniframe.length] = document.getElementById(iframeids[i]);
			if (dyniframe[i] && !window.opera)
			{
				dyniframe[i].style.display="block"
				if (dyniframe[i].contentDocument && dyniframe[i].contentDocument.body.offsetHeight) //ns6 syntax
					dyniframe[i].height = dyniframe[i].contentDocument.body.offsetHeight+FFextraHeight; 
				else if (dyniframe[i].document && dyniframe[i].document.body.scrollHeight) //ie5+ syntax
					dyniframe[i].height = dyniframe[i].document.body.scrollHeight;
			}
		}
	}
}
catch(e)
{
	window.status =	'Error: ' + e.number + '; ' + e.description;
}

}
/*
function timingex(){
	dyniframesize();
//	alert("timer");
	setTimeout("timingex();",1000);
}
*/

function timingex(){
	calcHeight();
	setTimeout("timingex();",1000);
}
