
//Preload de las imagenes del menu
Image1= new Image(140,20)
Image1.src = "http://www.rock-mendoza.com/contenidos/images/fondo_item_menu_a.gif"

Image2= new Image(140,20)
Image2.src = "http://www.rock-mendoza.com/contenidos/images/fondo_item_menu_hover.gif"

Image3= new Image(140,20)
Image3.src = "http://www.rock-mendoza.com/contenidos/images/fondo_item_submenu_a.gif"

Image4= new Image(140,20)
Image4.src = "http://www.rock-mendoza.com/contenidos/images/fondo_item_submenu_hover.gif"


function openWindow(url,wid,hei,scro,res)  
{
window.open(url, 'remote','menubar=no,toolbar=no,location=no,directories=no,background=#000000,status=no,scrollbars='+ scro +',resizable='+ res +',dependent,width='+ wid +',height='+ hei +',left=50,top=50');
}

function check_email(e) {
ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";
for(i=0; i < e.length ;i++){
if(ok.indexOf(e.charAt(i))<0){ 
return (false);
}	
} 
if (document.images) {
re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
if (!e.match(re) && e.match(re_two)) {
return (-1);		
} 
}
}	