function resize(){
	
	var myWidth="100%", myHeight=0;
	
	oFrame=document.getElementById('targetsite');
	oFrame.style.width=myWidth;
	$('.iframe').css('width',myWidth);
		
	if(typeof(window.innerHeight)=='number')
		myHeight=window.innerHeight;
	else if (document.documentElement.clientHeight)
		myHeight=document.documentElement.clientHeight;
	else if (document.body.clientHeight)
		myHeight=document.body.clientHeight;
	
	oFrame.style.height=myHeight;
		$('.iframe').css('height',(myHeight));
	
	if(document.formname)	{
		document.formname.h.value=myHeight;
		document.formname.hm.value=screen.availHeight;
		document.formname.w.value=myWidth;
		document.formname.wm.value=screen.availWidth;
	}
}

//var limit = 5;

function processTimer(limit){
	timer = document.getElementById("timer");
	surfsubmit = document.getElementById("surfsubmit");
	
	if (limit > 0){
		limit--;
		setTimeout("processTimer("+limit+")",1000);
	}
	else {
		timer.style.display = "none";
		surfsubmit.style.display = "block";
	}
	
	timer = document.getElementById("timer");
	if (timer) timer.innerHTML = "Timeout<br><span class=\"count\">" + limit + "</span>";
}

