//********* メニュー関連 **********//

function exMenu(mName)
{
	if (!document.all) m = document.getElementById(mName).style ;
	if (document.all) m = document.all(mName).style ;
	if (m.display == 'none') m.display = "block" ;
		else m.display = "none" ;
}

/*-------------------------------------------------------------------------
---------------------------------------------------------------------------
//* メニュー第一階層
function exMenu(mName)
{
	onceClose1();
	obj = document.all[mName].style;
	f   = obj.display;
	if (f == 'none') obj.display = "block"; else obj.display = "none";
}

//* メニュー第二階層
function exMenu2(mName)
{
	onceClose2();
	obj = document.all[mName].style;
	f   = obj.display;
	if (f == 'none') obj.display = "block"; else obj.display = "none";
}

//* メニュー第三階層
function exMenu3(mName)
{
	onceClose3();
	obj = document.all[mName].style;
	f   = obj.display;
	if (f == 'none') obj.display = "block"; else obj.display = "none";
}



//* 第一階層Close
function onceClose1()
{

	//*第一階層
	obj = document.all["wyn"].style;
	obj.display = "none";
	obj = document.all["pyn"].style;
	obj.display = "none";
	obj = document.all["brnd1"].style;
	obj.display = "none";
	obj = document.all["brnd2"].style;
	obj.display = "none";
	obj = document.all["brnd3"].style;
	obj.display = "none";
	obj = document.all["brnd4"].style;
	obj.display = "none";
	obj = document.all["brnd5"].style;
	obj.display = "none";
	obj = document.all["yohin"].style;
	obj.display = "none";
	obj = document.all["othr"].style;
	obj.display = "none";
	obj = document.all["kit"].style;
	obj.display = "none";
//	obj = document.all["pyn_s"].style;
	obj.display = "none";
	obj = document.all["tosho"].style;
	obj.display = "none";
	obj = document.all["race"].style;
	obj.display = "none";	
}

//* 第二階層Close
function onceClose2()
{
	//*第二階層
//	obj = document.all["wyn1"].style;
//	obj.display = "none";
//	obj = document.all["pyn1"].style;
//	obj.display = "none";
//	obj = document.all["pyn2"].style;
//	obj.display = "none";
//	obj = document.all["pyn3"].style;
//	obj.display = "none";
//	obj = document.all["pyn4"].style;
//	obj.display = "none";
//	obj = document.all["pyn5"].style;
//	obj.display = "none";
	obj = document.all["kit1"].style;
	obj.display = "none";
}

//* 第三階層Close （秋冬・春夏毛糸ボタン用）
function onceClose3()
{
	//*第三階層
	obj = document.all["win"].style;
	obj.display = "none";
//	obj = document.all["sum"].style;
//	obj.display = "none";
}
------------------------------------------------------------------
-----------------------------------------------------------------*/

//********* WindowOpen関連 **********//
function openWin(URL) {
   var w = window;
   if ((w == window) || w.closed) {
      w = open(URL, "Newwindow", "width=540,height=520,left=0,top=0,menubar=no,scrollbars");
      w.focus()
 }
   return(false);
}
function openWin2(URL) {
   var w2 = window;
   if ((w2 == window) || w2.closed) {
      w2 = open(URL, "Newwindow", "width=540,height=400,left=0,top=0,menubar=no,scrollbars");
      w2.focus()
 }
   return(false);
}
function openWin3(URL) {
   var w2 = window;
   if ((w2 == window) || w2.closed) {
      w2 = open(URL, "Newwindow", "width=400,height=600,left=0,top=0,menubar=no,scrollbars");
      w2.focus()
 }
   return(false);
}


//********* radioボタン関連 **********//
function radioChange() {
   if (document.kaiin1.chkENQT[0].checked == true) {
      document.kaiin1.ANSR1.disabled = false;
      document.kaiin1.ANSR1.style.backgroundColor = '#FFFFFF';
      document.kaiin1.ANSR2.disabled = true;
      document.kaiin1.ANSR2.style.backgroundColor = '#CCCCCC';
      document.kaiin1.ANSR3.disabled = true;
      document.kaiin1.ANSR3.style.backgroundColor = '#CCCCCC';
 } else if (document.kaiin1.chkENQT[1].checked == true) {
      document.kaiin1.ANSR1.disabled = true;
      document.kaiin1.ANSR1.style.backgroundColor = '#CCCCCC';
      document.kaiin1.ANSR2.disabled = false;
      document.kaiin1.ANSR2.style.backgroundColor = '#FFFFFF';
      document.kaiin1.ANSR3.disabled = true;
      document.kaiin1.ANSR3.style.backgroundColor = '#CCCCCC';
 } else if (document.kaiin1.chkENQT[2].checked == true) {
      document.kaiin1.ANSR1.disabled = true;
      document.kaiin1.ANSR1.style.backgroundColor = '#CCCCCC';
      document.kaiin1.ANSR2.disabled = true;
      document.kaiin1.ANSR2.style.backgroundColor = '#CCCCCC';
      document.kaiin1.ANSR3.disabled = false;
      document.kaiin1.ANSR3.style.backgroundColor = '#FFFFFF';
 } else if (document.kaiin1.chkENQT[3].checked == true) {
      document.kaiin1.ANSR1.disabled = true;
      document.kaiin1.ANSR1.style.backgroundColor = '#CCCCCC';
      document.kaiin1.ANSR2.disabled = true;
      document.kaiin1.ANSR2.style.backgroundColor = '#CCCCCC';
      document.kaiin1.ANSR3.disabled = true;
      document.kaiin1.ANSR3.style.backgroundColor = '#CCCCCC';
 } else if (document.kaiin1.chkENQT[4].checked == true) {
      document.kaiin1.ANSR1.disabled = true;
      document.kaiin1.ANSR1.style.backgroundColor = '#CCCCCC';
      document.kaiin1.ANSR2.disabled = true;
      document.kaiin1.ANSR2.style.backgroundColor = '#CCCCCC';
      document.kaiin1.ANSR3.disabled = true;
      document.kaiin1.ANSR3.style.backgroundColor = '#CCCCCC';
 } else if (document.kaiin1.chkENQT[5].checked == true) {
      document.kaiin1.ANSR1.disabled = true;
      document.kaiin1.ANSR1.style.backgroundColor = '#CCCCCC';
      document.kaiin1.ANSR2.disabled = true;
      document.kaiin1.ANSR2.style.backgroundColor = '#CCCCCC';
      document.kaiin1.ANSR3.disabled = true;
      document.kaiin1.ANSR3.style.backgroundColor = '#CCCCCC';
 } else {
      document.kaiin1.ANSR1.disabled = false;
      document.kaiin1.ANSR1.style.backgroundColor = '#FFFFFF';
      document.kaiin1.ANSR2.disabled = false;
      document.kaiin1.ANSR2.style.backgroundColor = '#FFFFFF';
      document.kaiin1.ANSR3.disabled = false;
      document.kaiin1.ANSR3.style.backgroundColor = '#FFFFFF';
 }
}


//********* クイックオーダー用 Focus制御 **********//

function nextFocus(nextObj) {
	
	if(event.keyCode == 13) {
		nextObj.focus();
		window.event.returnValue = false;
	}
}

