//Astyle 2007.11.9 G.hyou mod start
function popupAction()
	{
		var zipJitaku1 = document.forms[2].zipJitaku1.value;
		var zipJitaku2 = document.forms[2].zipJitaku2.value;
		var pageTitle = document.title;
		var pUrl = '/store/view/common/zipSearch.html?zipJitaku1='+zipJitaku1+'&zipJitaku2='+zipJitaku2+'&pageTitle='+pageTitle;
		window.open( pUrl ,'addressModify','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,dependent=yes,width=400,height=400'); 
	}
function popupAction1()
	{
		var zipJitaku1 = document.forms[0].zipJitaku1.value;
		var zipJitaku2 = document.forms[0].zipJitaku2.value;
		var pageTitle = document.title;
		var pUrl = '/store/view/common/zipSearchOc.html?zipJitaku1='+zipJitaku1+'&zipJitaku2='+zipJitaku2+'&pageTitle='+pageTitle;
		window.open( pUrl ,'deliveryModify','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,dependent=yes,width=400,height=400'); 
	}	
function popupActionRegist()
	{
		var postCode1 = document.forms[2].postCode1.value;
		var postCode2 = document.forms[2].postCode2.value;
		var pageTitle = document.title;
		var pUrl = '/store/view/common/zipSearch.html?zipJitaku1='+postCode1+'&zipJitaku2='+postCode2+'&pageTitle='+pageTitle;
		window.open( pUrl ,'popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,dependent=yes,width=400,height=400'); 
	}
	
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;
		window.open( pUrl ,'popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,dependent=yes,width=400,height=400'); 
	}

//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
					window.opener.document.forms[2].kenCdJitaku.value = addr1;
					window.opener.document.forms[2].addr1Jitaku.value = addr2;
					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 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);
}
		