function showWaitLayer( sLayer )
{
	document.getElementById(sLayer).className="show";
//	document.getElementsByTagName('body').className='nocursor';
}

function checkCIF( sUserObj )
{
	oUser = getById( sUserObj );
	sUser = getById( sUserObj ).value;
	if( sUser.indexOf( '.' ) != -1 || sUser.indexOf( '-' ) != -1 || sUser.indexOf( '_' ) != -1 || sUser.indexOf( ' ' ) != -1 || sUser.indexOf( '/' ) != -1 || sUser.indexOf( '\\' ) != -1 )
	{
		alert( 'No use signos de puntuación en el CIF/NIF/NIE como puntos, guiones, espacios, barras, etc.' );
		oUser.focus();
		oUser.select();
		return false;
	}
	transformCIF( oUser );
	return true;
}

function transformCIF( oInput )
{
	oInput.value = oInput.value.toUpperCase().replace(/([^0-9A-Z])/g,"");
}

function onlyNumbers( oInput )
{
	oInput.value = oInput.value.toUpperCase().replace(/([^0-9])/g,"");
}
