// JavaScript Document

function swapDisplay(id)
{	var i;
	i=document.getElementById(id)
	if(i.style.display=='none')
	{i.style.display='block'}
	else
	{i.style.display='none'}

}

function swapEstilo(id,estilo)
{
	var i;
	i=document.getElementById(id)
	if(i.className==estilo)
	{i.className=estilo+'over'}
	else
	{i.className=estilo}
}

function ocultarVolante() {
	var v,m;
	v=document.getElementById('volante');
	v.className='nada'
	m=document.getElementById('modal');
	modal.className='nada'	
}

function mostrarVolante() {
	var v,m;
	v=document.getElementById('volante');
	v.className='volante'
	m=document.getElementById('modal');
	modal.className='modal'	
}

function inwm(texto,obj) {
	if(obj.value==texto){
		obj.value='';
		obj.className=''}
	}

function wm(texto,obj) {
	if( obj.value.length<1 ){
		obj.value=texto;
		obj.className='wm'}
	}

function sl(texto,obj) {
	if( obj.value.length<1 ){
		obj.value=texto;
		obj.className='sl'}
	}

function sel(obj) {
	if(obj.selectedIndex>0)	
	obj.className='';
	else
	obj.className='wm'
}
