function iFrameHeight() 
{
		if(document.getElementById && !(document.all)) 
		{
			h = document.getElementById('extUrl').contentDocument.body.scrollHeight;
			document.getElementById('extUrl').style.height = h;
		}
		else if(document.all)
		{
			h = document.frames('extUrl').document.body.scrollHeight;
			document.all.extUrl.style.height = h;
		}
}

function popupopen(url, name, width, height, scroll) 
{
    var winleft = (screen.width - width) / 2;
    var wintop = (screen.height - height) / 2;
    var winprop = 'width='+width+',height='+height+',left='+winleft+',top='+wintop+',scrollbars='+scroll;

    popup = window.open(url, name, winprop)
    if (parseInt(navigator.appVersion) >= 4) 
    {
	popup.window.focus();
    }
}

function printer(file)
{
	var printwindow;
	printwindow = window.open('','printer','top=10000,left=10000'); 
	printwindow.document.write("<title>Printing...please wait</title><link rel=alternate media=print href=\""+file+"\"><scr"+"ipt>window.print();<\/scr"+"ipt>");
	printwindow.document.close();
	printwindow.close();
}