var contextPath;
function init(_contextPath){
  contextPath=_contextPath;
  }
function next_onclick(){
  var i = 0;
  i = Number(form.currentPage.value) + 1;
  if(i>Number(form.totalPage.value)){
     i=Number(form.totalPage.value);
  }
  form.currentPage.value=i;
  ajaxAnywhere.formName = "form";
  ajaxAnywhere.getZonesToReload = function(){
	return "result";
  }
  ajaxAnywhere.submitAJAX();
}
function previous_onclick(){
  var i = 0;
  i = Number(form.currentPage.value) - 1;
  if(i<=0){
     i=1;
  }
  form.currentPage.value=i;
  ajaxAnywhere.formName = "form";
  ajaxAnywhere.getZonesToReload = function(){
	return "result";
  }
  ajaxAnywhere.submitAJAX();
}
function first_onclick(){
  form.currentPage.value=1;
  form.action=contextPath + "/pageActionList.do";
  form.method="post";
  form.submit();
}
function last_onclick(){
  form.currentPage.value=Number(form.totalPage.value);
  form.action=contextPath + "/pageActionList.do";
  form.method="post";
  form.submit();
}
function gotoPage(){
  ajaxAnywhere.formName = "form";
  ajaxAnywhere.getZonesToReload = function(){
	return "result";
  }
  ajaxAnywhere.submitAJAX();
}
