// JavaScript Document
//This function sets the 'width' of all tables that are immediate childs of the document object (level 1)
// to a width of 750 pixels. This abbreviates the need to manually set it in every single template and page.
// and makes it ever so easy to globally modify the width of all jannah;s pages to a consistent one width.
function setAllTopLevTablesWidth()
{
	for (i=0 ; i< window.document.body.childNodes.length ; i++)
	{
		x = window.document.body.childNodes[i];
		if (x.nodeName != 'TABLE')	continue;
		for (j=0;j<x.attributes.length;j++)
		{
			if (x.attributes[j].nodeName == 'width')
			{
				x.attributes[j].nodeValue = '750';
			}
		}
	}
}