// JavaScript Document

function validatereg () {
	Regform = document.getElementById("agreeid");
	if (Regform.checked != true) {
		alert("You must agree the registration's rules!");
		return false;
	}
	return true;
}

function showstate () {
	Country = document.getElementById("countryid");
	tr = document.getElementById("trstateid");
	if ( (Country.value == "United States") || (Country.value == "Canada") ) tr.style.display = "";
	else tr.style.display = "none";
}

function changecheckbox () {
	Picforminput = document.getElementById("picform").getElementsByTagName("input");
	for (a = 0; a <= Picforminput.length; a++) {
		if (Picforminput[a].type == "checkbox") {
			Picforminput[a].checked = !Picforminput[a].checked;
		}
	}
}

document.oncontextmenu=new Function("return false");

