<!--//
//Verisign Secure Seal
function popUpV(url) {
sealWin=window.open(url,"verisign",'toolbar=no,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
self.name = "mainWin"; }
//-->



<!--//

if (document.images) {
		img00004on = new Image();   img00004on.src = "/comimg/top00005.gif";
		img00007on = new Image();   img00007on.src = "/comimg/top00008.gif";
		img00010on = new Image();   img00010on.src = "image/b011.gif";
		img00011on = new Image();   img00011on.src = "image/b012.gif";
		img00012on = new Image();   img00012on.src = "image/b013.gif";
		img00013on = new Image();   img00013on.src = "image/b014.gif";
		img00014on = new Image();   img00014on.src = "image/b015.gif";
		img00015on = new Image();   img00015on.src = "menu/b0061.gif";
		img00016on = new Image();   img00016on.src = "menu/b0071.gif";
		img00017on = new Image();   img00017on.src = "menu/b0081.gif";
		img00018on = new Image();   img00018on.src = "menu/b0091.gif";

		img00004off = new Image();   img00004off.src = "/comimg/top00004.gif";
		img00007off = new Image();   img00007off.src = "/comimg/top00007.gif";
		img00010off = new Image();   img00010off.src = "image/b011.gif";
		img00011off = new Image();   img00011off.src = "image/b012.gif";
		img00012off = new Image();   img00012off.src = "image/b013.gif";
		img00013off = new Image();   img00013off.src = "image/b014.gif";
		img00014off = new Image();   img00014off.src = "image/b015.gif";
		img00015off = new Image();   img00015off.src = "menu/b006.gif";
		img00016off = new Image();   img00016off.src = "menu/b007.gif";
		img00017off = new Image();   img00017off.src = "menu/b008.gif";
		img00018off = new Image();   img00018off.src = "menu/b009.gif";
}

    function imgOn(imgName) {
            if (document.images) {
                document[imgName].src = eval(imgName + "on.src");
            }
    }

    function imgOff(imgName) {
            if (document.images) {
                document[imgName].src = eval(imgName + "off.src");
            }
    }
//-->



<!--
/* NN4用にResize時にReloadする */
reloadCnt = 0;
function MyReload(){
	if(document.layers) {
		var appVer = navigator.appVersion;
		reloadCnt ++;
		if( appVer.indexOf("Macintosh") != -1	||
			appVer.indexOf("4.0") == -1			||
			( appVer.indexOf("4.0") != -1 && reloadCnt > 2 )
		) {
			reloadCnt = 0;
			location.reload();
		}
	}
}
//-->



<!--
/*
 * Menu Ver1.0
 */

/* Menuクラスの定義 */
function Menu( name, baselayer, topshift, leftshift, width ) {
	this.name				= name;		/* メニューのベースレイア名 */
	this.baselayer			= baselayer;/* メニュー表示位置の基準レイア */
	this.topshift			= topshift;	/* 基準レイアからの相対位置上 */
	this.leftshift			= leftshift;/* 基準レイアからの相対位置左 */
	this.height				= 0;		/* メニューの高さ（フォントと連動） */
	this.width				= width;	/* メニューの横幅 */
	this.fontSize			= 2;		/* メニューのフォントサイズ */
	this.charPixelSize		= this.fontSize * 6.5;/* フォントのピクセル値 */
	this.fontColor			= "#FFFFFF";	/* 文字色 */
	this.fontColorHilite	= "#ff6a00";	/* 文字色（MouseOver時） */
	this.bgColor			= "#000000";	/* 背景色 */
	this.items				= new Array();	/* メニュー項目 */
	this.links				= new Array();	/* メニュー項目のリンク先 */
	this.showflg			= false;		/* メニュー表示フラグ */
	this.delay				= 100;	/* メニュー不可視までの遅延時間(msec) */
	this.timeOutId			= null;			/* setTimeoutのID */
	this.addMenuItem		= addMenuItem;	/* 項目追加 */
	this.hideMenu			= hideMenu;	/* メニュー不可視 */
	if(document.layers) {
		this.showMenu		= showMenuNN;	/* メニュー可視 */
		this.hideMenuDelay	= hideMenuNN;	/* メニュー不可視 */
	    this.onMenuItemOver	= onMenuItemOverNN;	/* 文字色変更（MouseOver）*/
	    this.onMenuItemOut	= onMenuItemOutNN;	/* 文字色変更（MouseOut） */
		this.writeMenu		= writeMenuNN;	/* メニュー描画 */
	}
	if(document.all) {
		this.showMenu		= showMenuIE;	/* メニュー可視 */
		this.hideMenuDelay	= hideMenuIE;	/* メニュー不可視 */
	    this.onMenuItemOver	= onMenuItemOverIE;	/* 文字色変更（MouseOver）*/
	    this.onMenuItemOut	= onMenuItemOutIE;	/* 文字色変更（MouseOut） */
		this.writeMenu		= writeMenuIE;	/* メニュー描画 */
	}
}

/*
 * Netscape用メソッド群
 */

/* メニューを可視状態にする */
function showMenuNN(){
	if(this.timeOutId != null) {
		clearTimeout(this.timeOutId);
		this.timeOutId = null;
	}
	var menutop  = document.layers[this.baselayer].pageY + this.topshift;
	var menuleft = document.layers[this.baselayer].pageX + this.leftshift;
	eval( 'document.layers.' + this.name + '.top='  + menutop );
	eval( 'document.layers.' + this.name + '.left=' + menuleft );

	eval( 'document.layers.' + this.name + '.visibility="show"' );
	for(var i = 0; i < this.items.length; i ++ )
	{
		eval( 'document.layers.' + this.name + '.layers.' + 'item' + i +
				'.visibility="show"' );
	}
	this.showflg = true;
}
/* メニューを不可視状態にする */
function hideMenuNN() {
	eval( 'document.layers.' + this.name +
			'.visibility="hide"' );
	for(var i = 0; i < this.items.length; i ++ )
	{
		eval( 'document.layers.' + this.name +
				'.layers.item' + i + '.visibility="hide"' );
		eval( 'document.layers.' + this.name +
				'.layers.selitem' + i + '.visibility="hide"' );
	}
	this.showflg = false;
}
/* 文字にMouseOver時の色を付ける */
function onMenuItemOverNN( itemindex ) {
	for(var i = 0; i < this.items.length; i ++ ) {
		if( i != itemindex ) {
			this.onMenuItemOut(i);
		}
	}
	eval( 'document.layers.' + this.name +
			'.layers.item' + itemindex + '.visibility="hide"' );
	eval( 'document.layers.' + this.name +
			'.layers.selitem' + itemindex + '.visibility="show"' );
}
/* 文字にMouseOut時の色を付ける */
function onMenuItemOutNN( itemindex ) {
	if(this.showflg){
		eval( 'document.layers.' + this.name +
				'.layers.item' + itemindex + '.visibility="show"' );
		eval( 'document.layers.' + this.name +
				'.layers.selitem' + itemindex + '.visibility="hide"' );
	}else{
		this.hideMenu();
	}
}
/* メニュー描画 */
function writeMenuNN() {
	eval(this.name + 'object = this;');

	var content = '';

	content +=
		'<LAYER ID="' + this.name + '"' +
		' top=0' +
		' width='      + this.width +
		' height='     + this.height+
		' bgColor="'   + this.bgColor + '"' +
		' visibility="hide" z-Index=1' +
		' onMouseOver="' + this.name + 'object.showMenu();"' +
		' onMouseOut="'  + this.name + 'object.hideMenu();">\n';
	for(var i = 0,strtop = 0;
		i < this.items.length; i ++,strtop += this.charPixelSize)
	{
		content +=

			'<LAYER ID="item' + i + '"' +
			' visibility="hide" z-Index=2' +
			' left=0' +
			' top='        + strtop     +
			' onMouseOver="' + this.name + 'object.onMenuItemOver(' + i + ');">\n' +
			'<FONT COLOR="' + this.fontColor +
			'" SIZE="' + this.fontSize + '">' +
			this.items[i] + '<BR>\n' +
			'</FONT></LAYER>\n' +
			'<LAYER ID="selitem' + i + '"' +
			' visibility="hide" z-Index=3' +
			' left=0' +
			' top='        + strtop     +
			' onMouseOut="' + this.name + 'object.onMenuItemOut(' + i + ');">\n' +
 			'<A ' +
			' HREF="' + this.links[i] + '">\n' +
			'<FONT COLOR="' + this.fontColorHilite +
			'" SIZE="' + this.fontSize + '">' +
			this.items[i] + '<BR>\n' +
			'</FONT></A></LAYER>\n';
	}
	content += '</LAYER>\n';
	document.open("text/html");
	document.writeln(content);
	document.close();
}

/*
 * Internet Explorer用メソッド群
 */

/* メニューを可視状態にする */
function showMenuIE(){
	if(this.timeOutId != null) {
		clearTimeout(this.timeOutId);
		this.timeOutId = null;
	}
	eval( 'var menutop  = document.all.' + this.baselayer + '.offsetTop + ' + this.topshift );
	eval( 'var menuleft  = document.all.' + this.baselayer + '.offsetLeft + ' + this.leftshift );
	eval( 'document.all.' + this.name + '.style.pixelTop='  + menutop );
	eval( 'document.all.' + this.name + '.style.pixelLeft=' + menuleft );

	eval( 'document.all.' + this.name + '.style.visibility="visible"' );
	for(var i = 0; i < this.items.length; i ++ )
	{
		eval( 'document.all.' + this.name + '.document.all.' + this.name +
			'item[' + i + '].style.visibility="visible";' );
	}
	this.showflg = true;
}
/* メニューを不可視状態にする */
function hideMenuIE(){
	eval( 'document.all.' + this.name +	'.style.visibility="hidden"' );
	for(var i = 0; i < this.items.length; i ++ )
	{
		eval( 'document.all.' + this.name + '.document.all.' + this.name +
			'item[' + i + '].style.visibility="hidden"' );
	}
	this.showflg = false;
}
/* 文字にMouseOver時の色を付ける */
function onMenuItemOverIE( itemindex ) {
	eval( 'document.all.' + this.name + '.document.all.' + this.name +
		'item[' + itemindex + '].style.color=this.fontColorHilite' );
}
/* 文字にMouseOut時の色を付ける */
function onMenuItemOutIE( itemindex ) {
	if(this.showflg){
		eval( 'document.all.' + this.name +	'.document.all.' + this.name +
			'item[' + itemindex + '].style.color=this.fontColor' );
	}else{
		this.hideMenu();
	}
}
/* メニュー描画 */
function writeMenuIE() {
	eval(this.name + 'object = this;');

	var content = '';

	content +=
		'<DIV ID="' + this.name + '"' +
		' STYLE="' +
		' position:absolute; ' +
		' top:0;' +
		' width:'            + this.width   + '; ' +
		' background-Color:' + this.bgColor + '; ' +
		' visibility:hidden; z-Index:1"' +
		' onMouseOver="' + this.name + 'object.showMenu();"' +
		' onMouseOut="'  + this.name + 'object.hideMenu();">\n';
	for(var i = 0; i < this.items.length; i ++)
	{
		content +=
			' <A ID="' + this.name + 'item"' +
			' STYLE="' +
			' color:'     + this.fontColor + '; ' +
			' visibility:hidden; text-decoration:none; z-Index:2"' +
			' HREF="' + this.links[i] + '"' +
			' onMouseOver="' + this.name + 'object.onMenuItemOver(' + i + ');"' +
			' onMouseOut="'  + this.name + 'object.onMenuItemOut(' + i + ');">\n' +
			'<FONT SIZE="' + this.fontSize + '">' +
			this.items[i] + '<BR>\n' +
			'</FONT></A>\n';
	}
	content += '</DIV>\n';
	document.open("text/html");
	document.writeln(content);
	document.close();
}

/*
 * 共通メソッド群
 */

/* メニューを不可視状態にする（遅延時間付き） */
function hideMenu() {
	var hideObj = this.name + "object.hideMenuDelay();";
	this.timeOutId = setTimeout(hideObj,this.delay);
}

/* 項目の追加 */
function addMenuItem(itemname,itemlink) {

	this.items[this.items.length]	= itemname;
	this.links[this.links.length]	= itemlink;
	this.height += this.charPixelSize;
}
/* 入力チェック */
function cmvNumber(inText){
	txt = '0123456789０１２３４５６７８９';
	han = '01234567890123456789';
	return cmvCore(txt,han,inText);
}
function cmvCore(motoText,atoText,inText){
	str = "";
	for (i=0; i<inText.length; i++){
		c = inText.charAt(i);
		cnext = inText.charAt(i+1);
		n = motoText.indexOf(c,0);
		nnext = motoText.indexOf(cnext,0);
		if (n >= 0){
			c = atoText.charAt(n);
		}else{
			continue;
		}
		str += c;
	}
	return str;
}

function chkInput(){
	var NullSelect = "　";
	fOBJ = document.forms[0];

	// サービス概要取得
	var sPlan = fOBJ["サービス概要"].value;
	switch(sPlan){
	case "独自ドメイン申込（カード）":
	case "独自ドメイン申込（金融機関）":
		if (fOBJ["_希望ドメイン名2"].value == NullSelect){
			alert("ドメインの種類を選択して下さい");
			return false;
		}
		if (fOBJ["_希望年数"].value == NullSelect){
			alert("希望年数を選択して下さい");
			return false;
		}
		if(fOBJ["_希望ドメイン名2"].value == ".jp" ||
		fOBJ["_希望ドメイン名2"].value == ".co.jp" ||
		fOBJ["_希望ドメイン名2"].value == ".or.jp" ||
		fOBJ["_希望ドメイン名2"].value == ".gr.jp"){
			if(fOBJ["_希望年数"].value != "１年"){
				alert("このドメインは１年でのみ受け付けております\n（ドメインの契約は自動的に１年ずつ延長されます。）");
				return false;
			}
		}
		break;
	case "レンタルサーバー申込（カード）":
	case "レンタルサーバー申込（金融機関）":
		if (fOBJ["_使用ドメイン名2"].value == NullSelect){
			alert("ドメインの種類を選択して下さい");
			return false;
		}
		if (fOBJ["_コース"].value == NullSelect){
			alert("コースの種類を選択して下さい");
			return false;
		}
		break;
	default:
	}
	var uNumber = cmvNumber(fOBJ["_電話番号"].value);
	if (uNumber == ""){
		alert("電話番号を正確にご入力下さい。");
		return false;
	}
	if (uNumber.length < 9){
		alert("電話番号を正確にご入力下さい");
		return false;
	}
	var nHead = uNumber.substring(0,3);
	if ((nHead == "050") || (nHead == "090") || (nHead == "080") || (nHead == "070")){
		alert("電話番号には固定電話番号を入力して下さい(IP電話・携帯不可)。");
		return false;
	}

	if (fOBJ["所在地１ 都道府県"].value == NullSelect){
		alert("所在地を選択して下さい");
		return false;
	}
	if (fOBJ["カードの種類"].value == NullSelect){
		alert("カードの種類を選択して下さい");
		return false;
	}
	if (fOBJ["カード発行会社"].value == NullSelect){
		alert("カード発行会社を選択して下さい");
		return false;
	}
}

//-->
