//オーディションメニューOPEN・CLOSEメソッド

function viewsidemenu(target){

	if(document.getElementById){



        //現在メニューOPENの場合はメニューを閉じる

		if(document.getElementById(target).style.display == "block"){



            //メニューCLOSEのセッション値をセット

            setAuditionMenuSession(0);



			document.getElementById(target).style.display = "none";

        //現在メニューCLOSEの場合はメニューをOPEN

		}else{

			document.getElementById(target).style.display = "block";



            //OPENのときは、オーデョションTOPへ遷移

            gotoURL('index.php?module=Comp&action=CompAudition&open_menu=1');



		}

	}else if(document.all){



		if(document.all(target).style.display == "block"){

            //メニューCLOSEのセッション値をセット

            setAuditionMenuSession(0);



			document.all(target).style.display = "none";

		}else{

			document.all(target).style.display = "block";



            //OPENのときは、オーデョションTOPへ遷移

            gotoURL('index.php?module=Comp&action=CompAudition&open_menu=1');

		}

	}

}



//オーデョションメニューのOPEN・CLOSE制御用メソッド

function setAuditionMenuSession(flg){

  try {

    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");

  } catch (e) {

    try {

      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");

    } catch (e) {

      xmlhttp = false;

    }

  }

  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

    xmlhttp = new XMLHttpRequest();

  }

  if (xmlhttp) {

    xmlhttp.open('GET', 'index.php?module=Comp&action=AuditionMenuSet&flg=' + flg, true);

    xmlhttp.send(null);

  }

}



