/***
 * This javascript file contains function which is called when the Add/Edit form is submitted for validating the field values.
 * @author     		MediTab Software Inc. 
 * @copyright  		1997-2005 The MediTab Software Inc.
 * @license    		http://www.php.net/license/3_0.txt  PHP License 3.0
 * @version   	 	Release: 1.0
 * @PHP version  	5.x
*/

/** This method is called when the form is submitted for javascript validations
*/
function submit_form()
{

	if(checkValid('frm')==false) //general javascript validations for each field
	{
		return false; 
	}
	
	//if some extra validation required
	if(window.extraValid) //check whether the function for extra validation exist or not
	{
		if(extraValid()==false) //if the function returns false then return false
		{
			return false;	
		}
		else
		{
			return true;	
		}
	}
	else //if function doesnot exist return true
	{
		return true;
	}
	
	

}