	function check_loginformt() {
		login 	 = document.formt.login.value;
		password = document.formt.password.value;
		
		if( login == '' ) {
			alert("請輸入帳號");
			return false;
		} else if( password == '' ) {
			alert("請輸入密碼");
			return false;
		} else {
			return true;
		}
	}

	function check_hypocorismformt() {
		hypocorism = document.hypocorismformt.hypocorism.value;
		if( hypocorism == '' ) {
			alert("請輸入暱稱！");
			return false;
		} else if( hypocorism.length > 7 ) {	
		 	alert("暱稱長度7個字以內，請重新修改！");
		 	return false;
		} else {
			return true;
		}
	
	}

	
	function preview(CHID,BOOKID) {
		//gpWindowOpen("/tool/girl_arms_plugin.jsp?CO="+CHID+"&BookID="+BOOKID+"&Flag=2&dir=normal&CT=IF",'_bland','width=170,height=520');
		window.open("/tool/girl_arms_plugin.jsp?CO="+CHID+"&BookID="+BOOKID+"&Flag=2&dir=normal&CT=IF", "WP1", 'width=170,height=520');
	}
	
	function openWindowMessage( bookid ) {
		gpWindowOpen('/tool/ga_comment2.jsp?BookID='+bookid,'_blank','width=650,height=450,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');		
	}
	
	
 	function show_download_code() {
		document.getElementById('download_code').style.display = '';
	}

	
	function Submit_to(){
		DIMINUTIVE = document.form.diminutive.value;
		ANIMADVERSION = document.form.animadversion.value;		
		if( DIMINUTIVE.length > 5 ) {
			alert("暱稱長度5個字以內");
			return false;
		} else if( DIMINUTIVE.length == 0 ) {
			alert("請輸入暱稱");
			return false;
		} else if( ANIMADVERSION.length == 0 ) {
			alert("請輸入評語");
			return false;
		} else if( ANIMADVERSION.match("href") != null || ANIMADVERSION.match("http") != null ) {
			alert("請勿輸入Html語法");
			return false;			
		} else if( ANIMADVERSION.length > 30 ) {
			alert("評語字數30字以內");
			return false;
		} else {
			return true;			
		}		
	}
