// Cd-Media.fr - 10/2002
// common.js
var newfen=null;

function processPage( form )
{
         document.location = form.sel.options[form.sel.selectedIndex].value;
         form.sel.options[0].selected = true;
}




function fenexy( nom, x, y, sc ) {
  strhei = "HEIGHT=" + y
  strwid = "WIDTH=" + x
  if( sc ==null )  sc = 0
  scrol = "scrollbars=" + sc
  strf = strhei + "," + strwid + "," + scrol
  if( newfen != null ){
    newfen.close() }
  newfen = window.open(nom,"", strf)
}

function fenexy1( nom, x, y, sc ) {
	strhei = "HEIGHT=" + y
	strwid = "WIDTH=" + x
	if( sc ==null )  sc = 0
	scrol = "scrollbars=" + sc
	strf = strhei + "," + strwid + "," + scrol
	window.open(nom,"", strf)
}




function ar( container, go_url, methode, param  ) {	

	if( arguments.length == 3 ) {
		param =  Form.serialize( document.forms[0] );
	}
	$(container).innerHTML = 'Loading...';

	var xmlHttp = new Ajax.Updater( container, go_url, 
					{	method: methode,
						parameters: param
					}
				);
					
}


