function termpopup() { 
	window.open("terms.htm","windowname","width=400,height=500, screenX=340,left=340,screenY=180,top=180,resizable=no, toolbar=no,status=no,menubar=no,scrollbars=yes"); 
}
	
function privacypopup() {
	window.open("privacy.htm","windowname","width=400,height=500, screenX=340,left=340,screenY=180,top=180,resizable=no, toolbar=no,status=no,menubar=no,scrollbars=yes"); 
}
	
	
function radvalue(radIndex, interval) {
	document.getElementById('a3').value = radIndex + '.00';
	document.getElementById('t3').value = interval;
}
	
function readmore() {
	document.getElementById("part2").style.display = "block";
	document.getElementById("part1").style.display = "none";
}
	
	
	
	
	
	
	
	
	
	
	
function validate() {
	
	var theMessage = "Please complete the following: \n-----------------------------------\n";
	var noErrors = theMessage
	
	// make sure field is not blank
	if (document.form1.name.value=="") {
	theMessage = theMessage + "\n --> Your name";
	}
	
	// validate an e-mail address
	if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.form1.emailaddress.value)){
	theMessage = theMessage + "\n --> A valid e-mail address";
	}
	
	// make sure field is not blank
	if (document.form1.telephone.value=="") {
	theMessage = theMessage + "\n --> Your telephone number";
	}
	
	var radioCheck = false;
	for (i = 0; i < document.form1.package.length; i++) {
	if (document.form1.package[i].checked)
	radioCheck = true; }
	if (!radioCheck) {
	theMessage = theMessage + "\n --> Choose your preferred service";
	}
	
	var boxCheck = false;
	if (document.form1.confirm.checked) {
	boxCheck = true; }
	if (!boxCheck) {
	theMessage = theMessage + "\n --> Agree to the terms";
	}
	
	// If no errors, submit the form
	if (theMessage == noErrors) {
	return true;
	  
	} else {
	
	// If errors were found, show alert message
	alert(theMessage);
	return false;
	}
}

