<!--
//
// 注文が選ばれているかのチェック
//
function checkOrder(){
	myCnt = 0;
	for (i=0; i<document.forms[0].length; i++){
    		if (document.forms[0].elements[i].checked == true){
      		myCnt++; 
	    	}
	}
  	if( myCnt == 0 ){
		alert("注文商品を選んでください");
	} else {
		document.forms[0].submit();
	}
}
//
// Helpウィンドウ表示
// 幅400：高さ指定可能（指定がない場合は400）
//
function openwin(h){
if( !h ){ h = 400 }
w=window.open("","helpwin","WIDTH=400,HEIGHT=" + h + ",SCROLLBARS=1,RESIZABLE=1,TOOLBAR=0,MENUBAR=0,LOCATION=0,DIRECTORIES=0,STATUS=0")
}
//
// ちび店長ウィンドウ
//
function opentencho(){
	w=window.open("","apetwin","WIDTH=500,HEIGHT=670,SCROLLBARS=1,RESIZABLE=1,TOOLBAR=0,MENUBAR=0,LOCATION=0,DIRECTORIES=0,STATUS=0")
}
//
// Tシャツウィンドウ表示
//
function openiket(){
	w=window.open("","iketwin","WIDTH=400,HEIGHT=550,SCROLLBARS=1,RESIZABLE=1,TOOLBAR=0,MENUBAR=0,LOCATION=0,DIRECTORIES=0,STATUS=0")
}
//
// リンクポップアップメニュー
//
function JumpForm_goLink_onChange(page)
{
		page = page.options[page.selectedIndex].value;
		if( page != "" ){
			if( page.substr(0,5) == "/shop" ) {
				w=window.open( page,"helpwin","WIDTH=400,HEIGHT=400,SCROLLBARS=1,RESIZABLE=1,TOOLBAR=0,MENUBAR=0,LOCATION=0,DIRECTORIES=0,STATUS=0")
			} else {
				if( page.substr(0,5) != "http:" ) {
					page = "http://shop.urumadelvi.jp/" + page;
				}
//				alert( page );
				top.location=page;
			}
		}
}
//
// 右クリック禁止
//<body>の下に入れる
//
function peekaboo(){
        var Mac   = navigator.userAgent.indexOf("Mac") != -1   ? true : false;
        function mdown(e) {
        if (navigator.appName == "Microsoft Internet Explorer") {
                //Mac版IE５ではコマンドキーを使ったショートカットでソースを見ることができます。
                if (event.button == 2 || (Mac && (event.ctrlKey || event.keyCode == 91))) {
                        return(false);
                }
          } else if (navigator.appName == "Netscape") {
                if (e.which == 3 || e.modifiers == 2 || e.ctrlKey) {
                         return false;
            }
          } 
        }

        function noright(){
                return false;
        }

        document.oncontextmenu = noright;

        if (document.all && (Mac || ! document.getElementById)) {
                document.onmousedown = mdown;
                document.onkeydown = mdown;
        } else if (document.layers) {
                window.captureEvents(Event.MOUSEDOWN | Event.modifiers | Event.KEYDOWN);
                window.onmousedown = mdown;
                window.onkeydown = mdown;
        } else if(navigator.userAgent.indexOf("Netscape6")!=-1){
                //onmousedownだとalertが表示されますが、
                //同時にデフォルトのコンテクストメニューも表示されてしまいます。
                //なのでonmouseupを使います
                document.onmouseup = mdown; 
                document.onkeydown = mdown;
        }

}

