// Function to ensure " and ' characters are not entered
function CheckKeyInfo($char, $mozChar)
{
if($mozChar != null)
{ // Look for a Mozilla-compatible browser
	var theChar = String.fromCharCode($mozChar);
	if($mozChar == 34 || $mozChar == 39)
	{
		$RetVal = false;
		alert(theChar + ' is a restricted character.');
	}
	else
	{
		$RetVal = true;
	}
}
else
{ // Must be an IE-compatible Browser
	var theChar = String.fromCharCode($char);
	if($char == 34 || $char == 39)
	{
		$RetVal = false;
		alert(theChar + ' is a restricted character.');
	}
	else
	{
		$RetVal = true;
	}
}
return $RetVal;
}
