
		
		function newwin(url,name)
			{
			var newWindow=
	window.open(url,name,"height=400,width=450,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,textbar=no,resizable=yes,top=50,left=50");
}	




function MM_preloadImages() { //v3.0
  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 MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function reloadme()
{
if(ns4) {
	window.location.reload();}
}

function FrontPage_Form1_Validator(theForm)
{

  if (theForm.Contact_FullName.value == "")
  {
    alert("Please enter your name.");
    theForm.Contact_FullName.focus();
    return (false);
  }

  if (theForm.Contact_Organization.value == "")
  {
    alert("Please enter the Company name.");
    theForm.Contact_Organization.focus();
    return (false);
  }

  if (theForm.Contact_WorkPhone.value == "")
  {
    alert("Please enter the Phone Number");
    theForm.Contact_WorkPhone.focus();
    return (false);
  }

  if (theForm.Contact_WorkPhone.value.length > 25)
  {
    alert("Please enter at most 25 characters for phone number");
    theForm.Contact_WorkPhone.focus();
    return (false);
  }

  if (theForm.Contact_Email.value == "")
  {
    alert("Please enter the Email address.");
    theForm.Contact_Email.focus();
    return (false);
  }

  if (theForm.Show_Title.value == "")
  {
    alert("Please enter the Show title.");
    theForm.Show_Title.focus();
    return (false);
  }

  if (theForm.Show_location.value == "")
  {
    alert("Please enter the show location.");
    theForm.Show_location.focus();
    return (false);
  }

  if (theForm.Show_City_State.value == "")
  {
    alert("Please enter the show city, state.");
    theForm.Show_City_State.focus();
    return (false);
  }
  document.forms[0].submit();
  return (true);
}

// validation for std order form

function Standard_Form1_Validator(theForm)
{

  if (theForm.Contact_FullName.value == "")
  {
    alert("Please enter your Name.");
    theForm.Contact_FullName.focus();
    return (false);
  }

  if (theForm.Contact_FullName.value.length < 5)
  {
    alert("Please enter at least 5 characters in Name field.");
    theForm.Contact_FullName.focus();
    return (false);
  }

  if (theForm.Contact_Email.value == "")
  {
    alert("Please enter the Email Address.");
    theForm.Contact_Email.focus();
    return (false);
  }

  if (theForm.Contact_Email.value.length < 7)
  {
    alert("Please enter at least 7 characters in Email Address.");
    theForm.Contact_Email.focus();
    return (false);
  }

  if (theForm.Exhibiting_Company.value == "")
  {
    alert("Please enter the Exhibit Company Name.");
    theForm.Exhibiting_Company.focus();
    return (false);
  }

  if (theForm.Exhibiting_Company.value.length < 2)
  {
    alert("Please enter at least 2 characters in Exhibiting Company Name.");
    theForm.Exhibiting_Company.focus();
    return (false);
  }

  if (theForm.Show_Name.value == "")
  {
    alert("Please enter the Show name.");
    theForm.Show_Name.focus();
    return (false);
  }

  if (theForm.Show_Name.value.length < 3)
  {
    alert("Please enter at least 3 characters for Show Name.");
    theForm.Show_Name.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.openingtime.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the Opening Time.");
    theForm.openingtime.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number for Opening Time.");
    theForm.openingtime.focus();
    return (false);
  }

  if (theForm.Opening_TOD.selectedIndex < 0)
  {
    alert("Please select Opening Time of day option.");
    theForm.Opening_TOD.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.Closingtime.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the Closing Time.");
    theForm.Closingtime.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number for Closing Time.");
    theForm.Closingtime.focus();
    return (false);
  }

  if (theForm.Closing_TOD.selectedIndex < 0)
  {
    alert("Please select Closing Time of day option.");
    theForm.Closing_TOD.focus();
    return (false);
  }

  if (theForm.Show_location.value == "")
  {
    alert("Please enter the Show Location.");
    theForm.Show_location.focus();
    return (false);
  }


  if (theForm.Show_location.value.length < 2)
  {
    alert("Please enter at least 2 characters in the Show Location.");
    theForm.Show_location.focus();
    return (false);
  }

  if (theForm.Show_City.value == "")
  {
    alert("Please enter a value for the Show City, State, Zip.");
    theForm.Show_City.focus();
    return (false);
  }

  if (theForm.Show_City.value.length < 10)
  {
    alert("Please enter at least 10 characters in Show City, State, Zip field.");
    theForm.Show_City.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.Booth_Number.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the Booth Number.");
    theForm.Booth_Number.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the Booth Number.");
    theForm.Booth_Number.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.Target_time.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the Target Time.");
    theForm.Target_time.focus();
    return (false);
  }

  if (theForm.Target_TOD.selectedIndex < 0)
  {
    alert("Please select Target Time of day option.");
    theForm.Target_TOD.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.Installation_Time.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the Installation Time.");
    theForm.Installation_Time.focus();
    return (false);
  }

  if (theForm.Installation_TOD.selectedIndex < 0)
  {
    alert("Please select Installation Time of day option.");
    theForm.Installation_TOD.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.Dismantle_time.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the Dismantle Time.");
    theForm.Dismantle_time.focus();
    return (false);
  }

  if (theForm.Dismantle_TOD.selectedIndex < 0)
  {
    alert("Please select the Dismantle Time of day option.");
    theForm.Dismantle_TOD.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.Number_Men.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the Number of Men.");
    theForm.Number_Men.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ";
  var checkStr = theForm.Billing_Attn.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  /*if (!allValid)
  {
    alert("Please enter only letter characters in the \"Attention\" field.");
    theForm.Billing_Attn.focus();
    return (false);
  }*/

  var checkOK = "0123456789-";
  var checkStr = theForm.Oubound_Pickup_Time.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the Outbound Pick up Time.");
    theForm.Oubound_Pickup_Time.focus();
    return (false);
  }

  if (theForm.Pickup_Time.selectedIndex < 0)
  {
    alert("Please select the PickUp Time of day option.");
    theForm.Pickup_Time.focus();
    return (false);
  }
  document.forms[0].submit();
  return (true);
}