// CACHE IMAGES AND MOUSEOVER FUNCTION

function brillar(x, y)
{
	document.images[x].src=eval(y+'.src');
}

// POPUP FUNCTIONS
function popWindow (url,myWidth,myHeight,myScrollbars,myTop,myLeft,myMenubar,myResize) {
window.open (url, "","width="+myWidth+",height="+myHeight+",scrollbars="+myScrollbars+",top="+myTop+",left="+myLeft+",menubar="+myMenubar+",resizable="+myResize+",bgcolor=#ffffff");
}

function popSpecWindow (url,myWidth,myHeight,myScrollbars,myTop,myLeft,myMenubar,myResize) {
window.open (url, "FeatureSpec","width="+myWidth+",height="+myHeight+",scrollbars="+myScrollbars+",top="+myTop+",left="+myLeft+",menubar="+myMenubar+",resizable="+myResize+",bgcolor=#ffffff");
}
// END POPUP FUNCTIONS
										
function popUp(page) {
	window.open(page,"POPUP","toolbar=0,location=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=500,height=500");
}

function validEmail(email) {
	if (email.length==0 || email.indexOf("@")==-1 || email.indexOf(".")==-1 || email.indexOf("..")!=-1 || email.indexOf("@.")!=-1 || email.indexOf(".@")!=-1 || email.indexOf("@")!=email.lastIndexOf("@") || email.substr(email.indexOf("@"),email.length-1).indexOf(".")==-1) {
		return false;
	}
	for (i=0;i<email.length;i++) {
		if ("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-@.".indexOf(email.substring(i,i+1))==-1) {
			return false;
		}
	}
	return true;
}

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


