function charsOnly(field,event,s){
var key,keychar;
if(window.event)
key = window.event.keyCode;
else if(event)
key = event.which;
else
return true;
keychar = String.fromCharCode(key);
if((key == null) || (key == 0) || (key == 8) || (key == 9) || (key == 13) || (key == 27))
return true;
else if(s.indexOf(keychar) > -1)
return true;
else
return false;
}
function checkpa(maxPage){
if(document.frmPage.page.value == ""){
alert("Pleasing an importation you has to turn to of page number!");
document.frmPage.page.focus();
return false;
}
if(document.frmPage.page.value > maxPage){
alert("Total have" + maxPage +" page，Your importation outrun scope!");
document.frmPage.page.focus();
return false;
}
if(!parseInt(document.frmPage.page.value)){
alert("The page number importation come amiss and please importation exactitude numeral!");
document.frmPage.page.focus();
return false;
}
return true;
}