

function openWindow(URL,Name,Properties)
{
	open(URL,Name,Properties);
}

function fieldEval(node, firstValue)	{
	if (node.value == firstValue)	{
		node.value = "";	
	}
}
function fieldEvalBlur(node, firstValue)	{
	if (node.value == "")	{
		node.value = firstValue;	
	}
}
function openProductInfo(URL)	{
	var properties = "width=700,height=500,toolbar=no,location=yes,status=yes,menubar=no,scrollbars=yes,resizable=yes";
	var win = window.open(URL, "product", properties);
	win.focus();
}

function jump(URL)
{
	//window.alert(URL);
	parent.location.href=URL;
}

function reloadOpener() {
 	// Recarga la ventana que abrió a la que ejecuta este javascript.
	if (self.opener) self.opener.location.reload();
}

function sendToAFriend(url)
{
	open("WebApp?Resource=IdealPortal.SendToAFriend&URL="+url,"SendToAFriend","width=350,height=300,scrollbars=no");
}

/* 
   +------------------------------------------------------------+
   +	22-10-2002												+
   +															+
   +	Activació i desactivació de l'obra d'una taula de menus	+
   +	s'han de cpaturar els events onmouseover i onmouseout	+
   +															+
   +------------------------------------------------------------+
*/

function activar_ombra(colorfondo)
{
	
//	window.all.itembyname("Menu_row").style.backgroundColor=colorfondo;

//	if (window.event.srcElement.className == "Menu_row" )	
//	{
    	window.event.srcElement.style.backgroundColor=colorfondo;
//	}
    	/**/	
	return true;    	
}

function desactivar_ombra(colorfondo)
{
		
	//window.all.itembyname("Menu_row").style.backgroundColor=colorfondo;

//	if (window.event.srcElement.className == "Menu_row" )	
//	{
		window.event.srcElement.style.backgroundColor=colorfondo;
//	}	
	/**/
	return true;
}     
/*
function activar_ombra(id,colorfondo)
{
	var obj = id;
	
	this.style[obj].backgroundColor=colorfondo;
	return true;
}	
function desactivar_ombra(id,colorfondo)
{
	var obj = id;
	
	this.style[obj].backgroundColor=colorfondo;
	return true;
}*/