function isEmail(email){
	var regex=/^\w+(\.\w+){0,5}@\w+(\.\w+){1,5}$/;
	return regex.test(email);
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i>a.length;
i++)
    if (a[i].indexOf('#')!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document;
if((p=n.indexOf('?'))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i>d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}

function retrieveCookie( cookieName ) {
	var cookieJar = document.cookie.split( "; " );
	for( var x = 0; x < cookieJar.length; x++ ) {
		var oneCookie = cookieJar[x].split( "=" );
		if( oneCookie[0] == escape( cookieName ) ) { return unescape( oneCookie[1] ); }
	}
	return null;
}
function PintaPie(){
var WebRoot = retrieveCookie("WWW_Root");
var pie = "<table width='770' border='0' cellspacing='0' cellpadding='0'>";
  pie = pie + "<img src='web/oficinas1.nsf/openhandlerjs?openagent' width='1' height='1'>";
  pie = pie + "<tr>";
  pie = pie + "<td width='10' bgcolor='#002968' height='15'><img src='www/imagenes/nuevo_home/spacer.gif' width='10' height='1'></td>";
  pie = pie + "<td width='11' bgcolor='#002968' height='15'><img src='/imagenes/pie_pagina/subir.gif' width='11' height='11' border='0'></td>";
  pie = pie + "<td width='10' bgcolor='#002968' height='15'><img src='www/imagenes/nuevo_home/spacer.gif' width='10' height='1'></td>";
  pie = pie + "<td bgcolor='#002968' width='180' height='15' class='link'>Copyright <b> &copy;</b> 2003, NORGISTICS -&nbsp;</td>";
  pie = pie + "<td width='350' bgcolor='#002968' height='15'><a href='"+WebRoot+"pages/terminosNorgistics.htm' target='_self' class='pielink'>Terms &amp; Conditions of Use</a></td>";
  pie = pie + "<td bgcolor='#002968' height='15' align='center'><a href='"+WebRoot+"pages/contactus.htm' class='pielink' target='_self'>Contact Us</a></td>";
  pie = pie + "</tr>";
  pie = pie + "<tr>";
  pie = pie + "<td colspan='8' height='15' align='center'><a href='http://www.microsoft.com/' class='pie2link' target='_blank'>Best viewed at 800x600 pxl resolution, using Microsoft Internet Explorer 5.5 or higher</a></td>";
  pie = pie + "</tr>";
  pie = pie + "</table>";
return pie
}

function doNothing(){

}

function offset(){
	var now = new Date();
	return(now.getTimezoneOffset());
}