function orderSubmit(type) 
{
if (type == 'webmail') {
 if (!checkRequired() )
   {	
  document.webmail.submit();
  return true;
   }
 else {
   return false;
   }
}
}


function checkRequired() {

if (!document.webmail.name.value.length)
{
document.webmail.name.focus()
alert('You have not filled out all of the necessary details.\n' +
'Please enter your Company or Name.');
return true;
}


if (!document.webmail.town.value.length)
{
document.webmail.town.focus()
alert('You have not filled out all of the necessary details.\n' +
'Please enter the Town where you live.');
return true;
}


if (!document.webmail.country.value.length)
{
document.webmail.country.focus()
alert('You have not filled out all of the necessary details.\n' +
'Please enter the Country where you live.');
return true;
}


if (!document.webmail.postcode.value.length)
{
document.webmail.postcode.focus()
alert('You have not filled out all of the necessary details.\n' +
'Please enter your Post Code.');
return true;
}

if (!document.webmail.contact.value.length)
{
document.webmail.contact.focus()
alert('You have not filled out all of the necessary details.\n' +
'Please enter a contact name.');
return true;
}

if (!document.webmail.tel.value.length)
{
document.webmail.tel.focus()
alert('You have not filled out all of the necessary details.\n' +
'Please enter your telephone number.');
return true;
}

if (!document.webmail.email.value.length)
{
document.webmail.email.focus()
alert('You have not filled out all of the necessary details.\n' +
'Please enter your email address.');
return true;
}

if (!document.webmail.message.value.length)
{
document.webmail.message.focus()
alert('You have not filled out all of the necessary details.\n' +
'Please enter your query.');
return true;
}

else 
{
return false;
}

}