/********************************************
FORM VALIDATION - JOIN RV CARE
********************************************/

function member(rvcare) { 
// DOM references in one location
// document . name of the form . name of the value . and value 

var agree = rvcare.agree.checked;

var error = "";

// if terms and conditions is not selected, display error 
if (agree == false) {
	error = error + "You need to accept the terms and conditions \n";
	}
if (error !="") {
    alert (error);
    return false ;
  }
  	else {
  	return true;
  	}
}

function checkIfTicked()
{
	if(document.getElementById("agree").checked == true)
		window.open("_pdfs/SFI_SWE_Breeding_Venture.pdf");
	else
		alert("You need to accept the terms and conditions");
}

function checkIfTicked2()
{
	if(document.getElementById("agree2").checked == true)
		document.location.href = "rvcareForm.asp";
	else
		alert("You need to accept the terms and conditions");
}
