
  // Function for highlighting
  
  function highlight(obj,color) {
    obj.style.backgroundColor = color;
  }
  
  function highlight2(obj,color) {
    obj.style.color = color;
  }
  
  // Function to toggle image uploader

  function togglecheckdiv(obj1,obj2) {
    if (obj1.checked) {
      obj2.style.visibility = "visible";
    } else {
      obj2.style.visibility = "hidden";
    }
  }  
  
  // Function for redirecting

  function redirect(url) {
    document.location = url;
  }
	
  // Function for preload cached images
  
  function preloadpic() {
    if (document.images) {
      timg1 = new Image();
      timg1.src = "images/index3.gif"; 
      timg2 = new Image();
      timg2.src = "images/index4.gif"; 
      timg3 = new Image();
      timg3.src = "images/index5.gif"; 
      timg4 = new Image();
      timg4.src = "images/index6.gif"; 
	  
    }   
  }
  
  // Function for menus
  
  function wrn(obj) { obj.src = "images/indexklik3.gif"; }
  function wrn1(obj) { obj.src = "images/index3.gif"; }

  function wrmj(obj) { obj.src = "images/indexklik4.gif"; }
  function wrmj1(obj) { obj.src = "images/index4.gif"; }
  
  function wrr(obj) { obj.src = "images/indexklik5.gif"; }
  function wrr1(obj) { obj.src = "images/index5.gif"; }
  
  function wik(obj) { obj.src = "images/indexklik6.gif"; }
  function wik1(obj) { obj.src = "images/index6.gif"; }

  
  function showhidediv2(obj) {
    if (obj.style.visibility == "visible") {
      obj.style.height = 1;
      obj.style.visibility = "hidden";
    } else {
      obj.style.height = 80;
      obj.style.visibility = "visible";
    }
  }  
  
    function showhidediv3(obj,h) {
      if (obj.style.visibility == "visible") {
        obj.style.height = 1;
        obj.style.visibility = "hidden";
      } else {
        obj.style.height = 18+(h*15);
        obj.style.visibility = "visible";
      }
  }  
  
  function showhidediv4(obj,h,obj2) {
    if (obj.style.visibility == "visible") {
      obj.style.height = 1;
      obj2.style.height = parseInt(obj2.style.height) - (18+(h*15));
      obj.style.visibility = "hidden";
    } else {
      obj.style.height = 18+(h*15);
      obj2.style.height = parseInt(obj2.style.height) + (18+(h*15));
      obj.style.visibility = "visible";
    }
  }  