//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// 10/06/02(水)11:21:26 無用なリンク先を削除
// 09/11/07(土)09:32:03 wino指定が開かない←未定義変数 var winname追加
// 09/09/12(土)06:48:29 po.html 追加
// 07/12/28(金)09:19:11 add. issafe()
// 06/12/02(土) winopenに、第四引数 "窓名"を追加
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
var doc=document;
function on_load(){ document.f.q.focus()
}
// 指定された uri を別窓サイズ指定出力
function winopen( uri, w, h, winname) { /* for OpenSesame */

	if( winname == null || winname == "undefined"){ winname = "another"; }
	// hideに合わせたサイズが 670*566
	if( w == null || w == "undefined" || w == 0){	w = 670;  }
	if( h == null || h == "undefined" || h == 0){	h = 566;  }

	// ブラウザ毎に窓サイズ微調整
	// ff:16,16 IE6:36,28 NC4.5:19,16 IE5:40,40
	if( navigator.appName == "Netscape"){
		w=w+16; h=h+16;
	}else{
		w=w+36; h=h+30;
		w=w+36; h=h+28;
	}

	r=window.open( uri, winname, "width=" + w + ",height=" + h + ",resizable=yes,scrollbars=yes,menubar=no");
}

function nslookup(){

//	url="http://www.morry.com/cgi-bin/tool/nslookup.cgi?hostname=" + doc.f.q.value;
	url="http://www.makko.biz/whois/whois.php?q=" + doc.f.q.value;
	parent.body.location.href=url;
}
// 07/12/28(金)09:19:11 add. 
function issafe(){
	url="http://www.aguse.jp/?m=w&url=" + doc.f.q.value + "&x=0&y=0";
	parent.body.location.href=url;
}
function OpenSesame(){
	var top=0;
	url="";
	var req=prompt("What do you want to know about : ", "");
	var _top=_top;
	var head=4;
	var body=5;
	var wino=9;
	var w=0; 
	var h=0;
	var winname='';

		 if( req==""
		  || req=="null" 
		  || req==null ){ 
			top=body; url="/cgi-bin/cv.cgi?CTRL=bbs"; 
		 }
	else if( req=="/"		){ top=_top; url="./indexj.html"; }
	else if( req=="&"		){ top=body; url="http://www80.tcup.com/8009/adon.html"; }
	else if( req==".2"		){ top=_top; url="http://chat.nantv.com/2shot/index2.html"; }
	else if( req==".3"		){ top=_top; url="http://2sc04.nan-net.com:8087/index"; }
	else if( req==".7"		){ top=_top; url="http://spaces.msn.com/members/a75don/"; }

	else if( req=="a"		){ top=body; url="http://www81.tcup.com/8122/aatsuyo.html"; }
	else if( req=="a1"		){ top=_top; url="http://www.bi-1.com/xxx/"; }
	else if( req=="alex"	){ top=_top; url="http://www.yoshida-family.com/ALEX/food/"; }
	else if( req==".all"	){ top=_top; url="http://cvlz.net/cgi-bin/welcome.cgi?c=all&n=128&uno=1"; }
	else if( req=="ama" 	){ top=wino; url="http://associates.amazon.co.jp/gp/associates/join/"; w=1280; h=1024; }

	else if( req=="b"		){ top=body; url="/warashi/chat/"; }
	else if( req=="b50" 	){ top=_top; url="http://www.japan.mls.ad.jp/chat/chat.cgi?reftime=0&window=50&rom=on&frame=on"; }
	else if( req=="bbsedit" ){ top=_top; url="http://www.tcup.com/bbs/l1chg.html"; }	// c... 325 c...d...
	else if( req==".bot"	){ top=_top; url="http://cvlz.net/cgi-bin/welcome.cgi?c=bot&n=1280&uno=1"; }
	else if( req==".bz" 	){ top=_top; url="http://cvlz.net/cgi-bin/bz.cgi"; }

	else if( req=="car" 	){ top=_top; url="http://www.cyber-ignition.com/"; }
	else if( req==".cli"	){ top=_top; url="http://cvlz.net/cgi-bin/welcome.cgi?c=cli&n=128&uno=1"; }
	else if( req==".cnet"	){ top=_top; url="http://www.hotwired.co.jp/news/news/"; }							// C|NET WIRED NEWS
	else if( req=="ckon"	){ top=_top; url="http://www.tripod.lycos.com/service/welcome/preferences/"; }		// ckon.tripod log-in page

	else if( req=="d"		){ top=_top; url="http://www.kamiyoung.com/docoda/"; }
	else if( req=="dai" 	){ top=_top; url="http://blog.goo.ne.jp/dai_fellow"; }
	else if( req==".di" 	){ top=body; url="http://cvlz.net/cgi-bin/di.cgi"; }
	else if( req=="des" 	){ top=body; url="/cgi-bin/des.cgi"; }
	else if( req=="don" 	){ top=_top; url="http://www.dcn.ne.jp/~dongame/"; }	// http://www.dokidoki.ne.jp/home2/dongame/
	else if( req=="dic" 	){ top=_top; url="http://lsd.pharm.kyoto-u.ac.jp/ja/service/weblsd/index.html"; }
	else if( req=="dom" 	){ top=_top; url="http://www.mse.co.jp/ip_domain/"; }

	else if( req=="ecc" 	){ top=body; url="http://echoo.yubitoma.or.jp/usermsg.htm?inout=i"; }	// echooの往復コメント一覧
	else if( req=="edic"	){ top=_top; url="http://www.excite.co.jp/world/english/"; }
	else if( req=="ek"		){ top=_top; url="http://park6.wakwak.com/~ko-chan/cgi-bin/echoo/ecochu_chat/index.cgi"; }
	else if( req=="echo"	){ top=_top; url="http://www.mars.dti.ne.jp/~echo/"; }	// はまかぜのかをり
	else if( req=="echoo"	){ top=body; url="http://bbs2.fc2.com/cgi-bin/e.cgi/25412/"; }
	else if( req=="ego" 	){ top=_top; url="http://www.taisei-e.co.jp/seikaku/"; }
	else if( req=="ej"		){ top=_top; url="http://www.excite.co.jp/world/english/"; }
	else if( req=="emiko"	){ top=_top; url="http://www.amy.hi-ho.ne.jp/emiko_f/"; }
	else if( req=="eno" 	){ top=_top; url="http://enomoto.hypermart.net/cgi-bin/minibbs.cgi"; }
	else if( req=="env" 	){ top=_top; url="http://www-cgi.ed.kuki.sut.ac.jp/sut-cgi-bin/~j8697018/env.cgi"; }
	else if( req=="ero" 	){ top=_top; url="http://www.eroika.com/e2/main/index.html"; }
	else if( req=="eq"		){ top=_top; url="http://www.hinet.bosai.go.jp/AQUA/aqua_eq.php"; }

	else if( req=="fu"		){ top=_top; url="http://www.h3.dion.ne.jp/~fu-san/"; }
	else if( req=="fixed"	){ top=_top; url="http://www.drive.co.jp/drive/whatsnew/index.html"; }
	else if( req=="ft"		){ top=_top; url="http://bbs02.nan-net.com/yari/bbs.cgi?num=156"; }
	
	else if( req=="ga"		){ top=_top; url="https://www.google.com/adsense?hl=ja"; }
	else if( req==".gue"	){ top=_top; url="http://cvlz.net/cgi-bin/welcome.cgi?c=gue&n=128&uno=1"; }
	else if( req=="game"	){ top=_top; url="http://game.gr.jp/GameWeb/Display/index.cgi"; }

	else if( req=="h"		){ top=_top; url="http://www.tokyo-shoseki.co.jp/edu/support/himawari/jpeg/vis.jpg"; }
	else if( req=="hero"	){ top=body; url="http://heropa.blog.ocn.ne.jp/"; } // http://6116.teacup.com/heropa/bbs
	else if( req=="hide"	){ top=wino; url="/host/hide/";  winname="hide"; }
	else if( req=="host"	){ top=wino; url="/host/large.html";  winname="host"; }
	else if( req=="hotel"	){ top=_top; url="./travel/index.html"; }
	else if( req=="home"	){ top=_top; url="http://www.homestead.com/LoggedIn.html"; }
	else if( req=="htm" 	){ top=_top; url="http://www.shiojiri.ne.jp/~openspc/HTML/index.html"; }
	else if( req=="http"	){ top=_top; url="http://www.nda.co.jp/memo/RFC2068.html"; }

	else if( req=="i"		){ top=_top; url="http://www.iyobank.co.jp/direct/member.htm"; }
	else if( req=="ika" 	){ top=_top; url="http://www.town.ikata.ehime.jp/camera/"; }
	else if( req=="ida" 	){ top=_top; url="http://www.idaten.ne.jp/"; }
	else if( req==".io" 	){ top=body; url="http://cvlz.net/cgi-bin/iottmco.cgi"; }
	else if( req=="io10"	){ top=wino; url="/host/hide/io10/";  winname="io10"; }
	else if( req==".ii2"	){ top=body; url="http://ddns.j-speed.net/quickUpdate.jsp?uparams=cvlz,c94eebe7c981148213df090189b20795,ii2.cc,9f69384f08b538a56d1bc69a9e7f1553"; }
	else if( req=="int" 	){ top=_top; url="http://www.int21.co.jp/pcdn/techlink.html"; }

	else if( req=="js"		){ top=_top; url="http://www.tohoho-web.com/js/index.htm"; }
	else if( req=="java"	){ top=_top; url="http://www.atmarkit.co.jp/fjava/onepoint/index/index.html"; }
	else if( req=="joeu"	){ top=_top; url="http://www.joeufm.co.jp/"; }
	else if( req=="junon"	){ top=_top; url="http://www.ops.dti.ne.jp/~junon/index.html"; }

	else if( req=="k"		){ top=body; url="/cgi-bin/kr.cgi"; }
	else if( req=="ka"		){ top=body; url="http://504.teacup.com/kamefun/bbs?"; }
	else if( req=="katuko"	){ top=_top; url="mailto:katuko-s@mvj.biglobe.ne.jp"; } /* のん@福島 */
	else if( req=="ko"		){ top=body; url="http://6020.teacup.com/koma/bbs"; }
	else if( req=="kuro"	){ top=_top; url="http://i.river.go.jp/cgi-ippan/rain_display.sh?010=88&011=22560&002=&009=&005=1361180400030"; }

	else if( req=="le"		){ top=_top; url="http://www.amy.hi-ho.ne.jp/~lepton/"; }	// 闘わないプログラマ

	else if( req=="map" 	){ top=_top; url="http://www.mapfan.com/index.cgi?MAP=E132.47.24.1N33.46.44.3&ZM=6"; }
	else if( req=="mapg"	){ top=_top; url="http://maps.google.co.jp/maps?f=q&hl=ja&q=&ie=UTF8&om=1&z=8&ll=33.742613,132.692871&spn=4.416332,6.899414&t=k"; }
	else if( req=="mono"	){ top=_top; url="http://www.dokidoki.ne.jp/home2/soono/"; }
	else if( req=="kc"		){ top=body; url="http://cvlz.net/cgi-bin/kc.cgi"; }
	else if( req==".mod"	){ top=_top; url="http://mon.ciao.jp/"; }
	else if( req=="my"		){ top=_top; url="http://www.d-kiss.com/imm/mylura/"; }
	
	else if( req=="n"		){ top=body; url="/cgi-bin/nn.cgi"; }
	else if( req=="nm"		){ top=body; url="http://blog.goo.ne.jp/matsh/"; }
	else if( req=="nop" 	){ top=_top; url="http://www9.noproxy.com/"; }
	else if( req=="ns"		){ top=_top; url="http://nishinosachie.blog.ocn.ne.jp"; }
	else if( req=="nis" 	){ top=_top; url="http://www.atelier-nii.com/"; }

	else if( req=="o"		){ top=_top; url="http://www.kabu-ohta.com/"; }
	else if( req=="of"		){ top=_top; url="http://bbs02.nan-net.com/system/log/206"; }
	else if( req=="om"		){ top=_top; url="http://bbs02.nan-net.com/system/log/205"; }
	else if( req=="os"		){ top=_top; url="http://www.nanbbs.jp/pc/log/85"; }
	else if( req=="ot"		){ top=_top; url="http://bbs02.nan-net.com/system/log/207"; }
	else if( req=="ora" 	){ top=_top; url="http://www.oracle.co.jp/2shin/index.html"; }

	else if( req=="php" 	){ top=_top; url="http://www.php.net/manual/ja/"; }
	else if( req=="perl"	){			 url="host/program/perl"; }

	else if( req=="qo"		){ top=body; url="http://cvlz.net/qo.html"; }

	else if( req=="r"		){ top=_top; url="https://e-navi.rakuten-card.co.jp/login/show"; }

	else if( req=="s"		){ top=body; url="/cgi-bin/ol.cgi"; }
	else if( req=="safe"	){ top=_top; url="https://www.safeweb.com/"; }

	else if( req=="sky" 	){ top=_top; url="http://weather.crc.co.jp/weekly/w7320.html"; }
	else if( req=="soho"	){ top=_top; url="http://www.futoiki.co.jp/soho/"; }
	else if( req=="sql" 	){ top=_top; url="http://pjam.jpweb.net/pgsql-doc/ej/user/user.htm"; }
	else if( req=="su"		){ top=_top; url="http://ha6.seikyou.ne.jp/home/su-/"; }
	else if( req=="sumi"	){ top=_top; url="http://www.e-sumire.net/kongetsu.html"; }
	else if( req=="star"	){ top=_top; url="http://star.gs/"; }

	else if( req=="tennki"	){ top=_top; url="http://weather.crc.co.jp/"; }
	else if( req=="tel" 	){ top=_top; url="http://itp.ne.jp/"; }
	else if( req=="tohoho"	){ top=_top; url="http://www.tohoho-web.com/www.htm"; }
	else if( req=="today"	){ top=_top; url="http://www.hakodate.or.jp/home/today/"; }
	else if( req=="tonnbi"	){ top=body; url="http://www.aimix-z.com/gbbs.cgi?room=napo"; } // http://www.h7.dion.ne.jp/~napo/";}   // Mr.Tonnbi 040826 echoo さんつながり
	else if( req=="tv"		){ top=_top; url="http://www.tvguide.or.jp/"; }

	else if( req=="uo"		){ top=_top; url="http://www.tcup3.com/342/kame.html?"; }	// kame UO 2006お正月が最終記事

	else if( req=="wara"	){ top=_top; url="http://www.kuzira.co.jp/"; }
	else if( req=="where"	){			 url="./travel/where"; }
	else if( req=="whois"	){ top=_top; url="http://whois.nic.ad.jp/cgi-bin/whois_gw"; }
	else if( req=="x"		){ top=wino; url="http://cvlz.net/cgi-bin/xo.cgi"; }
	else if( req=="xa"		){ top=_top; url="http://cvlz.net/xa.htm"; }
	else if( req=="xo"		){ top=body; url="http://cvlz.net/cgi-bin/xo.cgi"; }

	else if( req=="y"		){ top=body; url="/cgi-bin/yi.cgi"; }

	else if( req=="zd"		){ top=_top; url="http://www.itmedia.co.jp/"; } 				// 2004　zdnet.co.jp ITMEDIAに統合
	else if( req=="zde" 	){ top=_top; url="http://www.zdnet.com/"; }
	else if( req=="zei" 	){ top=_top; url="http://backno.mag2.com/reader/Back?id=0000091139"; } /* 超簡単！税情報　初心者のための税のいろは */
	if( url.length ){ req=url; }

		 if( top==_top) parent.location.href=req;				// _topへ出力
	else if( top==head) parent.head.location.href=req;			// headへ出力
	else if( top==body) parent.body.location.href=req;			// bodyへ出力
	else if( top==wino) winopen( req, w, h, winname);			// 別窓へ出力
	else				parent.body.location.href=req+".html";	// 拡張子 .html をつけて bodyへ
//	else				parent.location.href=req+".html";	// 拡張子 .html をつけて 全画面で
}


// head?.htmlの list選択から呼び出し
function ShowURL(n) {


	if( n.substring(0,	10)=="http://325" ){	// teacup c...@325 c...d... → GMO ID ログ採取済みならレコード削除が吉
		parent.frames['body'].location.href=n;
	}else if( 
		n.substring(0,	7)=="http://" ){
		parent.location.href=n;
	}else if(
		n.substring(0,	6)=="/index" ){
		parent.location.href=n;
	}else if( n!=""){
		parent.frames['body'].location.href=n;
	}else{
		winopen( "http://cvlz.net/");
	}
}


