// version 1.1 / date : 07.10.2004 / KVJ //
function SubmitForm() 
{
	//var theForm=document.all['firstForm'];
	var theForm=document.getElementsByName("contactus")[0];
	if (!checkForm(theForm)) return false;
	updateContinent();
	updateContactus();
}


function updateContinent() 
{ // Define continent based on selection country
	var selcountry
		
	if (typeof(contArray) != 'undefined') 
	{
		selcountry = document.contactus.Country_.value;
		document.contactus.Continent.value = contArray[selcountry];
	}
}
	
	
function updateContactus()
{
	var selcountry;
	var selcontinent; 
	if(typeof(MailContinent) != 'undefined')
	{
		selcontinent = document.contactus.Continent.value;
		if(typeof(MailContinent[selcontinent]) != 'undefined')
		{
			document.contactus.AddAddress.value = MailContinent[selcontinent];
		}
	}
	if(typeof(MailCountry) != 'undefined')
	{
		selcountry = document.contactus.Country_.value;
		if(typeof(MailCountry[selcountry]) != 'undefined')
		{
			document.contactus.AddAddress.value = MailCountry[selcountry];
		} 
	}
}
		