  strStatus = "© 2010 A&B Mylec Pty Ltd";

  function openNewWindow(theURL,winName,winScroll,winResize,winStatus,newWindowWidth,newWindowHeight) {
    newWindowLeft = (screen.width - newWindowWidth - 10) / 2;
    newWindowTop = (screen.height - newWindowHeight - 60) / 2;

    window.open(theURL,winName,'scrollbars=' + winScroll + ',resizable=' + winResize + ',status=' + winStatus + ',width=' + newWindowWidth + ',height=' + newWindowHeight + ',left=' + newWindowLeft + ',top=' + newWindowTop);
    return false;
  }

  function loadBody() {
    window.status = strStatus;
    window.focus();
    return false;
  }

  function defaultStatus() {
    window.status = strStatus;
    return true;
  }

  function setStatus(statusString) {
    window.status = statusString;
    return true;
  }

  function textareaInput(theField,inputLength) {
    if (theField.value.length >= inputLength) {
      alert("You have reached the maximum " +  inputLength + " characters for this field" );
      return false;
    }
  }

  function writeFlash(src, width, height, transparent) {
    // get current date and format into a variable with filename
      var myDate = new Date();
      var dd = myDate.getDate();
      var mm = myDate.getMonth() + 1;
      var yyyy = myDate.getFullYear();
      var filenameSWF = src+"?cfg="+yyyy+mm+dd;

    // assemble flash obj
    var l1 = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="controls" align="middle">';
    var l2 = '	<param name="allowScriptAccess" value="sameDomain" />';
    var l3 = '	<param name="movie" value="'+filenameSWF+'" />';
    var l4 = '	<param name="quality" value="high" />';
    if (transparent != 'no') {
      var l5 = '  <param name="wmode" value="transparent" >';
      var l6 = '	<embed src="'+filenameSWF+'" quality="high" width="'+width+'" height="'+height+'" wmode="transparent" name="controls" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
  	}
    else  {
      var l6 = '	<embed src="'+filenameSWF+'" quality="high" width="'+width+'" height="'+height+'" name="controls" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
    }
    var l7 = '</object>';

    // write all lines
    if (transparent != 'no') {
      document.write(l1+l2+l3+l4+l5+l6+l7);
    }
    else {
      document.write(l1+l2+l3+l4+l6+l7);
    }    
  }

  function checkForm(theForm) {
    var custName = theForm.txtName.value;
    var custEmail = theForm.txtEmail.value;
    var custComment = theForm.txtComment.value;

    if (custName == "" || custEmail == "" || custComment == "") {
      var errMsg = "Please check the following:\n";

      if (custName == "") {
        errMsg += "\n* Name is required";
      }
      if (custEmail == "") {
        errMsg += "\n* E-mail is required";
      }
      if (custComment == "") {
        errMsg += "\n* Comment is required";
      }

      alert(errMsg)
      return false;
    }
  }

  function toggleWeather(showCurrent) {
    var current = "";
    var forecast = "";

    if (showCurrent) {
      current = "";
      forecast = "none";
    }
    else {
      current = "none";
      forecast = "";
    }      

    target1 = document.all("weather1");
    target2 = document.all("weather2");
    target3 = document.all("weather");
    target4 = document.all("forecast1");
    target5 = document.all("forecast2");
    target6 = document.all("forecast");

    target1.style.display = current;
    target2.style.display = current;
    target3.style.display = current;
    target4.style.display = forecast;
    target5.style.display = forecast;
    target6.style.display = forecast;

    return false;
  }

  function toggleWeatherUnit(showCelsius) {
    var celsius = "";
    var fahrenheit = "";

    if (showCelsius) {
      celsius = "";
      fahrenheit = "none";
    }
    else {
      celsius = "none";
      fahrenheit = "";
    }      

    target1 = document.all("celsius1");
    target2 = document.all("celsius");
    target3 = document.all("fahrenheit1");
    target4 = document.all("fahrenheit");

    target1.style.display = celsius;
    target2.style.display = celsius;
    target3.style.display = fahrenheit;
    target4.style.display = fahrenheit;

    return false;
  }

