function swapimg (objid, url)
{
obj = document.getElementById(objid);
obj.src = url;

}

function ShowContactForm(option)
{
switch (option)
{
case 'cemetery' :
	document.getElementById('txtTopic').selectedIndex = 2;
break;

case 'jetsprints' :
	document.getElementById('txtTopic').selectedIndex = 3;
break;

case 'hydroplanes' :
	document.getElementById('txtTopic').selectedIndex = 4;
break;

case 'fmx' :
	document.getElementById('txtTopic').selectedIndex = 5;
break;

case 'superticket' :
	document.getElementById('txtTopic').selectedIndex = 0;
break;

default :
	document.getElementById('txtTopic').selectedIndex = 1;
break;

}
	document.getElementById('contact_form_bg').style.display = 'inline';

}

function HideContactForm()
{
	document.getElementById('contact_form_bg').style.display = 'none';
}

function ValidateContactForm()
{
dosubmit = true;
if (document.getElementById('txtName').value == '')
	{ 
	document.getElementById('txtName').style.backgroundColor = '#ff2020';
	dosubmit = false;
	}
if (document.getElementById('txtEmail').value == '')
	{ 
	document.getElementById('txtEmail').style.backgroundColor = '#ff2020';
	dosubmit = false;
	}

if (dosubmit == true)
{
document.forms.contactform.submit();
}
}

function resetContactValidation()
{
document.getElementById('txtName').style.backgroundColor = '#ffffff';
document.getElementById('txtEmail').style.backgroundColor = '#ffffff';
}


