function onSubmit (frm)
{
	var		eList = frm.getElementsByTagName ('INPUT');
	var		eText = frm.getElementsByTagName ('TEXTAREA');
	var		i;
	
	for (i = 0; i < eList.length; i++)
		if  (eList [i].className == 'compulsory' && eList [i].value == '')
		{
			eList [i].focus ();
			return false;
		}
	for (i = 0; i < eText.length; i++)
		if  (eText [i].className == 'compulsory' && eText [i].value == '')
		{
			eText [i].focus ();
			return false;
		}
	return true;
}
