//Astyle 2007.11.9 G.hyou mod start
function popupAction()
	{
   //20100315 KAWABE mod start
    //var zipJitaku1 = document.forms[0].zipJitaku1.value;
    //var zipJitaku2 = document.forms[0].zipJitaku2.value;
    var zipJitaku1 = document.getElementById("zipJitaku1").value;
    var zipJitaku2 = document.getElementById("zipJitaku2").value;
   //20100315 KAWABE mod end
		var pageTitle = document.title;
		var pUrl = '/store/view/common/zipSearch.html?zipJitaku1='+zipJitaku1+'&zipJitaku2='+zipJitaku2+'&pageTitle='+pageTitle;
		//20100310 FUJII mod start obpm60004
		//this.window.open( pUrl ,'addressModify','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,dependent=yes,width=820,height=580');
		this.window.open( pUrl ,'addressModify','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,dependent=yes,width=950,height=580');
		//20100310 FUJII mod end obpm60004
	}
function popupAction1()
	{
	 //20100315 KAWABE mod start
		//var zipJitaku1 = document.forms[0].zipJitaku1.value;
		//var zipJitaku2 = document.forms[0].zipJitaku2.value;
    var zipJitaku1 = document.getElementById("zipJitaku1").value;
    var zipJitaku2 = document.getElementById("zipJitaku2").value;
   //20100315 KAWABE mod end

		var pageTitle = document.title;
		var pUrl = '/store/view/common/zipSearchOc.html?zipJitaku1='+zipJitaku1+'&zipJitaku2='+zipJitaku2+'&pageTitle='+pageTitle;
		//20100310 FUJII mod start obpm60004
		//this.window.open( pUrl ,'deliveryModify','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,dependent=yes,width=820,height=580');
		this.window.open( pUrl ,'deliveryModify','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,dependent=yes,width=950,height=580');
		//20100310 FUJII mod end obpm60004
	}
function popupActionRegist()
	{
		//20100310 KAWABE mod start obpm60022
		//var postCode1 = document.forms[2].postCode1.value;
		//var postCode2 = document.forms[2].postCode2.value;
		var postCode1 = document.getElementById("postCode1").value;
    var postCode2 = document.getElementById("postCode2").value;
    //20100310 KAWABE mod end
		var pageTitle = document.title;
		var pUrl = '/store/view/common/zipSearch.html?zipJitaku1='+postCode1+'&zipJitaku2='+postCode2+'&pageTitle='+pageTitle;
		//20100223 KAWABE mod start
		//20100310 FUJII mod start obpm60004
		//this.window.open( pUrl ,'popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,dependent=yes,width=820,height=580');
		this.window.open( pUrl ,'popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,dependent=yes,width=950,height=580');
		//20100310 FUJII mod end obpm60004
		//window.open( pUrl ,'popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,dependent=yes,width=400,height=400');
		//20100223 KAWABE mod end
	}

function popupActionEmpRegist()
	{
		var postCode1 = document.getElementById("postCode1").value;
		var postCode2 = document.getElementById("postCode2").value;
		var pageTitle = document.title;
		var pUrl = '/store/view/common/zipSearchCommon.html?zipJitaku1='+postCode1+'&zipJitaku2='+postCode2+'&pageTitle='+pageTitle;
		//20100310 FUJII mod start obpm60004
		//this.window.open( pUrl ,'popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,dependent=yes,width=820,height=580');
		this.window.open( pUrl ,'popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,dependent=yes,width=950,height=580');
		//20100310 FUJII mod end obpm60004
	}

//Astyle 2007.11.9 G.hyou mod end
function selectedZipcode(addr1,addr2)
		{
			if(window.opener.closed){
				window.close();
			}else{
				var title = window.opener.document.title;
				var request = window.location.href;
				var n = request.indexOf("&pageTitle=");
 				if (n>=0){
					request = request.substring(n+11);
				}
				if(title==decodeURI(request)){	//Astyle 2007.11.9 G.hyou Mod
					//20100310 KAWABE mod start
					//window.opener.document.forms[2].kenCdJitaku.value = addr1;
					//window.opener.document.forms[2].addr1Jitaku.value = addr2;
          window.opener.document.getElementById("kenCdJitaku").value = addr1;
          window.opener.document.getElementById("addr1Jitaku").value = addr2;
          //20100310 KAWABE mod end
					window.close();
				}else{
					window.close();
				}
			}
		}
function selectedZipcode1(addr1,addr2)
		{
			if(window.opener.closed){
				window.close();
			}else{
				var title = window.opener.document.title;
				var request = window.location.href;
				var n = request.indexOf("&pageTitle=");
 				if (n>=0){
					request = request.substring(n+11);
				}
				if(title==decodeURI(request)){	//Astyle 2007.11.9 G.hyou Mod
					window.opener.document.forms[0].kenCdJitaku.value = addr1;
					window.opener.document.forms[0].addr1Jitaku.value = addr2;
					window.close();
				}else{
					window.close();
				}
			}
		}

function selectedZipcode2(addr1,addr2) {
	if (window.opener.closed) {
		window.close();
	} else {
		var title = window.opener.document.title;
		var request = window.location.href;
		var n = request.indexOf("&pageTitle=");
		if (n>=0){
			request = request.substring(n+11);
		}
		if(title==decodeURI(request)){
			window.opener.document.getElementById("kenCdJitaku").value = addr1;
			window.opener.document.getElementById("addr1Jitaku").value = addr2;
			window.close();
		}else{
			window.close();
		}
	}
}

function doSearchCtgryCode(){
	   	document.getElementById("doSearchCtgryCode").click();
	}

function enterCheck(){
	    if (window.event.keyCode == 13){
          document.getElementById("doSearchCtgryCode").click();
		  window.event.returnValue = false;
		}
	}

function doClick(target){
      document.getElementById(target).click();
  }

function doFull(){
	   	document.getElementById("doFull").click();
	}
function doNew(){
	   	document.getElementById("doNew").click();
	}
function doAdvice(){
	   	document.getElementById("doAdvice").click();
	}
function doUnitPrice(){
	   	document.getElementById("doUnitPrice").click();
	}
function doListView(){
	   	document.getElementById("doListView").click();
	}

function navigate(id) {
  document.getElementById(id).click();
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//20100316 update 5次開発 SI hong
function clickOverSea(postCode1,postCode2,kenCdJitaku,searchPost,overSea) {
    if(document.getElementById(overSea).checked) {
       document.getElementById(postCode1).value='999';
       document.getElementById(postCode2).value='9990';
       document.getElementById(kenCdJitaku).options.selectedIndex=48;
       document.getElementById(postCode1).disabled= true;
       document.getElementById(postCode2).disabled= true;
       document.getElementById(kenCdJitaku).disabled= true;
       document.getElementById(searchPost).disabled= true;
    } else {
       document.getElementById(postCode1).value='';
       document.getElementById(postCode2).value='';
       document.getElementById(kenCdJitaku).value='';
       document.getElementById(postCode1).disabled=false;
       document.getElementById(postCode2).disabled= false;
       document.getElementById(kenCdJitaku).disabled= false;
       document.getElementById(searchPost).disabled= false;
    }
}

function addBookmark(title,url) {
     if (window.sidebar) {
         window.sidebar.addPanel(title, url,"");
    } else if( document.all ) {
        window.external.AddFavorite( url, title);
    } else if( window.opera && window.print ) {
        return true;
    }
}

