$(document).ready(function(){
//disjointed rollover function starting point
$(".rightbanner ul li").click(function(){
	//make a variable and assign the hovered id to it
	var elid = $(this).attr('id');
	//hide the image currently there
	$(".leftbanner div").hide();
	//fade in the image with the same id as the selected buttom
	$(".leftbanner div#" + elid + "").fadeIn("slow");

	});

});

//Form validation

function validateinfo1(){
	var msg='';
	
	if(document.getElementById('fname').value==''){
		msg+='- Please enter First Name\n';
		}
	
	if(document.getElementById('lname').value==''){
		msg+='- Please enter Last Name\n';}
	
	var email=document.getElementById('email1').value;
	
	if(document.getElementById('email1').value==''){
		msg+='- Please enter a valid Email Address';}
		
	else if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email))){
	msg+='- Invalid Email Address: '+email+'\n';}
	
	
	if(msg!=''){
		alert(msg);
		return false
	}else{
		return true }
	
}


function validateinfo2(){
var msg='';
var email=document.getElementById('email2').value;
if(document.getElementById('email2').value==''){
		msg+='- Please enter a valid email address';}
	
	else if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email))){
		msg+='- Invalid Email Address: '+email+'\n';}

	if(msg!=''){
		alert(msg);
		return false
	}
	else{
		return true }
}



