function ValidatePForm() {




	//Company Name
	if (document.forms.pricing.pi_code.value=='0') {
		alert("Error: Please select a subscription category.");
		document.forms.pricing.pi_code.focus();
		return false;
	}


	if (document.forms.pricing.email.value=='') {
		alert("Error: Please type in your email address.");
		document.forms.pricing.email.focus();
		return false;
	}

	checkEmail = document.pricing.email.value;
	if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))  {
		alert("Error: Please enter a valid email address.");
		document.pricing.email.focus();
		//window.location = '#strEmail';
		return false;
	}


	if (document.forms.pricing.username.value=='') {
		alert("Error: Please type in a username to access the site.");
		document.forms.pricing.username.focus();
		return false;
	}


	var valid = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
	var ok = "yes";
	var temp;

	for (var i=0; i<document.pricing.username.value.length; i++) {
	temp = "" + document.pricing.username.value.substring(i, i+1);
	if (valid.indexOf(temp) == "-1") ok = "no";
	}
	if (ok == "no") {
			alert("Error: Please enter a valid username.\r\nThe username can contain only letters and/or numbers and should be 4-16 characters long.");
			document.pricing.username.focus();
			return false;
}

if (document.forms.pricing.password.value=='') {
		alert("Error: Please type in a valid password");
		document.forms.pricing.password.focus();
		return false;
	}

if (document.forms.pricing.username.value == document.forms.pricing.password.value) {
	alert("Error: Please type a valid password (must be different to the username)");
	document.forms.pricing.password.focus();
	return false;
}

var valid = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
	var ok = "yes";
	var temp;

	for (var i=0; i<document.pricing.password.value.length; i++) {
	temp = "" + document.pricing.password.value.substring(i, i+1);
	if (valid.indexOf(temp) == "-1") ok = "no";
	}
	if (ok == "no") {
			alert("Error: Please enter a valid password.\r\nThe password can contain only letters and/or numbers and should be 4-16 characters long.");
			document.pricing.password.focus();
			return false;
}



if (document.forms.pricing.password.value!=document.forms.pricing.rpassword.value) {
		alert("Error: Password don't match.");
		document.forms.pricing.password.focus();
		return false;
	}

	if (document.forms.pricing.fname.value=='') {
		alert("Error: Please type in your full name.");
		document.forms.pricing.fname.focus();
		return false;
	}

	if (document.forms.pricing.addl1.value=='') {
		alert("Error: Please enter your address.");
		document.forms.pricing.addl1.focus();
		return false;
	}

	if (document.forms.pricing.city.value=='') {
		alert("Error: Please type in your City / Town.");
		document.forms.pricing.city.focus();
		return false;
	}

	if (document.forms.pricing.state.value=='') {
		alert("Error: Please type in your State / County.");
		document.forms.pricing.state.focus();
		return false;
	}

	if (document.forms.pricing.country.value==0) {
		alert("Error: Please choose your country.");
		document.forms.pricing.country.focus();
		return false;
	}

	if (document.forms.pricing.postcode.value=="") {
		alert("Error: Please type in your postcode.");
		document.forms.pricing.postcode.focus();
		return false;
	}


	//submit form
	
	return true;
}

function reminder() {
	popup = window.open("reminder.html", "", "width=340,height=195");
}