//*********************************************
//* receiver check
//*********************************************
function receiverCheck (form, conf) {
//  if (form.RC1.options.value == form.RC2.options.value) {
  if (form.RC1.value == form.RC2.value) {
    alert("You must start 2 different receivers.");
    return false;
  } 

  if (conf == 'L' && form.trash.value.length < 3) {
    alert("Please *abide* and respect the L conference by entering a Big Lebowski quote in the Trash Talk area.");
    return false;
  }

  return true;
}

function textCounter(field, countfield, maxlimit) {
  if (field.value.length > maxlimit) // if too long...trim it!
    field.value = field.value.substring(0, maxlimit);
    // otherwise, update 'characters left' counter
  else 
    countfield.value = maxlimit - field.value.length;
}


function addPlayerCheck (form) {
  if (form.addPlayer.value == "") {
    alert("You must specify a player to add.");
    return false;
  } 
  return true;
}

function dropPlayerConfirm (player) {
  yn = confirm("Are you sure you wanted to drop " + player + " from this roster? (OK = Yes   Cancel = No)"); 
  return yn;
}


function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}

function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}

function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}



