if (docsPath == null){
	var docsPath = '';
}
// top nav off
var worldwideoff = new Image();
worldwideoff.src = docsPath + "/2_events/symposium/2003/docs/nav_worldwide_off.gif"
var whatisoff = new Image();
whatisoff.src = docsPath + "/2_events/symposium/2003/docs/nav_whatis_off.gif"
var baeoff = new Image();
baeoff.src = docsPath + "/2_events/symposium/2003/docs/nav_bae_off.gif"
var contactusoff = new Image();
contactusoff.src = docsPath + "/2_events/symposium/2003/docs/nav_contactus_off.gif"
// top nav blue
var worldwideblue = new Image();
worldwideblue.src = docsPath + "/2_events/symposium/2003/docs/nav_worldwide_blue.gif"
var whatisblue = new Image();
whatisblue.src = docsPath + "/2_events/symposium/2003/docs/nav_whatis_blue.gif"
var baeblue = new Image();
baeblue.src = docsPath + "/2_events/symposium/2003/docs/nav_bae_blue.gif"
var contactusblue = new Image();
contactusblue.src = docsPath + "/2_events/symposium/2003/docs/nav_contactus_blue.gif"

function off(img){
	document[img].src = eval(img+'off').src;
}

function blue(img){
	document[img].src = eval(img+'blue').src;
}

// map nav
var sandiegoon = new Image();
sandiegoon.src = docsPath + "/2_events/symposium/2003/docs/worldwide_map_sandiego.gif"
var orlandoon = new Image();
orlandoon.src = docsPath + "/2_events/symposium/2003/docs/worldwide_map_orlando.gif"
var florenceon = new Image();
florenceon.src = docsPath + "/2_events/symposium/2003/docs/worldwide_map_florence.gif"
var barcelonaon = new Image();
barcelonaon.src = docsPath + "/2_events/symposium/2003/docs/worldwide_map_barcelona.gif"
var canneson = new Image();
canneson.src = docsPath + "/2_events/symposium/2003/docs/worldwide_map_cannes.gif"
var joburgon = new Image();
joburgon.src = docsPath + "/2_events/symposium/2003/docs/worldwide_map_joburg.gif"
var capetownon = new Image();
capetownon.src = docsPath + "/2_events/symposium/2003/docs/worldwide_map_capetown.gif"
var sydneyon = new Image();
sydneyon.src = docsPath + "/2_events/symposium/2003/docs/worldwide_map_sydney.gif"
var tokyoon = new Image();
tokyoon.src = docsPath + "/2_events/symposium/2003/docs/worldwide_map_tokyo.gif"
var worldmapoff = new Image();
worldmapoff.src = docsPath + "/2_events/symposium/2003/docs/worldwide_dots.gif"

function mapOn(img){
	document.worldwidemap.src = eval(img+'on').src;
}

function mapOff(img){
	document.worldwidemap.src = worldmapoff.src;
}

function cannes(){
	document.cannes_florence.src = canneson.src;
}

function florence(){
	document.cannes_florence.src = florenceon.src;
}

function validateForm(theForm) {
	if (theForm.first_name.value == ""){
		alert("Please enter your first name.");
		theForm.first_name.focus();
		return (false);
	}
	if (theForm.last_name.value ==""){
		alert("Please enter your last name.");
		theForm.last_name.focus();
		return (false);
	}
	if (theForm.company.value ==""){
		alert("Please enter your company.");
		theForm.company.focus();
		return (false);
	}
	if (theForm.country.value ==""){
		alert("Please enter your country.");
		theForm.country.focus();
		return (false);
	}
	if (theForm.email.value ==""){
		alert("Please enter your e-mail address.");
		theForm.email.focus();
		return (false);
	}
	if(validEmail(theForm.email.value) == false){
		alert("Please enter a valid e-mail address.");
		theForm.email.focus();
		return (false);
	}
	if (theForm.cboJobRole.value =="0"){
		alert("Please enter your job role.");
		theForm.cboJobRole.focus();
		return (false);
	}
} 

function validEmail(email) {
	invalidChars = " /:,;";
	for (i=0; i < invalidChars.length; i++) {
		badChar = invalidChars.charAt(i);
		if (email.indexOf(badChar,0) > -1) {
			return false;
		}
	}
	atPos = email.indexOf("@",1)
	if (atPos == -1) {
		return false;
	  }
	if (email.indexOf("@",atPos+1) > -1) {
		return false;
	}
	periodPos = email.indexOf(".",atPos)
	if (periodPos == -1) {
		return false;
	}
	if (periodPos+3 > email.length) {
		return false;
	}
	return true;
}
