$(document).ready( function() {

	// === Apply first/last/only class to list items
    $('ul li:first-child').not(':only-child').addClass('first');
    $('ul li:last-child').not(':only-child').addClass('last');
    $('ul li:only-child').addClass('only');
 
});

function deleteEntry(id,model) {
    var conf = confirm("Are you sure you want to delete this?");
	if(conf) {
		field = model + "Id";
	  document.delform.elements[field].value=id;
	  document.delform.submit();
	} else {
	  return;
	}
 }
