<!--
  function enableFieldCheck(form, field, checkBox) {
    if(checkBox.checked == true) {
      eval("document."+form+"."+field+".disabled=false");
    } else {
      eval("document."+form+"."+field+".disabled=true");
    }
  }
  function enableField(form, field, disable) {
    eval("document."+form+"."+field+".disabled="+disable);
  }
  function checkTextArea(form, field, length)
  {
    var data;
  
    data=eval(form+"."+field+".value");
    if(data.length > length)
      eval(form+"."+field+".value='"+data.substring(0, length)+"'");
  }

  function popupFAQ()
  {
    window.open('http://www.tourismnewzealand.com/tourism_info/industry-resources/explore-new-zealand/explore-new-zealand-2009---2010-faq.cfm', 'FAQ', 'scrollbars=yes,resizable=yes,menubar=yes,toolbar=yes');
  }

  function popupPostCode()
  {
    window.open('http://www.nzpost.co.nz/Cultures/en-NZ/OnlineTools/PostCodeFinder/', 'popup', 'scrollbars=yes,resizable=no,menubar=no,toolbar=no');
  }

  function popupSample()
  {
    window.open('sample.html', 'popup', 'width=750,height=489,top=100,left=100,scrollbars=yes,resizable=no,menubar=no,toolbar=no');
  }  function popupSampleOffer()
  {
    window.open('sample_offer.html', 'popup', 'width=750,height=489,top=100,left=100,scrollbars=yes,resizable=no,menubar=no,toolbar=no');
  }  function popupSampleRetail()
  {
    window.open('sample_retail.html', 'popup', 'width=750,height=489,top=100,left=100,scrollbars=yes,resizable=no,menubar=no,toolbar=no');
  }  function popupSampleLogo()
  {
    window.open('sample_logo.html', 'popup', 'width=750,height=489,top=100,left=100,scrollbars=yes,resizable=no,menubar=no,toolbar=no');
  }  function popupSampleNoLogo()
  {
    window.open('sample_nologo.html', 'popup', 'width=750,height=489,top=100,left=100,scrollbars=yes,resizable=no,menubar=no,toolbar=no');
  }  function popupSampleConditions()
  {
    window.open('sample_conditions.html', 'popup', 'width=750,height=489,top=100,left=100,scrollbars=yes,resizable=no,menubar=no,toolbar=no');
  }

  var popupHandle;
  
  function popupLogo()
  {
    popupHandle = window.open('attach.php', 'popup', 'width=329,height=380,top=100,left=100,scrollbars=no,resizable=no,menubar=no,toolbar=no');
  }

  function closePopup()
  {
    popupHandle.close();
  }

  function submitForm(form, action)
  {
    eval("self."+form+".action.value='"+action+"'");
    eval("self."+form+".submit()");
  }

  function digitsOnly(form, field)
  {
    var	data;
    var output = "";
    
    data = eval("self."+form+"."+field+".value");
    for(i=0; i<data.length; i++)
    {
      c = data.substring(i, i+1);
      if((c >= '0') && (c <= '9'))
	    output += c;
    }
    
    eval("self."+form+"."+field+".value='"+output+"'");
  }
      
//-->
