


function setDefault(box){

        if(box.name=="correctional_billerName" && box.value!=0){
		document.QCOptionsActionForm["auto_billerName"].value="";
		document.QCOptionsActionForm["mortgage_billerName"].value="";
		document.QCOptionsActionForm["other_billerName"].value="";
	}

}

function qcCorrectionalSubmit(){

	
	if (validateQCCorrectionalActionForm(document.QCCorrectionalActionForm)==false){	
					return;
	}

	document.QCCorrectionalActionForm.action="QCCorrectionalAction.do?method=save"	
	document.QCCorrectionalActionForm.submit();
	
}
function onSubmit(){

var existingUser;
	var error=false;
	refreshScreen();
	if(document.QCCorrectionalActionForm["flag"]!=null){
	if(document.QCCorrectionalActionForm["flag"].value=='false'){
		if(document.getElementById("newCustomer1").checked == false && document.getElementById("retCustomer1").checked == false){
			document.getElementById("existingUserFlag_e").style.display = "block";
			error=true;
			}else{
				document.getElementById("existingUserFlag_e").style.display = "none";
			}
		}
	}
	if (validateQCCorrectionalActionForm(document.QCCorrectionalActionForm)){	
	if(!error){
		document.QCCorrectionalActionForm.action="QCCorrectionalAction.do?method=save"	
		document.QCCorrectionalActionForm.submit();
	}
	}
	else{
	return;
	}
}

function showTable(boxid){
   document.getElementById(boxid).style.display = "block";
}
 
function hideTable(boxid){
   document.getElementById(boxid).style.display = "none";
}
function refreshCaptchaSubmit(){
	
		if (validateQCCorrectionalActionForm(document.QCCorrectionalActionForm)==false){
			if((document.QCCorrectionalActionForm["existingUserFlag"]!=null)&&(document.QCCorrectionalActionForm["existingUserFlag"].value=="false")){
			document.getElementById("imagecpt").src="captcha?" + Math.random();
			}
		}
}
function clearValues()
{
	if(null!=document.QCCorrectionalActionForm["signinVO.userName"])
		document.QCCorrectionalActionForm["signinVO.userName"].value="";
	if(null!=document.QCCorrectionalActionForm["signinVO.password"])
		document.QCCorrectionalActionForm["signinVO.password"].value="";
	if(null!=document.QCCorrectionalActionForm["signinVO.captchaSecurityCode"])
		document.QCCorrectionalActionForm["signinVO.captchaSecurityCode"].value="";
}
