<script language="javascript">
function display_positions()
{
	
	var pageid=document.getElementById('fk_tml_pages').value;
	var pubstatus=document.getElementById('publishcombo').value;
	
	//alert('pageid:'+pageid);
	//alert('pubstatus:'+pubstatus);
	
		//////////////////ajax called
		var response;
		$.ajax({
				 type: "GET",
				 url:"index.php" ,
				 data: "module=settings&view=modules&ajax=Y&task=positions&eid="+<?=$_GET['eid']?>+'&pageid='+pageid+'&pubstatus='+pubstatus,
				 async: false,
				 success: function(data){
					//alert(data);
					response=data;
				 }
				});	
		document.getElementById('grid').innerHTML = response;
		
		////////////ajax end
		
}

</script>
<?php session_start(); ?>
<div class="add-new-form-bg" style="padding:10px;">
  <div class="pop-up-bg">
    <table width="87%" border="0" align="center" cellpadding="3" cellspacing="3">
      <tr>
                    <td width="156" align="left" valign="top" class="add-new-user-text">Page :</td>
                    <td width="724" align="left" valign="top">
                   <?=$pagetree?>
                    </td>
      </tr>
      
      <tr>
                    <td width="156" align="left" valign="top" class="add-new-user-text">Display :</td>
                    <td width="724" align="left" valign="top">
                   <?=$publishcombo?>
                    </td>
      </tr>
      
      <tr>
                   
                    <td  colspan="2" align="left" valign="top">
                    <div id="grid" title="gridposition"><?=$positions;?>
                   </div>
                    </td>
      </tr>
      <input type="hidden" name="intglcode" id="intglcode" value="<?=$_GET['eid']?>" />
      </table>
  </div>
</div>