<script type="text/javascript">
    function validatepopup()
    {
        if(trim(document.getElementById('var_name').value) == "")
        {
            alert("Please enter group name.");
            document.getElementById('var_name').focus();
            return false;
        }
        document.getElementById('h_save').value = 'T';
        var postdata = $("#frmcontact2").serialize();
        $.ajax({
            type: "POST",
            url:"index.php?module=accesscontrol&action=popupAdd&sub=adddata" ,
            data: postdata,
            async: false,
            success: function(data){

                document.getElementById('usercombo').innerHTML = data ;
                $('#dialog-modal').dialog('destroy');
            }
        });

        return false;
    }
</script>
<form  name="frmcontact2"  id="frmcontact2"  method="" onsubmit="return validatepopup();" >

    <input type="hidden" name="h_save" id="h_save" value="T">
    <input type="hidden" name="fk_modules" id="fk_modules" value="<?php echo $fk_modules ?>">
    <input type="hidden" name="old_displayorder" id="old_displayorder" value="<?= $row['int_displayorder'] ?>">

    <div class="web-booking-main">
        <div class="grid-list-subtitle-bg" style="margin-top:10px; cursor:pointer" onClick="javascript:expandcollapsepanel('asignbanner123');" >
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td align="left" valign="top" class="grid-td-left">Add Group</td>
                </tr>
            </table>
        </div>
        <div class="information-white-bg" id="asignbanner123" >
            <div class="clear"></div>
            <div class="grid-list-inner-table-text">
                <table width="100%" border="0" cellspacing="3" cellpadding="3">
                    <tr>
                        <td width="11%" align="left" valign="middle" class="add-new-user-text"> Group Name : <span>(required)</span> </td>
                        <td width="27%" align="left" valign="top">
                            <input name="var_name" type="text"  class="textarea1" id="var_name" value="" maxlength="100" /></td>
                    </tr>
                </table>
            </div>
        </div>
        <input name="chr_publish" type="hidden"  id="chr_publish" value="Y"  />
        <br />
        <input type="image" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image34','','<?= GLOBAL_ADMIN_IMAGES_PATH ?>/submit-button-blue-hover.gif',1)" src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>/submit-button-blue.gif" name="Image34" width="81" height="25"  >
        <a href="index.php?module=accesscontrol" onClick="SetBackground()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image35','','<?= GLOBAL_ADMIN_IMAGES_PATH ?>/cancel-button.jpg',1)"><img src="<?= GLOBAL_ADMIN_IMAGES_PATH ?>/cancel-button.jpg" alt="Submit" name="Image35" border="0" id="Image35" /></a>
        <div class="clear"></div>
        <br><br>
        <div class="add-new-user-button"></div>
    </div>
</form>