<?php 
        // set up m-language so js alerts in whatever lang is required
    require_once '../../config/config.php';
    require_once CONFIG_CLASSES_PATH . '/app.php';
    /* Page Initialization */
    $app = new app();
    require_once CONFIG_MODULE_ROOT.'/mdnews/lang/constants.'.$app->lang.'.php';
?>
var arrFields 	= new Array("title");
var arrMsgs 	= new Array("<?=LNG_MDNEWS_4?>");

function submitModuleForm(theForm) {
    switch (theForm.name) {
		case 'mdnewsform':
			return check_mdnewsform(theForm);
			break;
	
		default:	
		return true;
	}
	return true
}

function check_mdnewsform(theForm) {
	ret = checkRequired(theForm, arrFields, arrMsgs);
	if (ret == false) return false;
	return true;
}

