  /*
  *href to another page for using buttons.
  */
  function hrefTo(hrefStr){
    window.location.href = hrefStr;
  }
  /*
  *back to the history page for using buttons.
  */
  function historyBack(){
    window.history.back();
  }
  /*
  *confirm delete action.
  */
  function delConfirm(str,href){
    if(confirm(str)){
      hrefTo(href);
    }
  }

  function submitForm(theForm){
    if(!checkForm(theForm)){
      return false;
    }
    //disableButtons(theForm);
    theForm.submit();
    return true;
  }

  function Addme(){ 
    url = "http://www.2pian.com";
    title = "";
    window.external.AddFavorite(url,title);
  }
   function sltall(checkstatus){
	  var d = objForm;
	  for(i=0;i<d.elements.length;i++){
		if(d.elements[i].type=="checkbox" && d.elements[i].name!="checkall"){ 
		  d.elements[i].checked = checkstatus;
		}
	  }
	}
 function sltallById(checkstatus,checkedId){
	  var d = objForm;
	  for(i=0;i<d.elements.length;i++){
  		if(d.elements[i].type=="checkbox" && d.elements[i].name!="checkall" && d.elements[i].id==checkedId){ 
	  	  d.elements[i].checked = checkstatus;
		  }
	  }
	}
   //チェックボックスチェックした数を取得
  function getCheckSu(checkName){
    var a = document.getElementsByName(checkName);
    var c = 0
    for(var i=0; i<a.length; i++){
      c+= (a[i].checked) ? 1 : 0;
    }
    return c;
  }