function validateForm(Country) {
	var x = document.forms["player"]["Firstname"].value;
	var errors = "";

	var myRegxp = /www/;


	if (x == null || x == "") {
		errors = "First name must be filled out\n";
	}

	x = document.forms["player"]["Lastname"].value;
	if (x == null || x == "") {
		errors = errors + "Last name must be filled out\n";
	}
	
	if (Country == "Northern Ireland" || Country == "England"
			|| Country == "Scotland" || Country == "Wales") {
		x = document.forms["player"]["BTCBInsurance"].value;
		if (x == null || x == "") {
			errors = errors + "BTCB Number must be filled out\n";
		}
		var BTCBRegExp = /^(M|m)([0-9]{5,6})$/;
		
		if (x != null && x != "") {
			
			if (!BTCBRegExp.test(x)) {
				errors = errors
						+ "BTCB Number is not in a Valid format, e.g M123456\n";
			}
		}

		x = document.forms["player"]["BTCNumber"].value;
		if (x == null || x == "") {
			errors = errors + "BTC Number must be filled out\n";
		}
		var BTCRegExp = /^(A|a)([0-9]{6})$/;
		
		if (x != null && x != "") {
			
			if (!BTCRegExp.test(x)) {
				errors = errors
						+ "BTC Number is not in a Valid format, e.g A123456\n";
			}
		}
	}

	if (errors != "") {
		alert(errors);
		return false;
	}
}


function popitup(url) {
	newwindow=window.open(url,'name','height=400,width=400');
	if (window.focus) {newwindow.focus();}
	return false;
}

function areYouSure()
{
	var yn=confirm("Are you sure you wish to Delete?");
	if(yn)
	{
		return true;
	}
	else
	{
		return false;
	}
}

