function showHelp(div)
{
	document.getElementById(div).style.display = "block";
}

function hideHelp(div)
{
	document.getElementById(div).style.display = "none";
}

function CheckSlope(ctl)
{	
	if (ctl != null)
	{	
		for (i = 0; i < slopeControls.length; i++) 
		{			
			slopeControls[i].disabled = (ctl.selectedIndex == 1);
		}
    }
}

function CheckWind(ctl)
{
	if (ctl != null)
	{
		for (i = 0; i < windControls.length; i++) 
		{
			windControls[i].disabled = (ctl.selectedIndex == 1);
		}
    }	        
}

var oldNormalValue;
function normalFocus(normal)	
{
	oldNormalValue = normal.value;
}

function normalBlur(normal, easy, hard)
{
	if (oldNormalValue != normal.value)
	{
		var value = eval(normal.value);
		if (!isNaN(value))
		{
			easy.value = parseInt(value*0.97);
			hard.value = parseInt(value*1.03);
		}
		else
		{
			normal.value = 0;
			easy.value = 0;
			hard.value = 0;
		}
	}	
}