function galerie_imagini(url) {
	w = 750;
	h = 600;
	sw = screen.width;
	sh = screen.height;
	l = (sw - w) / 2;
	t = (sh - h) / 2;
	window.open(url, 'galerie', 'width='+w+',height='+h+',top='+t+',left='+l+',scrollbars=no,resizable=no');
}

function showPic(whichpic) {
	if (document.getElementById) {
		document.getElementById('placeholder').src = whichpic.href.replace('thumbs', 'big');
		if (whichpic.title) {
			document.getElementById('desc').childNodes[0].nodeValue = whichpic.title;
		}
		else {
			document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
		}
		return false;
	}
	else {
		return true;
	}
}

function anunta_un_prieten(url) {
	var popUpWidth = 496;
	var popUpHeight = 385;
	var popUpTop = (screen.height - popUpHeight) / 2;
	var popUpLeft = (screen.width - popUpWidth) / 2;
	window.open(url,'anunta', 'top='+popUpTop+',left='+popUpLeft+',height='+popUpHeight+',width='+popUpWidth+',scrollbars=no');
}

function alerta_stoc(url) {
	var popUpWidth = 496;
	var popUpHeight = 385;
	var popUpTop = (screen.height - popUpHeight) / 2;
	var popUpLeft = (screen.width - popUpWidth) / 2;
	window.open(url,'alerta', 'top='+popUpTop+',left='+popUpLeft+',height='+popUpHeight+',width='+popUpWidth+',scrollbars=no');
}

function comentarii(url) {
	var popUpWidth = 550;
	var popUpHeight = 550;
	var popUpTop = (screen.height - popUpHeight) / 2;
	var popUpLeft = (screen.width - popUpWidth) / 2;
	window.open(url,'comentarii', 'top='+popUpTop+',left='+popUpLeft+',height='+popUpHeight+',width='+popUpWidth+',scrollbars=no');
}

function comentarii_producator(url) {
	var popUpWidth = 496;
	var popUpHeight = 550;
	var popUpTop = (screen.height - popUpHeight) / 2;
	var popUpLeft = (screen.width - popUpWidth) / 2;
	window.open(url,'comentarii_prod', 'top='+popUpTop+',left='+popUpLeft+',height='+popUpHeight+',width='+popUpWidth+',scrollbars=no');
}

function informatii(pid) {
	var popUpWidth = 550;
	var popUpHeight = 550;
	var popUpTop = (screen.height - popUpHeight) / 2;
	var popUpLeft = (screen.width - popUpWidth) / 2;
	window.open('/informatii/'+pid+'/', 'informatii', 'top='+popUpTop+',left='+popUpLeft+',height='+popUpHeight+',width='+popUpWidth+',scrollbars=no');
}