function fSwImgS(fImgNm, fSrc) {        document.images[fImgNm].src = fSrc}function fNWin(fUrl, fX, fY, fScBar){        newWin = window.open (fUrl,"","toolbar=yes,location=yes,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width="+fX+",height="+fY);         newWin.focus()}function fNWin_PASSWORD(fUrl){		nWin = window.open (fUrl,"MAILMAGA_WINDOW","toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,screenX=1,screenY=1,left=1,top=1,width=640,height=550"); 		nWin.focus();}function fNWin_UTILITY(fUrl){		nWin = window.open (fUrl,"MAILMAGA_WINDOW","toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,screenX=1,screenY=1,left=1,top=1,width=640,height=550"); 		nWin.focus();}function fNWin_HELP(fUrl){		nWin = window.open (fUrl,"MAILMAGA_WINDOW","toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,screenX=1,screenY=1,left=1,top=1,width=640,height=550"); 		nWin.focus();}function fNWin_RESERVED(fUrl){		nWin = window.open (fUrl,"MAILMAGA_WINDOW","toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,screenX=1,screenY=1,left=1,top=1,width=700,height=680"); 		nWin.focus();}function fNWin_PRICE(fUrl){		nWin = window.open (fUrl,"MAILMAGA_WINDOW","toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,screenX=1,screenY=1,left=1,top=1,width=640,height=550"); 		nWin.focus();}// JavaScript Documentfunction figout( n ) {var l, m = '';n = '' + n;while ( (l = n.length) > 3 ) {m = "," + n.substr( l - 3, 3 ) + m;n = n.substr( 0, l - 3 );}n = '' + n + m;return n;}function myCalc(){//1つ目の計算nomalPrice = eval(document.onenightOrderForm.nomalNumber.value * 10000);document.onenightOrderForm.Price001.value = figout(nomalPrice);//２つ目の計算gourmetPrice = eval(document.onenightOrderForm.gourmetNumber.value * 13000);document.onenightOrderForm.Price002.value = figout(gourmetPrice);//3つ目の計算nonePrice = eval(document.onenightOrderForm.noneNumber.value * 6200);document.onenightOrderForm.Price003.value = figout(nonePrice);//4つ目の計算childNomalPrice = eval(document.onenightOrderForm.childNomalNumber.value * 10000);document.onenightOrderForm.Price004.value = figout(childNomalPrice);//5つ目の計算childNonePrice = eval(document.onenightOrderForm.childNoneNumber.value * 4200);document.onenightOrderForm.Price005.value = figout(childNonePrice);//6つ目の計算optionPrice = eval(document.onenightOrderForm.optionNumber.value * 3000);document.onenightOrderForm.Price006.value = figout(optionPrice);//7つ目の計算cakePrice = eval(document.onenightOrderForm.cakeNumber.value * 2100);document.onenightOrderForm.Price007.value = figout(cakePrice);//全部のトータルの計算myTotal = eval(nomalPrice + "+" + gourmetPrice + "+" + nonePrice + "+" + childNomalPrice + "+" + childNonePrice + "+" + optionPrice + "+" + cakePrice);document.onenightOrderForm.price.value = figout(myTotal);//1つ目の計算nomalPrice2 = eval(document.onenightOrderForm.nomalNumber2.value * 10000);document.onenightOrderForm.Price0012.value = figout(nomalPrice2);//２つ目の計算gourmetPrice2 = eval(document.onenightOrderForm.gourmetNumber2.value * 13000);document.onenightOrderForm.Price0022.value = figout(gourmetPrice2);//3つ目の計算nonePrice2 = eval(document.onenightOrderForm.noneNumber2.value * 6200);document.onenightOrderForm.Price0032.value = figout(nonePrice2);//4つ目の計算childNomalPrice2 = eval(document.onenightOrderForm.childNomalNumber2.value * 10000);document.onenightOrderForm.Price0042.value = figout(childNomalPrice2);//5つ目の計算childNonePrice2 = eval(document.onenightOrderForm.childNoneNumber2.value * 4200);document.onenightOrderForm.Price0052.value = figout(childNonePrice2);//6つ目の計算optionPrice2 = eval(document.onenightOrderForm.optionNumber2.value * 3000);document.onenightOrderForm.Price0062.value = figout(optionPrice2);//7つ目の計算cakePrice2 = eval(document.onenightOrderForm.cakeNumber2.value * 2100);document.onenightOrderForm.Price0072.value = figout(cakePrice2);//全部のトータルの計算myTotal2 = eval(nomalPrice2 + "+" + gourmetPrice2 + "+" + nonePrice2 + "+" + childNomalPrice2 + "+" + childNonePrice2 + "+" + optionPrice2 + "+" + cakePrice2);document.onenightOrderForm.price2.value = figout(myTotal2);//1つ目の計算nomalPrice3 = eval(document.onenightOrderForm.nomalNumber3.value * 10000);document.onenightOrderForm.Price0013.value = figout(nomalPrice3);//２つ目の計算gourmetPrice3 = eval(document.onenightOrderForm.gourmetNumber3.value * 13000);document.onenightOrderForm.Price0023.value = figout(gourmetPrice3);//3つ目の計算nonePrice3 = eval(document.onenightOrderForm.noneNumber3.value * 6200);document.onenightOrderForm.Price0033.value = figout(nonePrice3);//4つ目の計算childNomalPrice3 = eval(document.onenightOrderForm.childNomalNumber3.value * 10000);document.onenightOrderForm.Price0043.value = figout(childNomalPrice3);//5つ目の計算childNonePrice3 = eval(document.onenightOrderForm.childNoneNumber3.value * 4200);document.onenightOrderForm.Price0053.value = figout(childNonePrice3);//6つ目の計算optionPrice3 = eval(document.onenightOrderForm.optionNumber3.value * 3000);document.onenightOrderForm.Price0063.value = figout(optionPrice3);//7つ目の計算cakePrice3 = eval(document.onenightOrderForm.cakeNumber3.value * 2100);document.onenightOrderForm.Price0073.value = figout(cakePrice3);//全部のトータルの計算myTotal3 = eval(nomalPrice3 + "+" + gourmetPrice3 + "+" + nonePrice3 + "+" + childNomalPrice3 + "+" + childNonePrice3 + "+" + optionPrice3 + "+" + cakePrice3);document.onenightOrderForm.price3.value = figout(myTotal3);totalPlice = eval(nomalPrice + "+" + gourmetPrice + "+" + nonePrice + "+" + childNomalPrice + "+" + childNonePrice + "+" + optionPrice + "+" + cakePrice + "+" + nomalPrice2 + "+" + gourmetPrice2 + "+" + nonePrice2 + "+" + childNomalPrice2 + "+" + childNonePrice2 + "+" + optionPrice2 + "+" + cakePrice2 + "+" + nomalPrice3 + "+" + gourmetPrice3 + "+" + nonePrice3 + "+" + childNomalPrice3 + "+" + childNonePrice3 + "+" + optionPrice3 + "+" + cakePrice3);document.onenightOrderForm.lastPrice.value = figout(totalPlice);	}function showthis(obj) {   if(!obj) return false;   if(document.getElementById) {      document.getElementById("hotel1").style.display = "none";      document.getElementById("hotel2").style.display = "none";	  document.getElementById("hotel3").style.display = "none";	  document.getElementById("hotel4").style.display = "none";      document.getElementById(obj).style.display = "block";   } else {      return false;	     }}