jQuery("#navgrid").jqGrid({        
   	url:'read_data.php?q=1',
	datatype: "xml",
   	colNames:['Last Name','First Name', 'Voting Society','Office Country','Office State','Office City'],
   	colModel:[
   		{name:'Last Name',index:'last_name', width:100},
   		{name:'First Name',index:'first_name', width:100},
		{name:'Voting Society',index:'voting_society', width:150},
		{name:'Office Country',index:'office_country', width:100},
		{name:'Office State',index:'office_state', width:100},
		{name:'Office City',index:'office_city', width:100}
		   	],
   	rowNum:30,
   	rowList:[10,20,30,40,50,100],
   	imgpath: gridimgpath,
	page:1,
   	pager: jQuery('#pagernav'),
   	sortname: 'last_name',
    viewrecords: true,
    sortorder: "asc",
    caption:"IAAP Database Directory Navigation",
    height:"100%"

});
jQuery("#navgrid").navGrid('#pagernav',
{edit:false,add:false,del:false}, //options

{} // search options
);
$.jgrid.search = {
    caption: "Filter Database",
    Find: "Apply Filter",
    Reset: "Discard all Filters",
    odata : ['equal', 'not equal', 'less', 'less or equal','greater','greater or equal', 'begins with','ends with','contains' ],
	sopt: ['bw','eq','ne','ew','cn'] 
};
	$.extend($.jgrid.search,{width:560})
