// (C) Netlogic, 2003

var aObjects = new Array;

window.onload = function() {

if (document["SendSms"]) {
  setSize();
}

  for (i =0; i < document.forms.length; i++) {

    var oForm = document.forms[i];

    if (oForm.name=='CC_USER_LIST_FILTER')
    {
      return;
    }

    oForm.onsubmit = eval('bCheck'+oForm.name);

    for (j = 0; j < oForm.elements.length; j++) {

      var oElement = oForm.elements[j];

      if (oElement.type == 'text') {

        aObjects[oForm.name + oElement.name] = oElement.value;
        if (!oElement.onfocus)     oElement.onfocus     = vClearContent;
        if (!oElement.onblur)      oElement.onblur      = vRestoreContent;

      }

    }

  }
if (document["PACKS_ORDER_CONFIRM"]) {
	loadPackDiv();
}
if (document["CallsForm"]) {set_mail_fax('CallsForm','span_email','span_fax'); set_zip_pass('CallsForm');}
if (document["ORDER_FORM"]) {set_mail_fax('ORDER_FORM','span_email2','span_fax2'); set_zip_pass2('ORDER_FORM');}
if (document["RerequestMonthlyReport"]) {set_mail_fax('RerequestMonthlyReport','span_email','span_fax'); set_zip_pass('RerequestMonthlyReport');}

if (document["CHANGE_PP_FORM"]) CHANGE_PP_FORM_P_AUTO_onClick();
}

function vClearContent() {

  if (this.value == aObjects[this.form.name + this.name]) {

    aObjects[this.form.name + this.name] = this.value;
    this.value = '';

  }
}

function vRestoreContent() {

  if (!this.value.length) this.value = aObjects[this.form.name + this.name];

}

