function swap_home(id, src)
{
	var tt = new String();
	
	tt = src;

	if (tt.indexOf('off')>0)
		document.images[id].src = tt.replace(/off/,'on');
	
	if (tt.indexOf('on')>0)
		document.images[id].src = tt.replace(/on/,'off');
}

function abre(url, width, height, name, parms) {
   var left = Math.floor( (screen.width - width) / 2);
   var top = Math.floor( (screen.height - height) / 2);
   var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;
   if (parms) { winParms += "," + parms; }
   var win = window.open(url, name, winParms);
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function isEmail(piEmail) {
	var reEmail = /^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/g;
	
	return reEmail.test(piEmail);
}