function check_workwithus_submit () {

	var errorStr = "";
	var showError = false;

	if (!document.applyForm.name.value.match(/[a-z]/)) {
		errorStr = errorStr + "Your name must contain at least one letter\n";
	}		

	if (document.applyForm.email.value.length < 1) {
		errorStr = errorStr + "Please enter your email address\n";
	} else if (!document.applyForm.email.value.match(/^[a-zA-Z0-9.\-\_]+\@{1,1}[a-zA-Z0-9.-]+\.([a-zA-Z0-9.]+)$/)) {
		errorStr = errorStr + "Invalid email address\n";
	} else {
		if (!document.applyForm.email.value.match(/[a-zA-Z0-9]$/)) {
			errorStr = errorStr + "Invalid email address\n";
		}
	}

	if (!document.applyForm.phone.value.match(/[0-9]/)) {
		errorStr = errorStr + "Your name must contain some numbers\n";
	}		
	if (!document.applyForm.position.value.match(/[a-z]/)) {
		errorStr = errorStr + "Please enter the position you would like\n";
	}		

	if (errorStr.length > 0) {
		alert(errorStr);
		return false;
	} else {
		return true;
	}
}

function swap (imageName, imageFile) {

	if (!document.images) {
		return;
	} else {
    	eval('document.images[imageName].src = '+ imageFile +'.src');
    }
}

function changeNewsSection (targetYear) {

	document.location = "/"+targetYear+"/news1.html";
}

function do_broker_link (brokerID, url, agent) {

 	if (broker_message(brokerID)) {
		if (agent == 'MSIE') {
			document.location = url;
		} else {
			window.open(url);
		}
 	}
}

