function showHideLayer(layerName)
{
   new_style = (document.getElementById(layerName).style.display == "none") ? "block" : "none";
   document.getElementById(layerName).style.display = new_style;
}

function hideLayer(layerName)
{
   document.getElementById(layerName).style.display = 'none';
}

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

function hideAllLayers()
{
   document.getElementById('color_side').style.display = 'none';
   document.getElementById('color_top').style.display = 'none';
   document.getElementById('dimmensions').style.display = 'none';
   document.getElementById('technical_draw').style.display = 'none';
}

function modalWindow(file ,w ,h){
  _w = w+90;
  if (_w < 500) _w = 500;
  _h = h+50;
  if (_h < 300) _h = 300;
  myWin=open("","PictureWindow","width="+_w+",height="+_h+",status=no,toolbar=no,menubar=no,scrollbars=no");
  myWin.document.open();
  myWin.document.write("<html><head><title></title></HEAD>");
  myWin.document.write("<body  marginheight=0 marginwidth=0 topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0> <center><br><img src=" +file+ " border=0 width=" +w+ " height=" +h+ " onclick='window.close()'></center>");
  myWin.document.write("</body></html>");
  myWin.document.close();
}

 function verify_eng()
{
   var frm = document.forms["contact"];
   if (frm.name.value == "")
   {
    alert('Name is mandatory!');
    return false;
   }
   if (frm.email.value == "")
   {
    alert('Email is mandatory!');
    return false;
   }
   if(frm.message.value  == "")
   {
    alert('Message is mandatory!');
     return false;
   }
   return true;
}
 function verify_ro()
{
   var frm = document.forms["contact"];
   if (frm.name.value == "")
   {
    alert('Campul Nume este obligatoriu!');
    return false;
   }
   if (frm.email.value == "")
   {
    alert('Campul Adresa e-mail este obligatoriu!');
    return false;
   }
   if(frm.message.value  == "")
   {
    alert('Campul Mesaj este obligatoriu!!');
     return false;
   }
   return true;
}