// JavaScript Document

function transparent(im) {
   if (!im.transparented && (/\.png/.test(im.src))) {
      im.transparented = 1;
      var picture = im.src; var w = im.width; var h = im.height;
      im.src = "./i/no.gif";
      im.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod='scale', src='"+picture+"');";
    //  im.width = w; im.height = h;
   }
   return "transparent";
}

function highlight(){
var atags=document.getElementsByTagName('a');
for(var i=0;i<(atags.length);i++) {
if(atags[i].className=="nav"){
if(document.location.href.indexOf(atags[i].href)!=-1){
atags[i].className="active";
}
}
}
}

function ShowHide(id)
{

if (id != '')
 {
  var itm = null;
  var pitm= null;
  if (document.getElementById) { itm = document.getElementById(id); }
  else if (document.all) { itm = document.all[id]; }
  else if (document.layers) { itm = document.layers[id]; }
  
   if (!itm) { /* do nothing */ }
  else if (itm.style)
  {
   if (itm.style.display == "none") { itm.style.display = ""; }
   else { itm.style.display = "none";}
  }
  else { itm.visibility = "show"; }
 }
 
  // id.style.display="visible";
}

function isValidEmail(email)
  {
    re = /^([a-z0-9_\-]+\.)*[a-z0-9_\-]+@([a-z0-9][a-z0-9\-]*[a-z0-9]\.)+[a-z]{2,4}$/i;
    return re.test(email);
        }
        
        
function makeCheck(address)
        {
            
        	if (isValidEmail(address)) {
        		return true;
        		document.zakform.submit;
        	} else {
           		
        		return false;
        		
        	}
        	
       return false;
        }