
function move_to_page(page) {
  document.SubmitForm.current_page.value = page;  
  document.SubmitForm.submit();
}
function move_to_pageID(page,CatID) {
  document.SubmitForm.current_page.value = page;  
  document.SubmitForm.CategoryID.value = CatID;  
  document.SubmitForm.submit();
}
function move_page(page,CharID) {
  document.SubmitForm.current_page.value = page;  
  document.SubmitForm.Charecter.value = CharID;  
  document.SubmitForm.submit();
}
function CheckAll(FormName, CheckAllBox) {
      for (var i=0; i<FormName.elements.length; i++) {
        var e = FormName.elements[i];
        if (e.name != CheckAllBox.name) {
          e.checked = CheckAllBox.checked;
        }
      }
    }
function Sort(strSort)
{
  
    if (strSort != document.SubmitForm.Sortby.value){	
			document.SubmitForm.sortorder.value = "ASC";
		}
		else{
		
			if (document.SubmitForm.sortorder.value == "ASC"){
				document.SubmitForm.sortorder.value = "DESC";
			}
			else{
				document.SubmitForm.sortorder.value = "ASC";
			}
		}	
		
		document.SubmitForm.Sortby.value = strSort;
		document.SubmitForm.form_name.value = 'page';   			
		document.SubmitForm.submit();
}
function MyReload() 
{ 
window.location.reload(); 
} 

