function recordsPerPageJS(formName, id)
{
	//alert(formName);
	document.getElementById("paginationCurrentPage"+id).value = 1;
	document.getElementById("linksToDisplayPagination"+id).value = 0;	
	//document.getElementById(formName).submit();
	$("form#"+formName).submit();
}

function linksToDisplayPaginationJS(pageSet, formName, id)
{
	//alert(pageSet);
	document.getElementById("paginationCurrentPage"+id).value = pageSet;
	//document.getElementById(formName).submit();
	$("form#"+formName).submit();
}

function usListPaginationJsPlugin(paginationCurrentPage, formName, id)
{
	document.getElementById("paginationCurrentPage"+id).value = paginationCurrentPage;
	//document.getElementById(formName).submit();
	$("form#"+formName).submit();
}

function linksPageSetJS(linksPageSet, linkCount, formName, id)
{
	//alert(linksPageSet);
	document.getElementById("paginationCurrentPage"+id).value = linksPageSet * linkCount + 1;
	document.getElementById("linksToDisplayPagination"+id).value = linksPageSet;
	document.getElementById("linksPageSet"+id).value = linksPageSet;
	//document.getElementById(formName).submit();
	$("form#"+formName).submit();
}

function resetLinksPageSet(id)
{
document.getElementById("linksPageSet"+id).value = 0;
}

function resetPaginationJS(formName, id)
{
	//alert(id);
	document.getElementById("paginationCurrentPage"+id).value = 1;
	document.getElementById("linksToDisplayPagination"+id).value = 0;
	//document.getElementById("recordsPerPage"+id).value = 10;
	//document.getElementById(formName).submit();
}

function submitPaginationFormJS(e,formName, id)
{
	if(e.keyCode==13)
	{
		resetPaginationJS(formName, id);
	}
}
/*$(document).ready(function(){	
	//Press Escape event!
	$(document).keypress(function(e){	 
		if(e.keyCode==13){
		return false;			
		}
	});

});*/
