////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  uspsa_scoring.js -javascript used by the uspsa scoring code
//
//  $Id: uspsa_scoring.js 15 2010-12-20 06:17:10Z brian $
//
//  Copyright (c) 2009-2010 by Brian Gaynor (brian@oceansidepistol.com). All rights reserved. 
//
//   2/06/2010	Version 1.0.0
//     - first release
//
//   2/16/2010	Version 1.1.0
//     - no changes
//
//   3/3/2010	Version 1.2.0
//     - no changes
//
//   12/20/2010	Version 1.3.0
//     - no changes
//
////////////////////////////////////////////////////////////////////////////////////////////////////

function openCalculator(form, features, windowName) 
{
	if (!windowName)
		windowName = 'formTarget' + (new Date().getTime());
	form.target = windowName;
	open ('', windowName, features);
}

function tableruler()
{
	if (document.getElementById && document.createTextNode)
	{
		var tables = document.getElementsByTagName('table');
		for (var i = 0; i < tables.length; i++)
		{
			if (tables[i].className == 'uspsa')
			{
				var trs = tables[i].getElementsByTagName('tr');
				for (var j = 0; j < trs.length; j++)
				{
					if (trs[j].parentNode.nodeName == 'TBODY')
					{
						trs[j].onmouseover = function() { this.className = 'ruled'; return false }
						trs[j].onmouseout = function() { this.className = ''; return false }
					}
				}
			}
		}
	}
}

