var loc_base="http://Dr.NakaMats.Com/main/";
var cart_loc="http://Dr.NakaMats.Com/shop/cart.cgi";
 
function LoadCartForParent() {
window.opener.location.href=cart_loc;
}

function autoClose(time) {
setTimeout('closeWin()', time);
}
function closeWin() {
this.close();
}

function souken_contacts(){
var win = window.open(loc_base+"souken_contacts.html", "contacts", "toolbar=1,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=570,height=270");
}
function popNW(){
var NW = window.open(loc_base+"NW.html", "NW", "toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=420,height=265");
}
function shop_help(){
var hwin = window.open("shop_manual.html", "Help", "toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=550,height=300");
}

function refer_pop(popup_ocation){
var referwin = window.open(popup_ocation, "refer", "toolbar=1,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=550,height=350");
}


function o(i){t=i.src;i.src=i.lowsrc;i.lowsrc=t}


// copyright 1999 Mikodocs, Inc. http://www.mikodocs.com/tags/
// Distribute this script freely, but keep this 
// notice with the code.
var resetRolls = new Object();

function resetimage(src)
{
this.src=src;
this.confirm=true;
this.alt="Reset";
this.write=resetimage_write;
}

function resetimage_write()
{
document.write('<A ');
if (this.rollover)
    {
    if (! this.name)
        {
        alert('to create a rollover you must give the image a name');
        return;
        }

    resetRolls[this.name] = new Object();
    resetRolls[this.name].over = new Image();
    resetRolls[this.name].over.src=this.rollover;
    resetRolls[this.name].out = new Image();
    resetRolls[this.name].out.src=this.src;
    document.write(
        ' onMouseOver="if (document.images)document.images[\'' + 
        this.name + '\'].src=resetRolls[\'' + this.name + '\'].over.src"' + 
        ' onMouseOut="if (document.images)document.images[\'' + 
        this.name + '\'].src=resetRolls[\'' + this.name + '\'].out.src"'
        );
    }
document.write(' HREF="javascript:');
if (this.confirm)
    document.write('if(confirm(\'Are you sure you want to reset?\'))');
document.write(
    'document.forms[' + 
    (document.forms.length - 1) + '].reset();void(0);">');
document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '"');
document.write(' BORDER=0');
if (this.name)document.write(' NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH=' + this.width);
if (this.otheratts)document.write(' '+ this.otheratts);
document.write('></A>');
}
 
var submitRolls = new Object();

function submitroll(src, oversrc, name)
{
this.src=src;
this.oversrc=oversrc;
this.name=name;
this.alt="ƒNƒŠƒbƒN!";
this.write=submitroll_write;
}

function submitroll_write()
{
var thisform= 'document.forms[' + (document.forms.length - 1) + ']';
submitRolls[this.name] = new Object();
submitRolls[this.name].over = new Image();
submitRolls[this.name].over.src = this.oversrc;
submitRolls[this.name].out = new Image();
submitRolls[this.name].out.src = this.src;

document.write(
   '<A onMouseOver="if (document.images)document.images[\'' + 
   this.name + "'].src=submitRolls['" + this.name + '\'].over.src"' + 
   ' onMouseOut="if (document.images)document.images[\'' + 
   this.name + "'].src=submitRolls['" + this.name + '\'].out.src"' + 
   ' HREF="javascript:');
if (this.sendname)
   document.write(thisform + '.elements[\'' + this.sendname + 
   '\'].value=\'' + this.sendname + '\';');
document.write(thisform + '.submit();void(0);">' + 
   '<IMG SRC="' + this.src + '" ALT="' + this.alt + 
   '" BORDER=0 NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH='  + this.width);
if (this.otheratts)document.write(' ' + this.otheratts);
document.write('></A>');
if (this.sendname)
   document.write('<INPUT TYPE=HIDDEN NAME="' + this.sendname + '">');
}

if(navigator.appVersion.charAt(0) >= 3) 
 {
 var img = new Array();
 img[10] = new Image();  img[10].src = "../shop/goods/images/buttons/koushin_off.gif";  
 img[11] = new Image();  img[11].src = "../shop/goods/images/buttons/koushin_on.gif";
}

function ci(nam,num) 
	 {
          if(navigator.appVersion.charAt(0) >= 3) {
           document.images[nam].src = img[num].src;
          }
	}


 
function viaForm(){ openmanual("byform"); }
function viaFax(){ openmanual("byfax"); }
function viaPhone(){ openmanual("byphone"); }

function ByBank(){ openmanual("bybank"); }
function ByCreditcard(){ openmanual("bycreditcard"); }
function ByKakitome(){ openmanual("bykakitome"); }
function byYufuri(){ openmanual("byyufuri"); }
function bySagawa(){ openmanual("bysagawa"); }

function openmanual(obj){
var win = window.open("shop_manual.html#"+obj, obj, "toolbar=1,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=570,height=270");
}

function open_chakumero() 
		{
                var chaku = window.open("http://dr.nakamats.com/shop/goods/chakumero/Index/", "chaku", "toolbar=1,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=0,height=500");
	        var winW = 300;
	        var winH = screen.height;
  		//var winl = (screen.width - winW) / 2;
		//var wint = (screen.height - winH) / 2;
		chaku.resizeTo(winW, winH);
		chaku.moveTo(0,0);
		}

function open_DNWUT() 
		{
                var chaku = window.open("http://dr.nakamats.com/101603/101603BASE.jpg", "dnwut", "toolbar=1,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=0,height=400");
	        var winW = 740;
                var winH = 590;
	        //var winH = screen.height;
  		//var winl = (screen.width - winW) / 2;
		//var wint = (screen.height - winH) / 2;
		chaku.resizeTo(winW, winH);
		chaku.moveTo(0,0);
		}


 

