/* Treg.cfm scripts */
function validateCompetitive() {
if(document.teamReg.challengeID.value == 1) {
document.teamReg.competitive[0].checked = true
}
}

/*tregComplete scripts */
function validatePayMethod() {
if(document.regComplete.InvReq.checked == true){
document.regComplete.payMethod[2].checked=true
document.regComplete.billingName.focus()
}
}

/* Generic scripts */
function popUp3(page) { openDisplay=window.open(page,'','toolbar=no,scrollbars,resizable,menubar=no,status=no,directories=no,location=no,top=250,left=250,width=300,height=300')
}

function popUp5(page) { openDisplay=window.open(page,'','toolbar=no,scrollbars,resizable,menubar=no,status=no,directories=no,location=no,top=250,left=250,width=1000,height=500')
}

/* textarea counter */
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}
// End -->
