function PagingIncPagPerPage(GUID, GUIDList)
{
 window.document.getElementById("PagPerPage"+GUID).value = parseInt(window.document.getElementById("PagPerPageList"+GUIDList).value) + 1;
 PaggingGo();
 return false;
}// end of function PagingIncPagPerPage

function PagingDecPagPerPage(GUID, GUIDList)
{
 if(parseInt(window.document.getElementById("PagPerPageList"+GUID).value) > 1)
 {
  window.document.getElementById("PagPerPage"+GUID).value = parseInt(window.document.getElementById("PagPerPageList"+GUIDList).value) - 1;
  PaggingGo();
 }
 return false;
}// end of function PagingDecPagPerPage

function PagingIncPage(GUID, GUIDList)
{
 if(parseInt(window.document.getElementById("PagCurrPageList"+GUIDList).value) < parseInt(window.document.getElementById("PagConstMaxPage"+GUIDList).innerHTML))
 {
  window.document.getElementById("PagCurrPage"+GUID).value = parseInt(window.document.getElementById("PagCurrPageList"+GUIDList).value) + 1;
  PaggingGo();
 }
 return false;
}// end of function PagingIncPage

function PagingDecPage(GUID, GUIDList)
{
 if(parseInt(window.document.getElementById("PagCurrPageList"+GUIDList).value) > 1)
 {
  window.document.getElementById("PagCurrPage"+GUID).value = parseInt(window.document.getElementById("PagCurrPageList"+GUIDList).value) - 1;
  PaggingGo();
 }
 return false;
}// end of function PagingDecPage

function changePerPage(GUID, GUIDList)
{
 window.document.getElementById("PagPerPage"+GUID).value = parseInt(window.document.getElementById("PagPerPageList"+GUIDList).value);
 PaggingGo();
}//end of function changePerPage()

function changeCurrPage(GUID, GUIDList)
{
 window.document.getElementById("PagCurrPage"+GUID).value = parseInt(window.document.getElementById("PagCurrPageList"+GUIDList).value);
 PaggingGo();
}//end of function changeCurrPage()

function goToCurrPage(GUID, page)
{
 window.document.getElementById("PagCurrPage"+GUID).value = page;
 PaggingGo(); 
 return false;
}// end of function goToCurrPage(GUID)

function PaggingGo(nosend)
{
 var PaggingValues = "";
 for(i=0;i <= arrPaggingGuid.length-1;i++)
 {
  PaggingValues += window.document.getElementById( "Pag" + arrPaggingGuid[i] ).value + ":";
  PaggingValues += window.document.getElementById( "PagPerPage" + arrPaggingGuid[i] ).value + ":";
  PaggingValues += window.document.getElementById( "PagCurrPage" + arrPaggingGuid[i] ).value + ";";
 }// end of for
 window.document.getElementById("PaggingValues").value = PaggingValues;
 window.document.getElementById("formPag"+GuidPaggingForm).PaggingValues.value = PaggingValues;
 if(!nosend)window.document.getElementById("formPag"+GuidPaggingForm).submit();
}// end of function PaggingGo

function GetPaggingString()
{
 var PaggingValues = "";
 if(typeof(arrPaggingGuid) != "undefined")
 {
  for(i=0;i <= arrPaggingGuid.length-1;i++)
  {
   PaggingValues += window.document.getElementById( "Pag" + arrPaggingGuid[i] ).value + ":";
   PaggingValues += window.document.getElementById( "PagPerPage" + arrPaggingGuid[i] ).value + ":";
   PaggingValues += window.document.getElementById( "PagCurrPage" + arrPaggingGuid[i] ).value + ";";
  }// end of for
 }
 return "PaggingValues=" + PaggingValues;
}

function GetPaggingStringValue()
{
 var PaggingValues = "";
 if(typeof(arrPaggingGuid) != "undefined")
 {
  for(i=0;i <= arrPaggingGuid.length-1;i++)
  {
   PaggingValues += window.document.getElementById( "Pag" + arrPaggingGuid[i] ).value + ":";
   PaggingValues += window.document.getElementById( "PagPerPage" + arrPaggingGuid[i] ).value + ":";
   PaggingValues += window.document.getElementById( "PagCurrPage" + arrPaggingGuid[i] ).value + ";";
  }// end of for
 }
 return PaggingValues;
}

function AnchorWithPagging(href)
{
 window.document.location.href = href + "&" +GetPaggingString();
}
