var strLayerName;
var longFixedPageMaxWidth;
var longOtherElementWidth;

function SetLayerSize()
{
	if((typeof(strLayerName) != "undefined")&&(typeof(longFixedPageMaxWidth) != "undefined")&&(typeof(longOtherElementWidth) != "undefined"))
		if(document.body.clientWidth > longFixedPageMaxWidth)
			document.all[strLayerName].style.width = (document.body.clientWidth - longOtherElementWidth).toString() + 'px';
		else
			document.all[strLayerName].style.width = (longFixedPageMaxWidth - longOtherElementWidth).toString() + 'px';

	return true;
}

window.onresize = SetLayerSize;