/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function check_radio() {
        var len = document.f_radio.sport.length;
        var count = 0;
        for(i = 0; i < len; i++) {
            if(document.f_radio.sport[i].checked == false) {
               count++;
            }
        }
        if(len == count) {
            alert("請點選你所喜愛的運動");
            return false;
        }
        else {
            doucment.f_radio.submit();
        }
    }
