
function akiMostrarEnXY(elem){
	document.getElementById(elem).style.top=sMouseY+"px";
	document.getElementById(elem).style.left=sMouseX+"px";
	document.getElementById(elem).style.display='';
	}
	
function showSearchInP2Web(){
	goAJAX('Dp2wCategs','ajax/p2w.search.v2.php', 'acc=LoadCats','','<option>Loading...</option>');
	//GetId('sVentanaSearchP2W').style.display='';
	new Effect.Appear('sVentanaSearchP2W',{duration:0.5});
	}
function hideSearchInP2Web(){
	//GetId('sVentanaSearchP2W').style.display='none';
	new Effect.Fade('sVentanaSearchP2W',{duration:0.3});

	}
	
function searchInP2Web(){
	var p='str='+GetId('frmSearchP2W').str.value;
	var selVals ='';
	for (var i = 0; i < document.frmSearchP2W.p2wCategs.length; i++) {
		if (document.frmSearchP2W.p2wCategs.options[i].selected) {
			selVals = selVals + document.frmSearchP2W.p2wCategs.options[i].value + ',' ;
		}
	}
	p = p + '&selVals='+selVals;
	goAJAX('frmSearchRes','ajax/p2w.search.v2.php', p);
	return false;
	}
function searchInP2WebPag(pagina){
	var p='str='+GetId('frmSearchRes').str.value;
	p = p + '&pagina='+pagina;
	goAJAX('frmSearchRes','ajax/p2w.search.v2.php', p);
	return false;
	}
