function showMemberID() {

		msgText = "";
		msgText += "Your STC member ID number is a five-digit number. ";
		msgText += "This number can be obtained from your STC membership ";
		msgText += "card, or from the label of any information mailed to ";
		msgText += "you from STC International.";
		alert(msgText); 

}

function gotoBallot() {

	token = formHomePage.member_id.value;
	if ( token == "" ) {
		alert("Missing STC member ID number. Type your STC member ID number in the box, then click Go to Ballot.");
		return false;
	}

	location.href="http://www.surveymonkey.com/s.aspx?sm=Pf3quzImxWih2G0j7ouKHw_3d_3d&c=" + token;

}


function joinList(formJoinList) {

	regx = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/

	if ( formJoinList.emailFirstName.value == "") {
		alert("EFFORT FAILED! You did not type a name in the First Name and Initial box.");
		formJoinList.emailFirstName.focus();
		return false;
	}

	if ( formJoinList.emailLastName.value == "") {
		alert("EFFORT FAILED! You did not type a name in the Last Name box.");
		formJoinList.emailLastName.focus();
		return false;
	}

	if ( formJoinList.emailAddress.value == "" ) {
		alert("EFFORT FAILED! You did not type an e-mail address in the E-Mail Address box.");
		formJoinList.emailAddress.focus();
		return false;
	}
	
	if ( regx.test(formJoinList.emailAddress.value)) {
		formJoinList.emailAddress.focus();
		return true;
	}
		alert("EFFORT FAILED! Invalid e-mail address format. Please check the e-mail address and try again.");
		formJoinList.emailAdress.focus();
		return false;


}


function subResume(formSubmitResume) {

	regx = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/

	if ( formSubmitResume.resFullName.value == "") {
		alert("EFFORT FAILED! You did not type your full name in the Full Name box.");
		formSubmitResume.resFullName.focus();
		return false;
	}

	if ( formSubmitResume.resEMailAddress.value == "" ) {
		alert("EFFORT FAILED! You did not type an e-mail address in the E-Mail Address box.");
		formSubmitResume.resEMailAddress.focus();
		return false;
	}
	
	if ( formSubmitResume.resSummary.value == "" ) {
		alert("EFFORT FAILED! You did not type any summary text in the Summary box.");
		formSubmitResume.resSummary.focus();
		return false;
	}

	if ( formSubmitResume.resURL.value == "" ) {
		alert("EFFORT FAILED! You did not specify a Web site address (URL) where your resume is located.");
		formSubmitResume.resURL.focus();
		return false;
	}

	if ( formSubmitResume.resURL.value == "http://" ) {
		alert("EFFORT FAILED! You did not specify a Web site address (URL) where your resume is located.");
		formSubmitResume.resURL.focus();
		return false;
	}

	
	if ( regx.test(formSubmitResume.resEMailAddress.value)) {
		formSubmitResume.resEMailAddress.focus();
		return true;
	}
		alert("EFFORT FAILED! Invalid e-mail address format. Please check the e-mail address and try again.");
		formSubmitResume.resEMailAddress.focus();
		return false;

}


function postJob(formPostJob) {

	if ( formPostJob.posterName.value == "" ) {
		alert("ERROR! You did not type a name in the Your Name (Full Name) box. This information is required.");
		formPostJob.posterName.focus();
		return false;
	}

	if ( formPostJob.posterEmailAddr.value == "" ) {
		alert("ERROR! You did not type an e-mail address in the Your E-Mail Address box. This information is required.");
		formPostJob.posterEmailAddr.focus();
		return false;
	}

	if ( formPostJob.posterAgency.value == "" ) {
		alert("ERROR! You did not type a company or agency name in the Company/Agency Name box. This information is required.");
		formPostJob.posterAgency.focus();
		return false;
	}

	if ( formPostJob.jobtitle.value == "" ) {
		alert("ERROR! You did not type a job title in the Job Title box. This information is required.");
		formPostJob.jobtitle.focus();
		return false;
	}

	if ( formPostJob.salaryrate.value == "" ) {
		alert("ERROR! You did not specify a salary or hourly rate in the Salary/Rate box. This information is required.");
		formPostJob.salaryrate.focus();
		return false;
	}

	if ( formPostJob.jobdescription.value == "" ) {
		alert("ERROR! You did not indicate the job description in the Job Description text area. This information is required.");
		formPostJob.jobdescription.focus();
		return false;
	}

	if ( formPostJob.educationalrequirements.value == "" ) {
		alert("ERROR! You did not indicate the educational requirements in the Educational Requirements text area. This information is required.");
		formPostJob.educationalrequirements.focus();
		return false;
	}

}


function joinJobList(formHomePage) {

	regx = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/

	if ( formHomePage.emailAddress.value == "" ) {
		alert("ERROR! No e-mail address specified. Please type a valid e-mail address in the text box and click Join List.");
		formHomePage.emailAddress.focus();
		return false;
	}

	if ( regx.test(formHomePage.emailAddress.value) ) {
		formHomePage.emailAddress.focus();
		return true;
	}
		alert("ERROR! Invalid e-mail address format. Please check the e-mail address and try again.");
		formHomePage.emailAddress.focus();
		return false;

}

function removeJobPosting(formRemoveJobPosting) {

	if ( formRemoveJobPosting.jobpostid.value == "" ) {
		alert("ERROR! A valid Chapter job posting ID number is required.");
		formRemoveJobPosting.jobpostid.focus();
		return false;
	}

	if ( formRemoveJobPosting.requestor.value == "" ) {
		alert("ERROR! Please type your name in the Your Name box.");
		formRemoveJobPosting.requestor.focus();
		return false;
	}

	if ( formRemoveJobPosting.reqemail.value == "" && formRemoveJobPosting.reqphone.value == "" ) {
		alert("ERROR! We need either your email address or a phone number to reach you in case we have questions, and to verify the legitimacy of this request.");
		formRemoveJobPosting.reqemail.focus();
		return false;
	}


}


function locThomsonReuters() {

		msgText = "";
		msgText += "Thomson Reuters, 195 Broadway, New York City. Registration starts at 5:30 PM.\n\n";
		msgText += "NOTE/IMPORTANT: Be sure to bring a picture ID to show security at the main entrance. ";
		msgText += "You must RSVP and be on the list at security. No walk-ins will be allowed.";
		alert(msgText);

}

function showThomsonReutersNotice() {

		msgText = "";
		msgText += "Access restrictions apply to this location. Be sure to ";
		msgText += "bring a picture ID to show security at the main entrace. ";
		msgText += "You must RSVP to any meetings or events for this location ";
		msgText += "and be on the security list. No walk-ins are allowed!";
		alert(msgText);

}

