function popupProfil (src) {
	window.open(src,'', 'top=50, left=50, width=750, height=580, resizable=yes, toolbar=no, scrollbars=yes, status=yes');
}

function popupSmileys (src) {
	window.open(src,'', 'top=20, left=20, width=220, height=360, resizable=yes, toolbar=no, scrollbars=yes, status=yes');
}

function popupMessage (src) {
	window.open(src,'', 'top=20, left=20, width=600, height=445, resizable=yes, toolbar=no, scrollbars=yes, status=yes');
}

function popupSupprimer (src) {
	window.open(src,'', 'top=20, left=20, width=740, height=400, resizable=yes, toolbar=no, scrollbars=yes, status=yes');
}

function popupEditer (src) {
	window.open(src,'', 'top=20, left=20, width=740, height=400, resizable=yes, toolbar=no, scrollbars=yes, status=yes');
}

function popupAbus (src) {
	window.open(src,'', 'top=20, left=20, width=740, height=450, resizable=yes, toolbar=no, scrollbars=yes, status=yes');
}

function popupAide (src) {
	window.open(src,'', 'top=20, left=20, width=740, height=520, resizable=yes, toolbar=no, scrollbars=yes, status=yes');
}

function popupPixCatcher (src) {
	window.open('http://ame-soeur-mobile.pixcatcher.com/download/?url=http://www.ame-soeur.com/'+src,'', 'top=20, left=20, width=550, height=550, resizable=yes, toolbar=no, scrollbars=yes, status=yes');
}

function popupImage(src, noclic) {
	
	if (noclic) noclic = 'oncontextmenu="return false"';
	
	i1 = new Image;
	i1.src = src;

	html = '<html><head><title>Visionneuse - Ame-Soeur.com</title></head><body leftmargin="0" marginwidth="0" topmargin="0" marginHeight="0" '+noclic+'><a href="javascript:window.close()" title="Fermer la popup"><img src="'+src+'" border="0" name="photo" onLoad="window.resizeTo(document.photo.width+12,document.photo.height+60)" /></a></body></html>';
	if(i1.width>0){
		// Necessaire pour firefox qui gere mal resizeTo / ne marche que si image deja chargee
		popupPicture = window.open('','','resizable=yes, width='+(i1.width+4)+', height='+(i1.height+4)+', toolbar=no, scrollbars=no, status=yes');
	}else{
		popupPicture = window.open('','','resizable=yes,toolbar=no, scrollbars=no, status=yes');
	}
	popupPicture.document.open();
	popupPicture.document.write(html);
	popupPicture.document.close();
}

function go2url(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}