﻿// JScript File
function validate_Alpha()
{
	var keycode 
	var keycharacter 
	keycode = window.event.keyCode // determine the key's code number
	keycharacter = String.fromCharCode(keycode); // determine the key's character, a,b,c etc

	if ((("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+,.-'").indexOf(keycharacter) > -1)) // characters allowed a to z here 
	{
		return true; // need
	}
	else if ((window.event.keyCode == 32) || (window.event.keyCode == 13)) // 32 = space bar 13 = enter, used to activate input
	{
		//romaji_input(); // goto switch function to check for combinations like ya, yu, yo
	}
	else
		return false
}

function validate_Numeric()
{
	var keycode 
	var keycharacter 

	keycode = window.event.keyCode // determine the key's code number
	keycharacter = String.fromCharCode(keycode); // determine the key's character, a,b,c etc

	if ((("1234567890+.-()").indexOf(keycharacter) > -1)) // characters allowed a to z here 
	{
		return true; // need
	}
	else if ((window.event.keyCode == 32) || (window.event.keyCode == 13)) // 32 = space bar 13 = enter, used to activate input
	{
		//romaji_input(); // goto switch function to check for combinations like ya, yu, yo
	}
	else
		return false
}

function validate_AlphaNumeric()
{
	var keycode 
	var keycharacter 

	keycode = window.event.keyCode // determine the key's code number
	keycharacter = String.fromCharCode(keycode); // determine the key's character, a,b,c etc

	if ((("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+,.-'1234567890()@").indexOf(keycharacter) > -1)) // characters allowed a to z here 
	{
		return true; // need
	}
	else if ((window.event.keyCode == 32) || (window.event.keyCode == 13)) // 32 = space bar 13 = enter, used to activate input
	{
		//romaji_input(); // goto switch function to check for combinations like ya, yu, yo
	}
	else
		return false
}


