

    function switchImage(imgName, imgSrc) {

      if (document.images) {

        if (imgSrc != "none") {

          document.images[imgName].src = imgSrc;

        }

      }

    }



	function simplePreload()

	{ 

	  var args = simplePreload.arguments;

	  document.imageArray = new Array(args.length);

	  for(var i=0; i<args.length; i++)

	  {

		document.imageArray[i] = new Image;

		document.imageArray[i].src = args[i];

	  }

	}

	

    function chkLogin() {

	  if (document.frmLogin.fld_username.value == "") {

	    alert('Please enter your username.');

		document.frmLogin.fld_username.select();

		document.frmLogin.fld_username.focus();

		return false;

	  }

	  if (document.frmLogin.fld_password.value == "") {

	    alert('Please enter your password.');

		document.frmLogin.fld_password.select();

		document.frmLogin.fld_password.focus();

		return false;

	  }

	  return true;

	}

	

	function chkAddBlinds() {

	  if (document.addBlinds.CatID.selectedIndex == 0) {

	    alert('You must choose a category.');

		return false;

	  }

	  if (document.addBlinds.BlindType.value == "") {

	    alert('You must supply the blind type.');

		document.addBlinds.BlindType.select();

		document.addBlinds.BlindType.focus();

		return false;

	  }

	  if (document.addBlinds.BlindSize.value == "") {

	    alert('You must supply the blind size.');

		document.addBlinds.BlindSize.select();

		document.addBlinds.BlindSize.focus();

		return false;

	  }

	  if (document.addBlinds.BlindDesc.value == "") {

	    alert('You must supply the blind description.');

		document.addBlinds.BlindDesc.select();

		document.addBlinds.BlindDesc.focus();

		return false;

	  }

	  if (document.addBlinds.MostReq.checked == false) {

	    alert('You must choose whether or not this blind should be in the Most Requested sidebar.');

		return false;

	  }

	  return true;

	}

	

	function chkAddBlinds2() {

	  if (document.addBlinds2.bWidth.value == "") {

	    alert('You must enter a width.');

		document.addBlinds2.bWidth.select();

		document.addBlinds2.bWidth.focus();

		return false;

	  }

	  if (document.addBlinds2.bHeight.value == "") {

	    alert('You must enter a height.');

		document.addBlinds2.bHeight.select();

		document.addBlinds2.bHeight.focus();

		return false;

	  }

	  if (document.addBlinds2.bPrice.value == "") {

	    alert('You must enter a price.');

		document.addBlinds2.bPrice.select();

		document.addBlinds2.bPrice.focus();

		return false;

	  }

	}