function openExternalWindow(obj)
{
	var nw = window.open(obj.getAttribute("href"), "", "left=200,top=200,width=600,height=400,resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes");
	if (nw)
	{
		nw.focus();
		return false;
	}
	else
	{
		return true;
	}
}

function validForm(passForm)
{
	if (passForm.name.value == "")
	{
		// if the username is not entered, send the following message to the user
		alert("Please enter your name.");
		passForm.name.focus();
		return false;
	}
	if (passForm.email.value == "")
	{
		// if the email address is not entered, send the following message to the user
		alert("Please enter your email address.");
		passForm.email.focus();
		return false;
	}
	return true;
}

// set event handlers

window.onload = function()
{
	if (document.getElementById)
		if (document.getElementById('name')) 
			document.getElementById('name').focus();
}
