function validateLoginForm(formObject)
{
  if (formObject.UserName.value.length == 0)
  {
    alert("Please enter your username.");
    formObject.UserName.focus();
    return false; 
  }
  if (formObject.PassWord.value.length == 0)
  {
    alert("Please enter your password.");
    formObject.PassWord.focus();
    return false; 
  } 
  return true;
}

function popupWindow(pageURL,windowName,w,h,features)
{
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winprops = 'width='+w+',height='+h+',top='+wint+',left='+winl+','+features
  var popupWindow = window.open( pageURL ,windowName,winprops);
  if (popupWindow)
  {
    popupWindow.focus();
  }
  else
  {
    msg = "A popup blocker may be preventing the new page from opening.\n"
    + "Click OK to load the new page in the current browser.\n"
    + "Click Cancel to return to the current page.\n";
    if (confirm(msg))
      top.location.href = pageURL;
  }
}

function displayElement(args)
{
    for (var i = 0; i < arguments.length; i++)
    {
        var elementStyle = document.getElementById(arguments[i]).style;
        
        if (elementStyle.display == "none")
            elementStyle.display = "";
        else
            elementStyle.display = "none";
    }
}

function cashierLink()
{
  popupWindow("https://cashier.playersupport.com/sportc/login01.jsp", "cashierWindow", "800", "600", "scrollbars=1,resizable=1,status=1");
}