                function validation() 
                { 
                  var name=document.contactus.name.value;
                  var telephone=document.contactus.telephone.value;
                  var email=document.contactus.email.value;
                  var security_code=document.contactus.security_code.value;

                  name=name.replace(/^\s*|\s*$/g,"");
                  telephone=telephone.replace(/^\s*|\s*$/g,"");
                  email=email.replace(/^\s*|\s*$/g,"");
                  security_code=security_code.replace(/^\s*|\s*$/g,"");

                  if (name == '') {
                  alert("Please Fill Proper Name!");
                  document.contactus.name.focus();
                  return false;
                  }
                  if (telephone=='') {
                  alert("Please Fill Proper Telephone!");
                  document.contactus.telephone.focus();
                  return false;
                  }

                  if (email == '' || isValidEmail(email)==false) {
                  alert("Please Fill Proper Email!");
                  document.contactus.email.focus();
                  return false;
                  }
                  if (security_code=='') {
                  alert("Please Enter Exact Security Code provided in the image above!");
                  document.contactus.security_code.focus();
                  return false;
                  }

                }
                function isValidEmail(str) {
                return (str.indexOf(".") > 1) && (str.indexOf("@") > 0);

                }






function ReplaceContent(layerName){

if(ie){document.all[layerName].innerHTML = ContentInfo}


if(ns){

with(document.layers[layerName].document) 
{ 
   open(); 
   write(ContentInfo); 
   close(); 
}

}


}
function Activate(){initialize=1}
function deActivate(){initialize=0}

function showLayer(layerName)
{
  document.getElementById(layerName).style.display="block";
}
function hideLayer(layerName)
{

document.getElementById(layerName).style.display="none";

}




/* playAudio1() WORLDMAP POPUP ON GARDBAGS HEADER*/

function playAudio1() {
  var objPlayDiv = document.getElementById("audio");
  var objLightDiv = document.getElementById("light");
  objPlayDiv.className = "on";
  objLightDiv.className = "light";
  objPlayDiv.innerHTML = "<div class\"master_container\"><div  class=\"close_div\"><div class=\"title_label\">&nbsp;</div><div class=\"close_buttom\"><a href=\"javascript:void(0)\" onClick=\"stopAudio();\"><img src=\"images/closelabel.gif\" width=\"66\" height=\"22\" border=\"0\" alt=\"Close\" /></a></div></div><div style=\"padding-top:4px;\"> <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"1000\" height=\"500\" id=\"tech\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"images/gardbags_distributor.swf\" /><param name=\"quality\" value=\"high\" /><embed src=\"images/gardbags_distributor.swf\" quality=\"high\" width=\"1000\" height=\"500\" name=\"tech\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object> </div></div>";
}


function playAudio2() {
  var objPlayDiv = document.getElementById("audio");
  var objLightDiv = document.getElementById("light");
  objPlayDiv.className = "on";
  objLightDiv.className = "light";
  objPlayDiv.innerHTML = "<div class\"master_container\"><div  class=\"close_div\"><div class=\"title_label\">&nbsp;</div><div class=\"close_buttom\"><a href=\"javascript:void(0)\" onClick=\"stopAudio();\"><img src=\"images/closelabel.gif\" width=\"66\" height=\"22\" border=\"0\" alt=\"Close\" /></a></div></div><div style=\"padding-top:4px;\"> <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"1000\" height=\"500\" id=\"tech\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"images/taktbaton_distributor.swf\" /><param name=\"quality\" value=\"high\" /><embed src=\"images/taktbaton_distributor.swf\" quality=\"high\" width=\"1000\" height=\"500\" name=\"tech\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object> </div></div>";
}



/* playAudio10() Press Release Page Photo of NAmm Show*/

function playAudio10() {
  var objPlayDiv = document.getElementById("audio");
  var objLightDiv = document.getElementById("light");
  objPlayDiv.className = "on10";
  objLightDiv.className = "light";
  objPlayDiv.innerHTML = "<div class\"master_container\"><div  class=\"close_div\"><div class=\"title_label\"> NAMM Trade Show - Anaheim, CA. January 2011. </div><div class=\"close_buttom\"><a href=\"javascript:void(0)\" onClick=\"stopAudio();\"><img src=\"images/closelabel.gif\" width=\"66\" height=\"22\" border=\"0\" alt=\"Close\" /></a></div></div><div style=\"padding-top:4px;\"> <img src=\"images/tradeshow_large.jpg\" width=\"1000\" height=\"664\" /><br /><br /><b>From left to right - Renu Talwar, Vijay Talwar, Pooja Talwar, Viraj and Abhi Chakrabarti at the NAMM Show 2011</b></div></div>";
}

/* stopAudio() UNIVERSAL LIGHT WINDOW CLOSE BUTTON FUNCTION */

function stopAudio() {
  var objPlayDiv = document.getElementById("audio");
  var objLightDiv = document.getElementById("light");
  objPlayDiv.className = "off";
  objLightDiv.className = "off";
  objPlayDiv.innerHTML = "";
}






