function validate(formEval) {
		if (document.formEval.salutation.value == "") 
		{
		alert("Please select a Salutation.")
		document.formEval.salutation.focus()
		return false;
		} 
		else if (document.formEval.first_name.value == "") 
		{
		alert("Please complete the First Name field.")
		document.formEval.first_name.focus()
		return false;
		} 
		else if (document.formEval.last_name.value == "") 
		{
		alert("Please complete the Last Name field.")
		document.formEval.last_name.focus()
		return false;
		} 
		else if (document.formEval.company.value == "") 
		{
		alert("Please complete the Company/Institution field.")
		document.formEval.company.focus()
		return false;
		} 
		else if (document.formEval.title.value == "") 
		{
		alert("Please complete the Job Title field.")
		document.formEval.title.focus()
		return false;
		}
		else if (document.formEval.email.value == "") 
		{
		alert("Please complete the email field.")
		document.formEval.email.focus()
		return false;
		}
		else if (CheckEmail(document.formEval.email.value) == false) 
		{
		alert("Please enter a valid email address.")
		document.formEval.email.focus()
		return false;
		}
		else if (document.formEval.phone.value == "") 
		{
		alert("Please complete the Telephone field.")
		document.formEval.phone.focus()
		return false;
		}
		else if (document.formEval["00N60000001Ygtr"].value == "") 
		{
		alert("Please select an Area of Interest.")
		document.formEval["00N60000001Ygtr"].focus()
		return false;
		}
		else if (document.formEval["00N60000001YhSV"].value == "") 
		{
		alert("Please complete the comments field.")
		document.formEval["00N60000001YhSV"].focus()
		return false;
		}
	
		else 
		{ 
		return true;
		}
	
	}
	
function selectText(textObj)
{
	textObj.focus()
	textObj.select()
}

function CheckEmail(email) {

                        var valid = 1

                        var atPos = 0

 

// Note: Remove the comments from the following line to see 
// the indexOf method in action.
//alert("@ character is located at " + TheAddress.indexOf("@"))
// First make sure @ is at least at position 1. 
// Remember the first position is 0

                        atPos = email.indexOf("@")

                        if (atPos < 1) {

// Return false if @ isn't found.

                                    valid = 0

                        }

                        else {

// If @ is found, make sure it isn't last character in string.
            if (atPos == email.length-1) {
                                                valid = 0
                                    }
                        }
                        return valid
            }
			
			
			
			
/*			
			
			
// Variables we need
var previous	= new Array();
var lastClicked = '';
var firstClicked = 0;

// We are going to attach event listeners, no code at the bottom or anything hard coded...
function addEvent(obj, evType, fn)
{ 
	if(obj.addEventListener)
	{
		obj.addEventListener(evType, fn, false);
		return true;
	}
	else if(obj.attachEvent)
	{
		var r = obj.attachEvent('on' + evType, fn);
		return r;
	}
	else
	{
		return false; 
	} 
} 

// Let's begin when the DOM is ready 
addEvent(window, 'load', begin);

// Attach the handlers to our selects
// Attach the handlers to our selects
function begin()
{
	var selects = document.getElementsByTagName('select'); 

	for(var i = 0; i < selects.length; i++)
	{
		if(selects[i].multiple == true)
		{
			addEvent(selects[i], 'click', whichElement);
			addEvent(selects[i], 'click', addRemoveClicked);
		}
	}
}


// Find which element we are looking at on this click
function whichElement(e)
{
	if(!e)
	{
		var e = window.event;
	}

	if(e.target)
	{
		lastClicked = e.target;
	}
	else if(e.srcElement)
	{
		lastClicked = e.srcElement;
	}

	if(lastClicked.nodeType == 3) // Safari bug
	{
		lastClicked = lastClicked.parentNode;
	}
}

// Make sure we are displaying the correct items
function addRemoveClicked(e)
{
	if(!previous[this.id])
	{
		previous[this.id] = new Array();
	}

	// Remember what has been used
	if(previous[this.id][lastClicked.value] == 1)
	{
		previous[this.id][lastClicked.value] = 0;
	}
	else
	{
		previous[this.id][lastClicked.value] = 1;
	}

	//var selectBox = document.getElementById(this.id);
	
	var selectBox = document.formEval['00N60000001Ygtr'];

	// Add correct highlighting
	for(var i = 0; i < selectBox.options.length; i++)
	{
		selectBox.options[i].selected = '';
		
		if(previous[this.id][selectBox.options[i].value] == 1)
			{
			selectBox.options[i].selected = 'selected';
			}
		
	}
	
}

*/
