function isValidSignup() {
	var toReturn = true;
	
	if (toReturn) toReturn = txtCheck(dashform.txtFirstName);
	if (toReturn) toReturn = txtCheck(dashform.txtSurname);
	if (toReturn) toReturn = txtCheck(dashform.txtPhoneIntCode);
	if (toReturn) toReturn = txtCheck(dashform.txtPhoneAreaCode);
	if (toReturn) toReturn = txtCheck(dashform.txtPhone);
	if (toReturn) toReturn = txtCheck(dashform.txtEmail);
	if (toReturn) toReturn = emailCheck(dashform.txtEmail);
	if (toReturn) toReturn = txtCheck(dashform.txtEmailRepeat);
	if (toReturn) toReturn = emailCheck(dashform.txtEmailRepeat);
	if (toReturn) {
		if (dashform.txtEmail.value != dashform.txtEmailRepeat.value) {
			alert("Please retype email address: The email addresses does not match");
			dashform.txtEmailRepeat.focus();
			toReturn = false;
		}
	}
	if (toReturn) toReturn = txtCheck(dashform.txtUsername);
	if (toReturn) toReturn = txtCheck(dashform.txtPassword);
	if (toReturn) toReturn = checkMinLen(dashform.txtPassword,4);
	if (toReturn) toReturn = txtCheck(dashform.txtPasswordRepeat);
	if (toReturn) toReturn = checkMinLen(dashform.txtPasswordRepeat,4);
	if (toReturn) {
		if (dashform.txtPassword.value != dashform.txtPasswordRepeat.value) {
			alert("Please retype password: The passwords does not match");
			dashform.txtPasswordRepeat.focus();
			toReturn = false;
		}
	}
	
	if (toReturn && dashform.rbCompany.checked) toReturn = txtCheck(dashform.txtPhyCompanyName);
	if (toReturn) toReturn = txtCheck(dashform.txtPhyAdd2);
	if (toReturn) toReturn = txtCheck(dashform.txtPhyAdd4);
	if (toReturn) toReturn = txtCheck(dashform.txtPhyAdd5);
	if (toReturn) toReturn = txtCheck(dashform.txtPhyAdd6);
	if (toReturn) {
		if (parseInt(dashform.drpCountryPhysical.value) < 0) {
			alert("Please select a country for the physical address from the dropdownlist provided.");
			dashform.drpCountryPhysical.focus();
			toReturn = false;
		}
	}
	
	if (toReturn && !dashform.chkPostalSame.checked) {
		if (toReturn) toReturn = txtCheck(dashform.txtPostalAdd1);
		if (toReturn) toReturn = txtCheck(dashform.txtPostalAdd2);
		if (toReturn) toReturn = txtCheck(dashform.txtPostalAdd3);
		if (toReturn) {
			if (parseInt(dashform.drpCountryPostal.value) < 0) {
				alert("Please select a country for the postal address from the dropdownlist provided.");
				dashform.drpCountryPostal.focus();
				toReturn = false;
			}
		}
	}
	
	if (toReturn) {
		if (parseInt(dashform.drpAdminArea.value) < 0) {
			alert("Please select a S.POD office from the dropdown provided.");
			dashform.drpAdminArea.focus();
			toReturn = false;
		}
	}
	if (toReturn) toReturn = txtCheck(dashform.txtConfirmationCode);
	//Terms
	if (toReturn && !dashform.chkReadTerms.checked) {
		dashform.chkReadTerms.focus();
		alert("Please read the terms & conditions before submitting.");
		toReturn = false;
	}
	
	return toReturn;
}

function isValidResend() 
{
	var toReturn = true;

	if (toReturn) toReturn = txtCheck(dashform.txtEmailRequest);
	if (toReturn) toReturn = emailCheck(dashform.txtEmailRequest);
	
	return toReturn;
}

function disable(txt,b) {
	txt.disabled = b;
}

