function chk_data() {
 if ( login_form.c_id.value == "" || login_form.c_id.value == " " || login_form.c_id.value == "  ") {
                alert("Please fill your id.");
                login_form.c_id.focus();
        } else if ( login_form.c_pwd.value == "" || login_form.c_pwd.value == " " || login_form.c_pwd.value == "  ") {
                alert("Please fill your password.");
                login_form.c_pwd.focus();
        } else  {
                return true;
        }
        return false;
}


function chk_cdata() {
 if ( contact_form.f_name.value == "" || contact_form.f_name.value == " " || contact_form.f_name.value == "  ") {
                alert("Please fill your first name.");
                contact_form.f_name.focus();
        } else if ( contact_form.s_name.value == "" || contact_form.s_name.value == " " || contact_form.s_name.value == "  ") {
                alert("Please fill your surname.");
                contact_form.s_name.focus();
        } else if ( contact_form.email.value == "" ||  contact_form.email.value.indexOf == -1 ){
                alert("Please fill your e-mail.");
                contact_form.email.focus();
        } else if ( contact_form.email.value == "@goodearth.com.tw" ){
                alert("Please correct your e-mail.");
                contact_form.email.focus();
		} else if ( contact_form.email.value == "" || ( contact_form.email.value.indexOf('@',0) == -1 || contact_form.email.value.indexOf('.',0) == -1 )) {
                alert("Your e-mail is illegal.");
                contact_form.email.focus();
        } else if ( contact_form.country.value == "" || contact_form.country.value == " " || contact_form.country.value == "  ") {
                alert("Please fill your country.");
                contact_form.country.focus();
        } else if ( contact_form.infor.value == "" || contact_form.infor.value == " " || contact_form.infor.value == "  ") {
                alert("Please fill your information.");
                contact_form.infor.focus();
        } else  {
                return true;
        }
        return false;
}
