* GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
 * Coral Gables, FL, 33134, USA, or email info@colosa.com.
 */
/*
 * Created on 07/01/2008
 *
 * @author David Callizaya <*****@*****.**>
 */
if (isset($_POST['dynaformName'])) {
    $dynaForm = new Dynaform();
    $res = $dynaForm->verifyExistingName($_POST['dynaformName'], $_POST['proUid'], $_POST['dynaformUid']);
    print $res ? 1 : 0;
}
global $_DBArray;
if (!isset($_DBArray)) {
    $_DBArray = array();
}
G::LoadClass('dynaformEditor');
$oDynaformEditorAjax = new dynaformEditorAjax($_POST);
//if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Response;
//
//  //G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = '******' );
//
//	G::LoadInclude('ajax');
//  G::LoadClass('toolBar');
//  G::LoadClass('dynaFormField');