function join_list(theForm) {	window.open('http://www.therockacrossaustralia.com/cgi-bin/logmailinglistjoin.pl?name=' + theForm.name.value + '&email=' + theForm.email.value + '&list=' + theForm.list.value, 'Join Mailing List', 'scrollbars,height=300,width=400');}// Copyright © 2001 by Apple Computer, Inc., All Rights Reserved.//// You may incorporate this Apple sample code into your own code// without restriction. This Apple sample code has been provided "AS IS"// and the responsibility for its operation is yours. You may redistribute// this code, but you are not permitted to redistribute it as// "Apple sample code" after having made changes.// emailfunction checkEmail (strng) {var error="";if (strng == "") {   error = "You didn't enter an email address.\n";}    var emailFilter=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;    if (!(emailFilter.test(strng))) {        error = "Please enter a valid email address.\n";    }    else {//test email for illegal characters       var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/         if (strng.match(illegalChars)) {          error = "The email address contains illegal characters.\n";       }    }return error;    }// exactly one radio button is chosenfunction checkRadio(checkvalue) {var error = "";   if (!(checkvalue)) {       error = "Please check a radio button.\n";    }return error;}function checkWholeForm(theForm) {    var why = "";    var spacechars= / /	var name = theForm.name.value;	var email = theForm.email.value;	 	  if (name == "") {    alert("Please fill in your first and last names.");    //theForm.name.focus();    return false;  }   if (!name.match(spacechars)) {    alert("Please fill in BOTH your first and last names.");    //theForm.name.focus();    return false;  }why += checkEmail(theForm.email.value);  	if (why != "") {   		alert(why);      	return false;    }return true;}