function check()
{
    var a01=document.up.mladdr.value
    var a02=0
    var i=0
    f=0
	ff=trim01(a01)
	if ( (document.up.mladdr.value != ff) && (f==0) ) {
		alert("スペースが含まれています")
		document.up.mladdr.value=ff
		document.up.mladdr.focus()
	} else {
        if (ff.length<1) {
            alert("メールアドレスを入力してください")
            document.up.mladdr.focus()
            f=1
            return "out"
        } else {
		if ( ff != "") {
			if ( aat == 0 ) {
				alert("@が含まれていません")
				document.up.mladdr.value=ff
				document.up.mladdr.focus()
			} else {
				if ( aat > 1 ) {
					alert("@が" + aat + "個含まれています")
					document.up.mladdr.value=ff
					document.up.mladdr.focus()
				} else {
					if ( pt == 0 ) {
						alert(". が含まれていません")
						document.up.mladdr.value=ff
						document.up.mladdr.focus()
					} else {
							document.up.action="backnumber.asp"
							document.up.submit()
						}
					}
				}
			}
		}
    }
}

function checkk(){
    var a01=document.up2.acount2.value
    var a02=0
    var a03=document.up2.domain2.selectedIndex;
    var a04=document.up2.domain2.options[a03].value;
    var i=0
    f=0

    if (a01.length>20) {
        alert("アカウントを20文字以内で入力してください")
        document.up2.acount2.value=a01.substring(0,20)
        document.up2.acount2.focus()
        f=1
        return "out"
    } else {
        if (a01.length<1) {
            alert("アカウントを1文字以上で入力してください")
            document.up2.acount2.focus()
            f=1
            return "out"
        } else {
            for (i=0; i<a01.length; i++) {
                if (!("a"<=a01.substring(i,i+1) && "z">=a01.substring(i,i+1))){
                    a02++
                    if (!("0"<=a01.substring(i,i+1) && "9">=a01.substring(i,i+1))){
                        if (!("-"==a01.substring(i,i+1))){
                                alert("使用できない文字 " + a01.substring(i,i+1) + " がふくまれています。")
                                document.up2.acount2.focus()
                                f=1
                                return "out"
                                break
                        }
                    }
                }
            }
        }
    }
	if ((a01.substring(0,1)=="-") && f==0){
		alert("- は、先頭には使えません。")
		document.up2.acount2.focus()
		f=1
		return "out"
	}

	if (f==0) {
		
		document.up2.action="/scripts/account_check_go.asp?ac=" + a01 + "&domain=" + a04 + "&syori=sub"
		document.up2.submit()

	}
}

function checkkt(){
    var a01=document.up1.acount1.value
    var a02=0
    var a03=document.up1.domain1.selectedIndex;
    var a04=document.up1.domain1.options[a03].value;
    var i=0
    f=0

    if (a01.length>20) {
        alert("アカウントを20文字以内で入力してください")
        document.up1.acount1.value=a01.substring(0,20)
        document.up1.acount1.focus()
        f=1
        return "out"
    } else {
        if (a01.length<1) {
            alert("アカウントを1文字以上で入力してください")
            document.up1.acount1.focus()
            f=1
            return "out"
        } else {
            for (i=0; i<a01.length; i++) {
                if (!("a"<=a01.substring(i,i+1) && "z">=a01.substring(i,i+1))){
                    a02++
                    if (!("0"<=a01.substring(i,i+1) && "9">=a01.substring(i,i+1))){
                        if (!("-"==a01.substring(i,i+1))){
                                alert("使用できない文字 " + a01.substring(i,i+1) + " がふくまれています。")
                                document.up1.acount1.focus()
                                f=1
                                return "out"
                                break
                        }
                    }
                }
            }
        }
    }
	if ((a01.substring(0,1)=="-") && f==0){
		alert("- は、先頭には使えません。")
		document.up1.acount1.focus()
		f=1
		return "out"
	}

	if (f==0) {
		
		nwin=window.open("/scripts/account_check_go.asp?ac=" + a01 + "&domain=" + a04 + "&syori=top","","width=570,height=580")
		//document.up1.action="/scripts/account_check_go.asp?ac=" + a01 + "&domain=" + a04
		//document.up1.submit()

	}
}

function window1(){ 
	nwin=window.open("/scripts/accountprice.asp","","width=450,height=590,scrollbars=1")
}

function window2(){ 
	//nwin=window.open("/scripts/accountyoyaku.asp","","width=500,height=400,scrollbars=1")
	document.up.action="/scripts/yoyaku.asp"
	document.up.submit()
}

function PA1(p1){ window.open(p1,"right") };



