
window.onload = init;

var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/; 

function init(){
	var email = document.getElementById('info0');
	if(email){
		 email.innerHTML = 'info@anakenashipping.com';	
		 email.href = 'mailto:info@anakenashipping.com'
	}
	var email = document.getElementById('info1');
	if(email){
		 email.innerHTML = 'info@anakenashipping.com';	
		 email.href = 'mailto:info@anakenashipping.com'
	}
	email = document.getElementById('juan');
	if(email){
		 email.innerHTML = 'juan@anakenashipping.com';	
		 email.href = 'mailto:juan@anakenashipping.com'
	}
	email = document.getElementById('samuel');	
	if(email){
		 email.innerHTML = 'samuel@anakenashipping.com';	
		 email.href = 'mailto:samuel@anakenashipping.com'
	}	
	email = document.getElementById('anahi');
	if(email){
		 email.innerHTML = 'anahi@anakenashipping.com';	
		 email.href = 'mailto:anahi@anakenashipping.com'
	}	
	email = document.getElementById('account');
	if(email){
		 email.innerHTML = 'account@anakenashipping.com';	
		 email.href = 'mailto:account@anakenashipping.com'
	}
	email = document.getElementById('efectos');
	if(email){
		 email.innerHTML = 'efectospersonales@anakenashipping.com';	
		 email.href = 'mailto:efectospersonales@anakenashipping.com'
	}
	
}

function remark(lab, remark, msg){
	if(remark){
		document.getElementById(lab).className = 'red';
		var dmsg = document.getElementById('msg');
		if(dmsg)
			dmsg.innerHTML = '&raquo; ' + msg;
		else
			alert(msg);
	}else{
		document.getElementById(lab).className = '';			
		var dmsg = document.getElementById('msg');
		if(dmsg)		
			dmsg.innerHTML = '';	
	}
}	

function remarkBox(){
	document.getElementById('lopd').style.borderColor = '#ff0000';
	setTimeout("document.getElementById('lopd').style.borderColor = '#ffffff'", 500);
	setTimeout("document.getElementById('lopd').style.borderColor = '#ff0000'", 1000);
	setTimeout("document.getElementById('lopd').style.borderColor = '#ffffff'", 1500);
	setTimeout("document.getElementById('lopd').style.borderColor = '#ff0000'", 2000);	
	setTimeout("document.getElementById('lopd').style.borderColor = '#ffffff'", 2500);
}

function checkEmail(strng){
    var emailFilter=/^.+@.+\..{2,6}$/;
    if(!(emailFilter.test(strng))){ 
       return false;
    }else{
       var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/;
         if(strng.match(illegalChars)){
       		return false;
       }
    }
	return true;
}

