function rollOver(imagename, filename) {
	window.document[imagename].src=filename;
}

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


function instantPlayLink(casinoURL)
{
  popupWindow(casinoURL,"gameWindow","740","555","scrollbars=0");
}

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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
