function popup( strURL, intW, intH, strName ) 
{
	if (usnWindow != null) { if (!usnWindow.closed) { usnWindow.close(); } }
	var usnWindow = window.open( strURL, strName, 'width='+intW+',height='+intH+',resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,scrollbars=1' );
	usnWindow.focus();
//	return false;
}
function inc_popup( strURL, intW, intH, strName ) { popup( strURL, intW, intH, strName ); return false; }
function usn_popup( strURL, intW, intH, strName ) { popup( strURL, intW, intH, strName ); return false; }
function us_popup( strURL, intW, intH, strName ) { popup( strURL, intW, intH, strName ); return false; }
function setStatus(strStatus) { if(!strStatus) strStatus = ""; window.status = strStatus; return true; }
function us_popupLink()
{
	if(window.opener && window.opener.launchURL)
	{
		window.opener.launchURL('/home-phone/help/service/ofcom.asp?ref=' + strPartner);
		top.close();
		return false;
	}
	else return true;
}
function resizeSelf(iMaxHeight)
{
	if(document.body && document.body.offsetHeight)
	{
		var iNewHeight = parseInt(document.body.offsetHeight) + 50;
		if(iNewHeight > iMaxHeight) iNewHeight = iMaxHeight;
		var iOldHeight = (window.innerHeight) ? window.innerHeight : (document.body.clientHeight) ? document.body.clientHeight : 0;
var oObjContent = document.getElementById("us-content-cell");
if(oObjContent && oObjContent.offsetHeight)
{
	if(oObjContent.offsetHeight + 130 < iNewHeight) iNewHeight = oObjContent.offsetHeight + 130;
}
		if(iNewHeight != iOldHeight)
		{
			var iOldWidth = (window.innerWidth) ? window.innerWidth + 8 : (document.body.clientWidth) ? document.body.clientWidth + 28 : 400;
			var iNewWidth = parseInt(iOldWidth);
			if(window.resizeTo) window.resizeTo(iNewWidth,iNewHeight);
		}
	}
//	if(document.body.offsetHeight != window.innerHeight) window.resizeTo(window.innerWidth,document.body.offsetHeight+50);
}
