
/* Affiche une image a partir des images dynamiques */
function ShowImage( me ) {
	url="showimage.php?Image="+me.src;
	//alert ( url );
	var mwidth = 400;
	var mheight = 300;
	var mleft= window.screenLeft;
	var mtop= window.screenTop;
	
	windowprops = "size=yes,scrollbars=yes,,resizable=yes,left="+ mleft +",top="+ mtop +",width=" + mwidth + ",height=" + mheight;
	preview = window.open(url, "preview", windowprops);
}

function ShowUrlImage( pUrl ) {
	url="showimage.php?Image="+pUrl;
	//alert ( url );
	var mwidth = 800;
	var mheight = 600;
	var mleft= window.screenLeft;
	var mtop= window.screenTop;

	windowprops = "size=yes,scrollbars=yes,,resizable=yes,left="+ mleft +",top="+ mtop +",width=" + mwidth + ",height=" + mheight;
	preview = window.open(url, "preview", windowprops);
}

function ShowUrl( pUrl, pWidth, pHeight ) {
	//url=pUrl;
	//alert ( url );
	//var mwidth = 800;
	//var mheight = 600;
	var mleft= window.screenLeft;
	var mtop= window.screenTop;

	windowprops = "size=yes,scrollbars=yes,,resizable=yes,left="+ mleft +",top="+ mtop +",width=" + pWidth + ",height=" + pHeight;
	preview = window.open(pUrl, "preview", windowprops);
}

/* utilise sur les news */
function FormSubmit(){
	document.forms["WBForm"].submit();
	//alert(document.URL+'&fltCategorie='+choix);
}

function UpdateInputFromSelect( pSelect, pInput  ){
	obj=document.forms['WBForm'];
	field=obj[pInput];
	mSelect=obj[pSelect];
	choix=mSelect.options[mSelect.selectedIndex].text;
	field.value=choix;
}

