
// Title: Timestamp picker
// Description: See the demo at url
// URL: http://us.geocities.com/tspicker/
// Script featured on: http://javascriptkit.com/script/script2/timestamp.shtml
// Version: 1.0
// Date: 12-05-2001 (mm-dd-yyyy)
// Author: Denis Gritcyuk <denis@softcomplex.com>; <tspicker@yahoo.com>
// Notes: Permission given to use this script in any kind of applications if
//    header lines are left unchanged. Feel free to contact the author
//    for feature requests and/or donations

function calAdultGFRIDMS() {
            pcr=document.calc.xcr.value;
            age=document.calc.age.value;
            if (document.calc.race[0].checked){
                        race  = document.calc.race[0].value;
            } else {
                        race  = document.calc.race[1].value;}
            if (document.calc.gender[0].checked){
                        gender  = document.calc.gender[0].value;
            } else {
                        gender  = document.calc.gender[1].value;}
            result =  Math.round((175*(Math.pow(pcr,-1.154))*(Math.pow(age,-0.203))*race*gender));
            if (result>60) {
             result='Above 60';
            }
            if (age<18) {
             result='N/A';
            }
            document.calc.result.value=result;
}



