<!-- Begin

function popReg(url,width,height) {
	RegWin = window.open(url, "helpWin", "width=" + width + ",height=" + height + ",toolbars=no,resizable=no,status=no,scrollbars=no,scrolling=no");
}

function popHelp(url) {
	var width = 350;
	var height = 300;
	helpWin = window.open(url, "helpWin", "width=" + width + ",height=" + height + ",toolbars=no,resizable=no,status=no,scrollbars=yes,scrolling=yes");
}

function popUp(strURL,strType,strHeight,strWidth) {
var strOptions="";
if (strType=="console") strOptions="scrollbars,resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
window.open(strURL, 'newWin', strOptions);
}

function verify() {

	re=/^[a-zA-Z\_]*$/;
	reg=/^[a-zA-Z\_ ]*$/;
	regan=/^[a-zA-Z\_ 0-9]*$/;
	var passwordmaxlength=6
	var themessage = "The following fields are required/incorrect: \n";

	if (document.form.firstname.value=="") {
		themessage = themessage + " - First Name\n";
	} else if (!re.exec(document.form.firstname.value)) {
		themessage = themessage + " -  First Name: Invalid Character Found!\n";
	}
	if (document.form.lastname.value=="") {
		themessage = themessage + " -  Last Name\n";
	} else if (!re.exec(document.form.lastname.value)) {
		themessage = themessage + " -  Last Name: Invalid Character Found!\n";
	}
	if (document.form.registrant.value=="") {
		themessage = themessage + " -  Registrant Name\n";
	} else if (!reg.exec(document.form.registrant.value)) {
		themessage = themessage + " -  Registrant: Invalid Character Found!\n";
	}
	if (document.form.address1.value=="") {
		themessage = themessage + " -  Address\n";
	} else if (!regan.exec(document.form.address1.value)) {
		themessage = themessage + " -  Address: Invalid Character Found!\n";
	}
	if (document.form.city.value=="") {
		themessage = themessage + " -  City\n";
	} else if (!re.exec(document.form.city.value)) {
		themessage = themessage + " -  City: Invalid Character Found!\n";
	}
	if (document.form.postcode.value=="") {
		themessage = themessage + " -  Postal Code\n";
	}
	if (document.form.country.value=="") {
		themessage = themessage + " -  Country\n";
	} else if (!re.exec(document.form.country.value)) {
		themessage = themessage + " -  Country: Invalid Character Found!\n";
	}
	if (document.form.phone.value=="") {
		themessage = themessage + " -  Telephone Number\n";
	}
	if (document.form.email.value=="") {
		themessage = themessage + " -  Email\n";
	} else if ((document.form.email.value.indexOf('@') == -1) || (document.form.email.value.indexOf('.') == -1)) {
		themessage = themessage + " -  Email: Please enter correct email address!\n";
	}
	if (document.form.password.value=="") {
		themessage = themessage + " -  Password";
	} else if ((document.form.password.value.length > passwordmaxlength) || (document.form.password.value.length < passwordmaxlength)){
		themessage = themessage + " - Password: Please enter 6 characters!";
	}
	//alert if fields are empty and cancel form submit
	if (themessage == "The following fields are required/incorrect: \n") {
		document.form.submit();
	}
	else {
		alert(themessage);
		return false;

	}
}


function SymError()
{
  return true;
}
window.onerror = SymError;

function SymWinOpen(url, name, attributes)
{
  return (new Object());
}

// stop hiding -->

