﻿function ReplaceClassOver(theElementName) {
  try {
    var theElement = document.getElementById(theElementName);
    if (theElement) {
      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 account = obj.id;
  var userNameTd = 'UserName' + account;
  ReplaceClassOver(userNameTd);
}

function GetProfile(account) {
  var url = 'http://www.hotrussianbrides.com/guesthome/?func=profile&picAcct=' + account;
  top.location = url;
}

function Chat(account) {
  var url = 'http://www.hotrussianbrides.com/chattrial/' + account + '.htm';
  features = 'height=450,width=785,menubar=0,personalbar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0';
  window.open(url, "chat", features);
}

function Join() {
  var url = 'https://secure.hotrussianbrides.com/membership/join.aspx';
  top.location = url;
}


/*HOSTESS FUNCs*/
function HighliteHostessUserName() {
  ReplaceClassOver('HostessUserName');
}

function GetHostess() {
  var hostess = document.getElementById('HostessAccount').innerHTML;
  feats = 'height=500,width=690,menubar=0,personalbar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0';
  var url = 'http://www.hotrussianbrides.com/hostesschat/' + hostess + '.htm';
  window.open(url, "hostess", feats);
}

