function ValidateAndSubmit() {
	var return_value = true
	
	if (!this.document.thisform.realname.value) {
	alert("Please enter your First and Last names" )
	return_value = false
	
	}
	if (!this.document.thisform.email.value) {
	alert("Please enter your E-Mail Address")
	return_value = false
	}else if (!isEmail(this.document.thisform.email.value)){
	alert("Please re-enter your email address as it does not appear to be valid")
	return_value = false
	}
	
	if (return_value == true) {
	return true
	}else{
	return false
	}
}

function isEmail (s){  
	if (isEmpty(s)) 
	if (isEmail.arguments.length == 1) return defaultEmptyOK;
	else return (isEmail.arguments[1] == true);
	if (isWhitespace(s)) return false;
	var i = 1;
	var sLength = s.length;
	while ((i < sLength) && (s.charAt(i) != "@"))
	{ i++
	}
	if ((i >= sLength) || (s.charAt(i) != "@")) return false;
	else i += 2;
	while ((i < sLength) && (s.charAt(i) != ".")){ 
		i++
	}
	if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false;
	else return true;
}

function isWhitespace (s){   
	var whitespace = " ";
	var i;
	if (isEmpty(s)) return true;
	for (i = 0; i < s.length; i++){   
		var c = s.charAt(i);
		if (whitespace.indexOf(c) == -1) return false;
	}
	return true;
}

function isEmpty(s){   
	return ((s == null) || (s.length == 0))
}

function openPictureWindow_Fever(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
	newWindow.document.write('</BODY></html>');
	newWindow.document.close();
	newWindow.focus();
}

function topWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { 
		win.window.focus(); 
	}
}