﻿function ReplaceClassOver(theElementName) {
  try {
    var theElement = document.getElementById(theElementName);
    if (theElement != null) {
      var currentClass = new String(theElement.className);
      var newClassName = '';
      if (currentClass.indexOf('Over') > -1) {
        newClassName = new String(currentClass.replace('Over', ''));
      }
      else {
        newClassName = new String(currentClass + 'Over');
      }
      theElement.className = newClassName;
    }
  }
  catch (e) { }
}

function HighliteUserName(obj) {
  var femaleAccount = obj.id;
  var userNameTd = 'UserName' + femaleAccount;
  ReplaceClassOver(userNameTd);
}

function HighliteHostessUserName() {
  //highlights the username as the user mouses over it	
  ReplaceClassOver('HostessUserName');
}

function GoToSignup() {
  parent.location = "https://secure.hotrussianbrides.com/membership/join.aspx";
}

function GetHostess() {
  var hostess = document.getElementById('ucWebHostess_HostessAccount').innerHTML;
  feats = 'height=500,width=690,menubar=0,personalbar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0';
  window.open("hostesschat/" + hostess + ".htm", "newHostess", feats);
}


