function SetSelectedAttribute(BackgroundID,URLID) {
  document.getElementById(BackgroundID).style.backgroundColor='#e58912';
  document.getElementById(URLID).className='leftmainmenuSelected';
}
function forgotpw() {
	document.getElementById('login_forgotpw').style.display='';
	document.getElementById('login_login').style.display='none';
	document.getElementById('forgotpw').value=true;
}
function login() {
	document.getElementById('login_forgotpw').style.display='none';
	document.getElementById('login_login').style.display='';
	document.getElementById('forgotpw').value=false;
}
function Right(str, n){
    if (n <= 0)
       return "";
      else if (n > String(str).length)
       return str;
      else {
       var iLen = String(str).length;
       return String(str).substring(iLen, iLen - n);
      }
	}
	function Left(str, n){
	if (n <= 0)
	    return "";
	else if (n > String(str).length)
	    return str;
	else
	    return String(str).substring(0,n);
	}
// FAQs (Merchant & Affiliate) - Display & Hide
function HideDisplayFAQ(FAQID) {
  if (document.getElementById('FAQ'+FAQID).style.display=='') {
    document.getElementById('FAQ'+FAQID).style.display='none';
    document.getElementById('FAQQuestion'+FAQID).style.backgroundColor='#c0c0c0';
	document.getElementById('FAQQuestion'+FAQID).onmouseover='';
  } else {
    document.getElementById('FAQ'+FAQID).style.display='';
	document.getElementById('FAQQuestion'+FAQID).onmouseout='';
  }
}

// Error - Invalid Login Details
function displayloginerror() {
  alert('Invalid Login Details');
}
function DisplayMailsent(AccountType) {
  top.document.getElementById('login_forgotpw').style.display='none';
  top.document.getElementById('login_login').style.display='';
  alert('Details Sent by Email');
}

// Dreamweaver - Open New Window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}