/*© 1999 Dancecats.com Incorporated. All rights reserved. */
function writeOption(arNames)
{
    document.write ("<option value= \"-1\">")    
    document.write (arNames[0])
    document.write ("</option>")

    for( var i =1; i < arNames.length; i++)
    {
    document.write ("<option value=")
    document.write (arNames[i])
    document.write (">")
    document.write (arNames[i])
    document.write ("</option>")
    }
}
function lbAppendEthnicity()
{
  var arNames = new Array("Doesn't matter", "Caucasian",  "African-American", "Asian", "Hispanic", "Eastern");
  writeOption(arNames); 
}
function lbAppendAge()
{
  var arNames = Array("Undisclosed","under 18","Over 18","Over 21","");
  writeOption(arNames); 
}

//New stuff above
function lbAppendHeight()
{ 
  var arNames = new Array( "Doesn't matter",
  "under 4'", 
  "4'0\" - 4' 3\"",
  "4'4\" - 4' 7\"",
  "4'8\" - 4' 11\"",
  "5'0\" - 5' 3\"",  
  "5'4\" - 5' 7\"",
  "5'8\" - 5' 11\"",
  "6'0\" - 6' 6\"",
  "6'7\" - 6' 11\"",  
  "over 7'");  
  writeOption(arNames);    
}
function writeOptionDance(bPartner,strDanceGroupText,strDanceText, strDanceName, ndxTab)
{
  document.write ("<td id=\"a69Fv\"> <strong\>",strDanceGroupText,"&nbsp;</strong\></td>");   
  document.write ("<td id=\"a69Fn\">", strDanceText,"</td>");   
  var strName= strDanceName + "Dance";
  document.write ("<td><select name=\"",strName,"\" size=\"1\" tabIndex=",ndxTab,"> ");  
  if (0 == bPartner)
  {
    document.write ("<option selected value=\"0\">Don't dance</option>");
  }else
  {
    document.write ("<option selected value=\"0\">doesn't Matter</option>");
  }      
  document.write ("<option value=\"1\">Beginner </option>");
  document.write ("<option value=\"2\">Advanced </option>");
  document.write ("</select> </td>");



  strName= strDanceName + "Comp";
  document.write ("<td><select name=\"",strName,"\" size=\"1\" tabIndex=",(ndxTab+5),"> ");
  if (0 == bPartner)
  {
    document.write ("<option selected value=\"0\">Don't compete</option>");
  }else
  {
    document.write ("<option selected value=\"0\">Doesn't Matter</option>");
  }
  
  document.write ("<option value=\"1\">Amateur</option>");
  document.write ("<option value=\"2\">Pro </option>");
  document.write ("</select> </td>");    
}

function writeOptionDanceFilled(strDanceGroupText,strDanceText, strDanceName, ndxTab, iDanceValue, iCompValue)
{
  document.write ("<td id=\"a69Fv\">", strDanceGroupText,"</td>");   
  document.write ("<td id=\"a69Fn\">", strDanceText,"</td>");   
  var strName= strDanceName + "Dance";
  
  document.write ("<td id=\"a69Fn\"><select name=\"",strName,"\" size=\"1\" tabIndex=",ndxTab,"> ");        
    switch (iDanceValue )
    {
        case 1:
            document.write ("<option value=\"0\">Don't dance</option>"); 
            document.write ("<option selected value=\"1\">Beginner </option>");
            document.write ("<option value=\"2\">Advanced </option>");
            break;
        case 2: 
            document.write ("<option value=\"0\">Don't dance</option>"); 
            document.write ("<option value=\"1\">Beginner </option>");
            document.write ("<option selected value=\"2\">Advanced </option>");
            break;
        default:
            document.write ("<option selected value=\"0\">Don't dance</option>"); 
            document.write ("<option value=\"1\">Beginner </option>");
            document.write ("<option value=\"2\">Advanced </option>");
        break;
     }      
  document.write ("</select> </td>");



  strName= strDanceName + "Comp";
  document.write ("<td id=\"a69Fn\"><select name=\"",strName,"\" size=\"1\" tabIndex=",(ndxTab+5),"> ");  
      switch (iCompValue )
    {
        case 1:
          document.write ("<option value=\"0\">Don't compete</option>");  
          document.write ("<option selected value=\"1\">Amateur</option>");
          document.write ("<option value=\"2\">Pro </option>");
            break;
        case 2: 
          document.write ("<option value=\"0\">Don't compete</option>");  
          document.write ("<option value=\"1\">Amateur</option>");
          document.write ("<option selected value=\"2\">Pro </option>");
            break;
        default:
            document.write ("<option selected value=\"0\">Don't compete</option>");  
            document.write ("<option value=\"1\">Amateur</option>");
            document.write ("<option value=\"2\">Pro </option>");
        break;
     }        
  document.write ("</select> </td>");    
}


