
function list_ajax()
  {
  //alert('now');
  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)
        {
          newdata = xmlHttp.responseText;
          obj=document.getElementById("livearea");
          obj.innerHTML=newdata;
        }
      }

    ajax_url = '/livearea.php';

    xmlHttp.open("GET",ajax_url,true);
    xmlHttp.send(null);
//    alert(ajax_url);
//    window.setInterval("list_ajax()",10000);
  }


function navOn(did) {
  document.getElementById(did).className="navOn";
}

function navOut(did) {
  document.getElementById(did).className="navOut";
}


function check_promo_form() {
//	return true;
  var i = 0;
  var txt = new Object;

  txt['user_fname'] = 'First Name';
  txt['user_lname'] = 'Last Name';
  txt['user_email'] = 'Email';
  txt['user_address'] = 'Address';
  txt['user_city'] = 'City';
  txt['user_state'] = 'State';
  txt['user_zip'] = 'Zip';

  for (docID in txt) {
  	if (CheckField(docID,txt[docID]) == false){
  	  return false;
  	}
  }
}


function CheckField(FieldName,AlertString) {
  var FieldValue;

  FieldValue = document.getElementById(FieldName).value;
  if (FieldValue == "") {
    alert("Before you can continue, you must fill in '" + AlertString + "' ");
    document.getElementById(FieldName).focus();
    return false;
  }
}
