function SubmitToNext(){
var strError = ValidateFrmType()
var IsChecked = ValidateChecked()
if (IsChecked && strError.length < 1){
//No errors, submit the form
document.forms["faqInfo"].action="/solutions/faq/faq.aspx"
document.forms["faqInfo"].submit()
}
else{
if (!IsChecked) strError = strError + "\tSelect one or more category checkboxes\n"
strError="Please correct the following errors before continuing:\n" + strError
alert(strError)
}
}
function Pick4(){
if (document.forms["faqInfo"].ckbxall.checked==true){
document.forms["faqInfo"].ckbxtoppings.checked=true
document.forms["faqInfo"].ckbxplastics.checked=true
document.forms["faqInfo"].ckbxforms.checked=true
document.forms["faqInfo"].ckbxgeneral.checked=true
}
else{
document.forms["faqInfo"].ckbxtoppings.checked=false
document.forms["faqInfo"].ckbxplastics.checked=false
document.forms["faqInfo"].ckbxforms.checked=false
document.forms["faqInfo"].ckbxgeneral.checked=false
}
}
function ValidateFrmType(){
var str = ""
if(!document.forms["faqInfo"].frmtype.value){
var selectIdx = document.forms["faqInfo"].frmtype.selectedIndex
str = document.forms["faqInfo"].frmtype.options[selectIdx].value
}
else str = document.forms["faqInfo"].frmtype.value
if (str.length < 1){
document.forms["faqInfo"].frmtype.focus()
var strInvalidQuestionText = "\tSelect a customer type\n"
return strInvalidQuestionText
}
return ""
}
function ValidateChecked(){
if (document.forms["faqInfo"].ckbxtoppings.checked) return true
if (document.forms["faqInfo"].ckbxplastics.checked) return true
if (document.forms["faqInfo"].ckbxforms.checked) return true
if (document.forms["faqInfo"].ckbxgeneral.checked) return true
return false
}