function MM_preloadImages()
{
 var d=document;
 if(d.images)
 {
  if(!d.MM_p)
   d.MM_p=new Array();
  var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
  for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0)
   {
    d.MM_p[j]=new Image;
    d.MM_p[j++].src=a[i];
   }
 }
}

function checkForm()
{
 var errors = 'Please enter information in the following fields:\n\n\t';
 var errorcheck = '0';

 if (document.form.name.value=='')
 {
  errors = errors + 'NAME\n\t';
  errorcheck = '1';
 }
 if (document.form.company.value=='')
 {
  errors = errors + 'COMPANY\n\t';
  errorcheck = '1';
 }
 if (document.form.address1.value=='')
 {
  errors = errors + 'ADDRESS\n\t';
  errorcheck = '1';
 }
 if (document.form.city.value=='')
 {
  errors = errors + 'CITY\n\t';
  errorcheck = '1';
 }
 if (document.form.county.value=='')
 {
  errors = errors + 'COUNTY/STATE\n\t';
  errorcheck = '1';
 }
 if (document.form.country.value=='')
 {
  errors = errors + 'COUNTRY\n\t';
  errorcheck = '1';
 }
 if (document.form.postcode.value=='')
 {
  errors = errors + 'POST/ZIP CODE\n\t';
  errorcheck = '1';
 }
 if (document.form.email.value=='')
 {
  errors = errors + 'EMAIL ADDRESS';
  errorcheck = '1';
 }
 if (errorcheck=='1')
 {
  alert(errors);
  return(false);
 }
 else
 {
  return(true);
 }
}

function checkForm2()
{
 var errors = 'Please enter information in the following fields:\n\n\t';
 var errorcheck = '0';

 if (document.form.name.value=='')
 {
  errors = errors + 'NAME\n\t';
  errorcheck = '1';
 }
 if (document.form.company.value=='')
 {
  errors = errors + 'COMPANY\n\t';
  errorcheck = '1';
 }
 if (document.form.address1.value=='')
 {
  errors = errors + 'ADDRESS\n\t';
  errorcheck = '1';
 }
 if (document.form.city.value=='')
 {
  errors = errors + 'CITY\n\t';
  errorcheck = '1';
 }
 if (document.form.county.value=='')
 {
  errors = errors + 'COUNTY/STATE\n\t';
  errorcheck = '1';
 }
 if (document.form.country.value=='')
 {
  errors = errors + 'COUNTRY\n\t';
  errorcheck = '1';
 }
 if (document.form.postcode.value=='')
 {
  errors = errors + 'POST/ZIP CODE\n\t';
  errorcheck = '1';
 }
 if (document.form.email.value=='')
 {
  errors = errors + 'EMAIL ADDRESS';
  errorcheck = '1';
 }
 if (errorcheck=='1')
 {
  alert(errors);
  return(false);
 }
 else
 {
  document.form.submit();
 }
}

function addProduct(type)
{
 document.form.type.value = type;
}



