// JavaScript Document
function CalcWater()
{
	if((document.mseditor.weight.value == '') || (document.mseditor.weight.value > 1000))
	{
		if(document.mseditor.weight.value > 1000)
		{
			alert("Invalid Weight. Please mention your weight in Kgs!");
		document.mseditor.weight.focus();
		return false;
		}
else
{
		alert("Please mention your weight in Kgs!");
		document.mseditor.weight.focus();
		return false;
}
	}
	else
	{
		var wgt = document.mseditor.weight.value;
		var ml = (parseInt(wgt) * 33)/1000;
		document.getElementById("OutputData").innerHTML = "&nbsp;" + ml + "&nbsp;";
		document.getElementById("results").style.visibility = "visible";
                return true;
	}
}
function isNumberKey(evt)
{
 var charCode = (evt.which) ? evt.which : event.keyCode
 if (charCode > 31 && (charCode < 48 || charCode > 57))
	return false;

 return true;
}