
///////////////////////////////////////////////////////////////////////////////////////
/////                function validate()                                     /////////  
/////////////////////////////////////////////////////////////////////////////////////

function validate()
{
	if ( isx_Name() && isx_Sub() && isx_Email() && isx_Comments())
	{
		document.forms.MyForm1.submit();
	}
	else
		{
		return false;
		}
}

/////////////////////////////////////////

// isx_Name Validator
function isx_Name() 
{
	var str = document.forms.MyForm1.x_Name.value;
	if ((str == ""))
	{
alert("\nThe Name field is Empty.\n\nwww.jkpsc.org.")
		document.forms.MyForm1.x_Name.focus();
		return false;
	}
		{
		return true;
		}
}

/////////////////////////////////////////

/////////////////////////////////////////

// isx_Sub Validator
function isx_Sub() 
{
	var str = document.forms.MyForm1.x_Sub.value;
	if ((str == ""))
	{
alert("\nThe Subject field is Empty.\n\nwww.jkpsc.org.")
		document.forms.MyForm1.x_Sub.focus();
		return false;
	}
		{
		return true;
		}
}

/////////////////////////////////////////



/////////////////////////////////////////

// isx_Email Validator
function isx_Email() 
{
	var str = document.forms.MyForm1.x_Email.value;
	if ((str == ""))
	{
alert("\nThe E-mail field is Empty.\n\nwww.jkpsc.org.")
		document.forms.MyForm1.x_Email.focus();
		return false;
	}
		{
		return true;
		}
}

/////////////////////////////////////////

/////////////////////////////////////////

// isx_Comments Validator
function isx_Comments() 
{
	var str = document.forms.MyForm1.x_Comments.value;
	if ((str == ""))
	{
alert("\nThe Comments field is Empty.\n\nwww.jkpsc.org.")
		document.forms.MyForm1.x_Comments.focus();
		return false;
	}
		{
		return true;
		}
}

/////////////////////////////////////////

