var MAC = (navigator.appVersion.indexOf("Mac") != -1);

if(!document.all&&!MAC){
 window.onresize = function(){
  location.reload();
 }
}
/*MakoLab*/
function submitform(fname) {
	document.forms[fname].submit();
}

function bBack() {
	history.back();	
}
/* Effacement automatique des champs de saisie */
function auto_fill(o, i){
 if(i){
  if(o.refv==null)
   o.refv = o.value;
  if(o.value==o.refv)
   o.value='';
   o.select();
 }
 else{
  if(o.value=='')
   o.value=o.refv;
 }
}

/* Rollovers fleches */
function _swap(o, state){
 theimg = o.getElementsByTagName("IMG").item(0);
 if(theimg.refsrc==null)
  theimg.refsrc = theimg.src.substring(0, theimg.src.length-4);
 if(state==1)
  theimg.src = theimg.refsrc + "_on.gif"; 
 else
  theimg.src = theimg.refsrc + ".gif"; 
}

/* Ouverture popup */
function popen(u, w, h, l, t){
 var _pop = window.open(u, 'rmpop', 'width='+w+', height='+h+', top='+t+', left='+l+', location=no, menubar=no, resizable=0, scrollbars=yes, status=no, toolbar=no, fullscreen=no');
 _pop.focus();
 return false;
}
