var 	wWidth, width, height;
function howWide() {

	if (self.innerWidth) // all except Explorer
	{
		wWidth = self.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
		// Explorer 6 Strict Mode
	{
		wWidth = document.documentElement.clientWidth;
	}
	else if (document.body) // other Explorers
	{
		wWidth = document.body.clientWidth;
	}

	width = wWidth - 360; 
}

function tableWidth()	{
	if (typeof(width) == "undefined") { howWide(); }
	var table = '<table align="center" width="' + width + '" cellspacing="0" cellpadding="0">';
	document.write(table);
}
