window.history.forward(1);

function checkStateLen(what)
{
  if (what.value.length > 3)
  {
    alert("Please only enter the abbreviations for the state.  Ex: NY for New York");
    what.value = what.value.substring(0, 3);
    what.focus();
  }
}

function doerror(e, t)
{
  alert(e.error);
  t.focus();
}
  
function haveLLC()
{
  if (document.MyForm.llcname.value != "")
  {
    document.all("gotit").style.display = "none";
    document.all("sec1").style.display = "block";
  }
  else
    document.MyForm.have.checked = false;
}
  
function busType(what)
{
  document.all("other").style.display = "none";
  var pr = "", ex = "";
  switch (what)
  {
    case "construction":
      pr = "Enter the type of construction work done:";
      ex = "For example: Residential or Commercial.";
    break;
    case "manufacturing":
      pr = "Enter the type of manufacturing your business will do:";
      ex = "For example: plastic products or wood fabrication.";
    break;
    case "realestate":
      pr = "Enter the type of real estate services your business will provide:";
      ex = "For example: Residential or Commercial.";
    break;
    case "rentalleasing":
      pr = "Enter the type of rental or leasing service your business will provide:";
      ex = "For example: Automobiles or Apartments.";
    break;
    case "transportwarehousing":
      pr = "Enter the type of transportation or warehousing services your business will provide:";
      ex = "For example: Long Haul Trucking or Moving and Storage.";
    break;
    case "financeinsurance":
      pr = "Enter the type of finance or insurance services your business will provide:";
      ex = "For example: Home Mortgage Lending or Life Insurance.";
    break;
    case "healthcare":
      pr = "Enter the type of healthcare or social assistance services your company will provide:";
      ex = "For example: Outpatient Clinic or Homeless Shelter.";
    break;
    case "foodservice":
      pr = "Enter the type of accommodation or food service services your company will provide:";
      ex = "For example: Hotel or Restaurant.";
    break;
    case "wholesaleagent":
      pr = "Enter the type of wholesale agent or broker services your company will provide:";
      ex = "For example: Tire Manufacturer Sales Representative.";
    break;
    case "wholesaleother":
      pr = "Enter the type of wholesale services your company will provide:";
      ex = "For example: Auto Parts Supplier to Service Stations.";
    break;
    case "retail":
      pr = "Enter the type of retail services your company will provide:";
      ex = "For example: Sale of Imported Leather Goods.";
    break;
    case "other":
      document.all("other").style.display = "block";
      pr = "Describe the product or service your company will manufacture or provide:";
      ex = "For example: Internet Web Hosting";
    break;
  }
  document.all("bustypeprompt").innerText = pr;
  document.all("bustypeexample").innerText = ex;
  document.all("sec2").style.display = (what != "" ? "block" : "none");
}

function haveType()
{
  document.all("sec3").style.display = "block";
}

function checkAndAdd(what)
{
  var i = parseInt(what.value);
  if (isNaN(i))
    what.value = 0;
  else
    what.value = i;
  document.all("wagesrow").style.display = (document.MyForm.nonag.value != "0" || document.MyForm.household.value != "0" || document.MyForm.agri.value != "0" ? "block" : "none");
}

function addManager(really, what)
{
  document.all("man" + what).style.display = (really ? "block" : "none");
}

function addMember(really, what)
{
  document.all("mem" + what).style.display = (really ? "block" : "none");
}

function showMembers()
{
  document.all("sec4").style.display = "block";
}

function showSubmit()
{
  document.all("sec5").style.display = "block";
}

var calcaller;
var calcallervalue;
function showcalendar(element)
{
  calcaller = element
  calcallervalue = eval(element).value;
  thewindow = window.open('/popups/calendar.htm','popupwindow','width=325,height=325,center=yes,help=no,menubar=0,resizeable=0,scrollbars=0,status=0');
}


