/********************************************
*	Author: Katrina Roan
*	Company: dbTech.net
*	Date: 4/27/2006
*	filename: funcs.js
*/
/********************************************************************************************/
function checkconditional(fieldvalue){
		if(fieldvalue=="on")
	{
		
		document.getElementById("conditional").style.display = "block";
	}
	else if (fieldvalue=="off")
	{
		document.getElementById("conditional").style.display = "none";
	}
		
}
/********************************************************************************************/
function toggleErrorMsgs(){
	document.getElementById("generalErr").style.display = "none";
	var x = 1;
	do{
		document.getElementById("err"+x).style.display = "none";
		x++;
	}while(document.getElementById("err"+x));
}
/********************************************************************************************/
/********************************************************************************************/
/********************************************************************************************/
/********************************************************************************************/
/********************************************************************************************/
/********************************************************************************************/
/********************************************************************************************/
/********************************************************************************************/
/********************************************************************************************/
/********************************************************************************************/
/*
function checkRecords(theForm){
	toggleErrorMsgs();
	var count = 0;
	
	if (count > 0) {
		document.getElementsByName("generalErr")[0].style.display = "block";
		alert("You have not completed a Required Field.");
		return false;
    }
	return true;
}
function checkWholeForm(theForm) {
    var why = "";
    why += checkEmail(theForm.email.value);
    why += checkPhone(theForm.phone.value);
    why += checkPassword(theForm.password.value);
    why += checkUsername(theForm.username.value);
    why += isEmpty(theForm.notempty.value);
    why += isDifferent(theForm.different.value);
    for (i=0, n=theForm.radios.length; i<n; i++) {
        if (theForm.radios[i].checked) {
            var checkvalue = theForm.radios[i].value;
            break;
        } 
    }
    why += checkRadio(checkvalue);
    why += checkDropdown(theForm.choose.selectedIndex);
    if (why != "") {
       alert(why);
       return false;
    }
return true;
}
*/