 function changeForm( param, idioma ){

   document.getElementById('f_client').action= (param == 0)? 'https://sso.orange.es/amserver/gateway' : 'http://clientesadsl.orange.es/userinfo.php' ;
   document.getElementById('url').value = (param == 0)? 'https://areaprivada.orange.es/neos/init.neos?utm_source=homeclientes&utm_medium=form&utm_term=login&utm_campaign=loginmovil' : 'https://areaprivada.orange.es/?utm_source=homeclientes&utm_medium=form&utm_term=login&utm_campaign=loginmovil' ;   
   if(document.getElementById('user'))
   {
	 if ( idioma && idioma == 'ca'	)	   
     	document.getElementById('user').value = ( param == 0 )? 'telefon ' : 'usuari';
	else {
		document.getElementById('user').value = ( param == 0 )? 'teléfono' : 'usuario';
		document.getElementById('user').className = ( param == 0 )? 'tlfno' : 'usr';		
	}
     document.getElementById('user').name =( param == 0 )? 'IDToken1' : 'login';
   }
   if(document.getElementById('pwd'))
   {
     document.getElementById('pwd').name = (param == 0) ? 'IDToken2' : 'password';
   }
   if ( idioma && idioma == 'ca' )   
    document.getElementById('select').innerHTML =(param == 0)? '' : '<select name="domain" id="domain" ><option  value="wanadoo.es">@wanadoo.es</option><option selected="selected" value="orange.es">@orange.es</option><option value="fija">Telefonia Fixa</option></select>';
   else {
	document.getElementById('select').innerHTML =(param == 0)? '' : '<select name="domain" id="domain" ><option  value="wanadoo.es">@wanadoo.es</option><option selected="selected" value="orange.es">@orange.es</option><option value="fija">Telefonía Fija</option></select>';   
	document.getElementById('select').style.display = (param == 0) ? 'none' : 'inline';
   }
   var obj =  document.getElementById('nuevo');   
   var obj1 =  document.getElementById('olvido');      
   if ( param == 0 ) {
		obj.onclick= function(){
			openMod('info');
		}
		obj1.onclick= function(){
			openMod('info');
		}		 
   } else {
		obj.onclick= function(){
			openMod('info2');
		}
		obj1.onclick= function(){
			openMod('info2');
		}		   
   }
 }

function muestraPass()
{
 document.getElementById('pwdFake').style.display = 'none';
 document.getElementById('pwd').style.display = 'inline';
 document.getElementById('pwd').focus();
}

function openMod(div){	
 if ( div && div.indexOf('form') > -1 ) {
	 var aux = ( div && div.indexOf('1') > -1 ) ? 'info' : 'info2';
	 div = 'form';
 } else {
	 var aux = 'form';	 
 }
 if(document.getElementById(div) && document.getElementById(div).style.display=="none")
 {
 document.getElementById(aux).style.display="none";
 document.getElementById(div).style.display="inline";
 }
} 