function CheckBirthDateNew(birthMM,birthDD,birthYYYY,birthDate){var strBirthMonth,strBirthDay,strBirthYear;if(window.document.getElementById(birthMM)==null){birthDate=new Date(birthDate);strBirthMonth=birthDate.getMonth();strBirthDay=birthDate.getDate();strBirthYear=birthDate.getFullYear()}else{strBirthMonth=window.document.getElementById(birthMM).value;strBirthDay=window.document.getElementById(birthDD).value;strBirthYear=window.document.getElementById(birthYYYY).value}if(strBirthYear==""||strBirthYear=="Year"||strBirthMonth==""||strBirthDay==""){HideGuardian();return}var today=new Date,coppaYear=today.getFullYear()-13,coppaMonth=today.getMonth()+1,coppaDay=today.getDate();if(strBirthYear<coppaYear)HideGuardian();else if(strBirthYear>coppaYear)ShowGuardian();else if(strBirthMonth<coppaMonth)HideGuardian();else if(strBirthMonth>coppaMonth)ShowGuardian();else if(strBirthDay<=coppaDay)HideGuardian();else ShowGuardian();return}function HideGuardian(){if(window.document.getElementById("GUARDIAN")!=null)window.document.getElementById("GUARDIAN").style.display="none"}function ShowGuardian(){if(window.document.getElementById("GUARDIAN")!=null)window.document.getElementById("GUARDIAN").style.display="block"}function checkAdditionalPhone(strFormID,intDivs){if(window.document.getElementById("ADDPHONENBR"+strFormID+"ID")!=null)if(window.document.getElementById("ADDPHONENBR"+strFormID+"ID").checked==true)ShowPhone(strFormID,intDivs);else HidePhone(strFormID,intDivs)}function ShowPhone(strFormID,intDivs){for(idx=1;idx<=intDivs;idx++){window.document.getElementById("PHONELABEL"+strFormID+String(idx)).style.display="block";window.document.getElementById("PHONEERRORS"+strFormID+String(idx)).style.display="block"}}function HidePhone(strFormID,intDivs){for(idx=1;idx<=intDivs;idx++){window.document.getElementById("PHONELABEL"+strFormID+String(idx)).style.display="none";window.document.getElementById("PHONEERRORS"+strFormID+String(idx)).style.display="none"}}function checkAltGuardian(strFormID,strSection,intDivs){if(window.document.getElementById("ALTGUARDIAN"+strFormID+"ID")!=null)if(window.document.getElementById("ALTGUARDIAN"+strFormID+"ID").checked==true){window.document.getElementById("ADDPHONENBRALTGADDB"+strSection+"ID").checked==true&&ShowPhone("ALTGADDB"+strSection,intDivs);window.document.getElementById("ADDPHONE"+strFormID).style.display="block";window.document.getElementById("GUARDIANNAME"+strFormID).style.display="block";for(idx=1;idx<=intDivs;idx++)if(window.document.getElementById("PHONE"+strFormID+String(idx))!=null){window.document.getElementById("PHONE"+strFormID+String(idx)).style.display="block";window.document.getElementById("PHONEERRORS"+strFormID+String(idx)).style.display="block"}}else{HidePhone("ALTGADDB"+strSection,intDivs);window.document.getElementById("ADDPHONE"+strFormID).style.display="none";window.document.getElementById("GUARDIANNAME"+strFormID).style.display="none";for(idx=1;idx<=intDivs;idx++)if(window.document.getElementById("PHONE"+strFormID+String(idx))!=null){window.document.getElementById("PHONE"+strFormID+String(idx)).style.display="none";window.document.getElementById("PHONEERRORS"+strFormID+String(idx)).style.display="none"}}}