function setNavTab( act ) {
	document.write('<div class="select-tab" align="center">');
	document.write('<table border="0" cellpadding="0" cellspacing="0" border=1>');
	document.write('<tr>');

	// HOME
	if( act == "home" ){
		document.write('<td width="91"><img src="http://urumadelvi.jp/images/tab_17.gif" alt="You are here!" width="91" height="22"></td>');
	} else {
		var str1 ="'tab01','','http://urumadelvi.jp/images/tab_09.gif',1";
		document.write('<td width="91"><a href="http://urumadelvi.jp/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(' , str1 , ')"><img src="http://urumadelvi.jp/images/tab_01.gif" alt="TOP" name="tab01" width="91" height="22" border="0" id="tab01"></a></td>');
	}
	
	// Gallery
	if( act == "gallery" ){
		document.write('<td width="91"><img src="http://urumadelvi.jp/images/tab_18.gif" alt="You are here!" width="91" height="22"></td>');
	} else {
		var str1 ="'tab02','','http://urumadelvi.jp/images/tab_10.gif',1";
		document.write('<td width="91"><a href="http://urumadelvi.jp/gallery" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(' , str1 , ')"><img src="http://urumadelvi.jp/images/tab_02.gif" alt="ギャラリー" name="tab02" width="91" height="22" border="0" id="tab02"></a></td>');
	}

	// Software
	if( act == "soft" ){
		document.write('<td width="91"><img src="http://urumadelvi.jp/images/tab_20.gif" alt="You are here!" width="91" height="22"></td>');
	} else {
		var str1 ="'tab04','','http://urumadelvi.jp/images/tab_12.gif',1";
		document.write('<td width="91"><a href="http://urumadelvi.jp/udpaint" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(' , str1 , ')"><img src="http://urumadelvi.jp/images/tab_04.gif" alt="ソフト" name="tab04" width="91" height="22" border="0" id="tab04"></a></td>');
	}

	// blog
	if( act == "blog" ){
		document.write('<td width="91"><img src="http://urumadelvi.jp/images/tab_19.gif" alt="You are here!" width="91" height="22"></td>');
	} else {
		var str1 ="'tab03','','http://urumadelvi.jp/images/tab_11.gif',1";
		document.write('<td width="91"><a href="http://urumadelvi.jp/blog/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(' , str1, ')"><img src="http://urumadelvi.jp/images/tab_03.gif" alt="ブログ" name="tab03" width="91" height="22" border="0" id="tab03"></a></td>');
	}

	// Shop
	if( act == "shop" ){
		document.write('<td width="91"><a href="http://shop.urumadelvi.jp"><img src="http://urumadelvi.jp/images/tab_21.gif" alt="You are here!" width="91" height="22" border=0></a></td>');
	} else {
		var str1 ="'tab05','','http://urumadelvi.jp/images/tab_13.gif',1";
		document.write('<td width="91"><a href="http://shop.urumadelvi.jp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(' , str1 , ')"><img src="http://urumadelvi.jp/images/tab_05.gif" alt="TOP" name="tab05" width="91" height="22" border="0" id="tab05"></a></td>');
	}

	// Corp
	if( act == "corp" ){
		document.write('<td width="91"><img src="/images/tab_22.gif" alt="You are here!" width="91" height="22"></td>');
	} else {
		var str1 ="'tab06','','http://urumadelvi.jp/images/tab_14.gif',1";
		document.write('<td width="91"><a href="http://urumadelvi.jp/corp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(' , str1 , ')"><img src="http://urumadelvi.jp/images/tab_06.gif" alt="うるまでるびについて" name="tab06" width="91" height="22" border="0" id="tab06"></a></td>');
	}

	// SiteMap
/*	if( act == "sitemap" ){
		document.write('<td width="91"><img src="http://urumadelvi.jp/images/tab_23.gif" alt="You are here!" width="91" height="22"></td>');
	} else {
		var str1 ="'tab07','','http://urumadelvi.jp/images/tab_15.gif',1";
		document.write('<td width="91"><a href="http://urumadelvi.jp/sitemap.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(' , str1 , ')"><img src="http://urumadelvi.jp/images/tab_07.gif" alt="サイトマップ" name="tab07" width="91" height="22" border="0" id="tab07"></a></td>');
	}
*/

	// English
	if( act == "english" ){
		document.write('<td width="91"><img src="http://urumadelvi.jp/images/tab_24.gif" alt="You are here!" width="91" height="22"></td>');
	} else {
		var str1 ="'tab08','','http://urumadelvi.jp/images/tab_16.gif',1";
		document.write('<td width="91"><a href="http://urumadelvi.jp/corp/inqe.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(' , str1 , ')"><img src="http://urumadelvi.jp/images/tab_08.gif" alt="English" name="tab08" width="91" height="22" border="0" id="tab08"></a></td>');
	}

	document.write('</tr></table>');
	document.write('</div>');
}



//-->

