
function swapImg(img,src)
{
	document.getElementById(img).src=src;
}

function validateContactForm(theForm)
{
	if (theForm.Name.value == "")
	{
		alert("Please enter your name before submitting, thanks...");
		theForm.Name.focus();
		return (false);
	}
	if (theForm.Email_Address.value == "")
	{
		alert("Please enter your e-mail address before submitting, thanks...");
		theForm.Email_Address.focus();
		return (false);
	}
	if (theForm.Subject.value == "")
	{
		alert("Please enter a subject for your message before submitting, thanks...");
		theForm.Subject.focus();
		return (false);
	}
	if (theForm.Message.value == "")
	{
		alert("Please enter a brief message before submitting, thanks...");
		theForm.Message.focus();
		return (false);
	}
	return (true);
}

function openWindow(url_name,window_name,w,h,options) {
	if (options == null) { options=""; }
	if(!w || !h)
	{
		var w=350;
		var h=350;
	}
	winopts = "toolbar=" + (options.indexOf("toolbar") == -1 ? "no," : "yes,") +
	"location="  + (options.indexOf("location") == -1 ? "no," : "yes,") +
	"menubar=" + (options.indexOf("menubar") == -1 ? "no," : "yes,") +
	"scrollbars=" + (options.indexOf("scrollbars") == -1 ? "no," : "yes,") +
	"status=" + (options.indexOf("status") == -1 ? "no," : "yes,") +
	"resizable=" + (options.indexOf("resizable") == -1 ? "no," : "yes,") +
	"copyhistory=" + (options.indexOf("copyhistory") == -1 ? "no," : "yes,") +
	"width=" + w + ",height=" + h;
	newWin = window.open(url_name,window_name,winopts);
	if(newWin){
		newWin.moveTo(0,0);
		newWin.focus();
	}
}
