function sendcontactform(obj1,obj2) {
  obj2.submit();
  obj1.innerHTML = '<div class = "C_03"><br /><br /><br />Please wait while your message is being sent</div>';
}

function clearcontactform(obj1,obj2,obj3,obj4) {
  obj1.value = '';
  obj2.value = '';
  obj3.value = '';
  obj4.value = '';     
}

function change_option(obj1,obj2,mytext){   
  obj2.value = mytext;
  obj1.submit();   
}

function changeimage(obj,s) { obj.src = s; }

function preloadpictures() {
  if (document.images) {
    main_menuimg1 = new Image(); main_menuimg1.src = "images/main_menu01b.jpg";
    menu_img1 = new Image(); menu_img1.src = "images/menu01b.jpg";
    menu_img2 = new Image(); menu_img2.src = "images/menu02b.jpg";
    menu_img3 = new Image(); menu_img3.src = "images/menu03b.jpg";
    menu_img4 = new Image(); menu_img4.src = "images/menu04b.jpg";
    menu_img5 = new Image(); menu_img5.src = "images/menu05b.jpg";
    menu_img6 = new Image(); menu_img6.src = "images/menu06b.jpg";
    menu_img7 = new Image(); menu_img7.src = "images/menu07b.jpg";
    products_img1b = new Image(); products_img1b.src = "data/products_img1b.jpg";
    products_img2b = new Image(); products_img2b.src = "data/products_img2b.jpg";
    products_img3b = new Image(); products_img3b.src = "data/products_img3b.jpg";
    products_img4b = new Image(); products_img4b.src = "data/products_img4b.jpg";
    products_img5b = new Image(); products_img5b.src = "data/products_img5b.jpg";
    products_img6b = new Image(); products_img6b.src = "data/products_img6b.jpg";
    products_img7b = new Image(); products_img7b.src = "data/products_img7b.jpg";
    products_text1b = new Image(); products_text1b.src = "data/products_text1b.jpg";
    products_text2b = new Image(); products_text2b.src = "data/products_text2b.jpg";
    products_text3b = new Image(); products_text3b.src = "data/products_text3b.jpg";
    products_text4b = new Image(); products_text4b.src = "data/products_text4b.jpg";
    products_text5b = new Image(); products_text5b.src = "data/products_text5b.jpg";
    products_text6b = new Image(); products_text6b.src = "data/products_text6b.jpg";
    products_text7b = new Image(); products_text7b.src = "data/products_text7b.jpg";
    contactus_btn1 = new Image(); contactus_btn1.src = "images/contactus_btn1b.jpg";
    contactus_btn2 = new Image(); contactus_btn2.src = "images/contactus_btn2b.jpg";
    contactus_button1 = new Image(); contactus_button1.src = "images/contactus_button1b.jpg";
    header_img1 = new Image(); header_img1.src = "images/header01.jpg";
    header_img2 = new Image(); header_img2.src = "images/header02.jpg";
    header_img3 = new Image(); header_img3.src = "images/header03.jpg";
    header_img4 = new Image(); header_img4.src = "images/header04.jpg";
    header_img5 = new Image(); header_img5.src = "images/header05.jpg";
    header_img6 = new Image(); header_img6.src = "images/header06.jpg";
    products_img1a = new Image(); products_img1a.src = "data/products_img1a.jpg";
    products_img2a = new Image(); products_img2a.src = "data/products_img2a.jpg";
    products_img3a = new Image(); products_img3a.src = "data/products_img3a.jpg";
    products_img4a = new Image(); products_img4a.src = "data/products_img4a.jpg";
    products_img5a = new Image(); products_img5a.src = "data/products_img5a.jpg";
    products_img6a = new Image(); products_img6a.src = "data/products_img6a.jpg";
    products_img7a = new Image(); products_img7a.src = "data/products_img7a.jpg";
    products_text1a = new Image(); products_text1a.src = "data/products_text1a.jpg";
    products_text2a = new Image(); products_text2a.src = "data/products_text2a.jpg";
    products_text3a = new Image(); products_text3a.src = "data/products_text3a.jpg";
    products_text4a = new Image(); products_text4a.src = "data/products_text4a.jpg";
    products_text5a = new Image(); products_text5a.src = "data/products_text5a.jpg";
    products_text6a = new Image(); products_text6a.src = "data/products_text6a.jpg";
    products_text7a = new Image(); products_text7a.src = "data/products_text7a.jpg";
    companyprofile_text1 = new Image(); companyprofile_text1.src = "images/companyprofile_text1b.jpg";
    companyprofile_text2 = new Image(); companyprofile_text2.src = "images/companyprofile_text2b.jpg";
    exportdivision_map = new Image(); exportdivision_map.src = "images/exportdivision_map.jpg";
    bg1 = new Image(); bg1.src = "images/companyprofile_bg.jpg";
    bg2 = new Image(); bg2.src = "images/exportdivision_bg.jpg";
    bg3 = new Image(); bg3.src = "images/products_bg.jpg";
    bg4 = new Image(); bg4.src = "images/career_bg.jpg";
    bg5 = new Image(); bg5.src = "images/news_bg.jpg";
    bg6 = new Image(); bg6.src = "images/contactus_bg.jpg";
  } 
}

function togglecheckdiv(obj1, obj2) {
  if (obj1.checked) {
    obj2.style.visibility = "visible";
  } else {
    obj2.style.visibility = "hidden";
  }
}