function showCommentForm(idlink, id, flag){
	if (flag) {
		$(id).style.display = 'none';
		$(idlink).setAttribute('href','javascript:showCommentForm(\'' + idlink + '\', \'' + id + '\', 0);');
	} else {
		$(id).style.display = 'block';
		$(idlink).setAttribute('href','javascript:showCommentForm(\'' + idlink + '\', \'' + id + '\', 1);');
	}
}
function formMail() {
	document.write('<div class="form_title">Compartir noticia:</div>'+
	'<a href="javascript:void(0);" onclick="$(\'sendfriend_form\').style.display = \'none\';" class="close">'+
	'<img src="'+basepath+'/res/images/anadir_close.gif" alt=""/></a>'+
	'<form action="javascript:submitDataSimple(\'Sendfriend\');" id="mailformid" name="data"> '+
	'<input type="hidden" name="frompage" value="sendfriend"/>'+ 
	'<input type="hidden" name="titlepage" value="'+title+'"/>'+
	'<input type="hidden" name="descriptionpage" value="'+description+'"/>'+
	'<input type="hidden" name="articlepath" value="'+articlepath+'"/>'+
	'<div class="rowform clearfix"><label for="to_email">A (Correo electr&oacute;nico):</label>'+
	'<input type="text" id="to_email" name="to_email"/></div>'+
	'<div class="rowform clearfix"><label for="from_email">De (Correo electr&oacute;nico):</label>'+
	'<input type="text" id="from_email" name="email"/></div>'+
	'<div class="rowform clearfix"><label for="message">Tus comentarios:</label> '+
	'<textarea id="message" name="body"></textarea></div>'+
	'<div class="btn_send"><input type="submit" value="Enviar"></div></form>'+
	'<div class="form_title">Enviar a  comunidades:</div><div class="logo"> '+
	'<a href="http://meneame.net/submit.php?url='+articlepath +'">'+
	'<img src="'+basepath+'/res/images/meneame.png"></a>'+
	'<a href="http://del.icio.us/post?title=&url='+articlepath+'">'+
	'<img src="'+basepath+'/res/images/delicious.png"></a>'+
	'<a href="http://www.digg.com/submit?url='+articlepath+'">'+
	'<img src="'+basepath+'/res/images/diggit.png"></a>'+
	'<a href="http://www.facebook.com/share.php?u='+articlepath+'">'+
	'<img src="'+basepath+'/res/images/facebook.png"></a>'+
	'<a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+articlepath+'">'+
	'<img src="'+basepath+'/res/images/yahoo.png"></a></div>' );
}
