function MouseOverBackground(ID)
 {
  ID.className = "ShadeBackground04";
 }

function MouseOutBackground(ID)
 {
  ID.className = "ShadeBackground06";
 }

function ToggleDiv(ID)
 {
  document.getElementById(ID).style.display = (document.getElementById(ID).style.display == 'none')?'inline':'none';
 }

function UpdateAffiliatePassword(CurrentPassword, NewPassword, ConfirmNewPassword)
 {
  document.getElementById('PasswordChangeStatus').innerHTML = "Please wait...";

  var xmlHttp;

  try
   {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
   }
  catch (e)
   {
    // Internet Explorer
    try
 	 {
	  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	 }
    catch (e)
 	 {
	  try
	   {
	    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	   }
	  catch (e)
	   {
	    alert("Your browser does not support AJAX!");
	    return false;
	   }
	 }
   }

  xmlHttp.onreadystatechange=function()
   {
    if(xmlHttp.readyState==4)
	 {
	  document.getElementById('PasswordChangeStatus').innerHTML = xmlHttp.responseText;
	 }
   }

  xmlHttp.open("GET","changeaffiliatepassword.php?CurrentPassword=" + CurrentPassword +
                     "&NewPassword=" + NewPassword +
                     "&ConfirmNewPassword=" + ConfirmNewPassword, true);
  xmlHttp.send(null);
 }
