function limparNoFocus(texto, tipo, campo)
{
	if(campo.value == texto)
	{
		campo.value = '';
	}
}

function escreverNoBlur(texto, tipo, campo)
{
	if(campo.value == "")
	{
 		campo.value = texto;	
	}
}


function validar(Form) 

 {
   if ( document.formulario_restrito.login.value.length <= 5 )
      { alert( "Informe seu Login.")
    	 document.formulario_restrito.login.focus() 
	    return false }

   if ( document.formulario_restrito.senha.value.length <= 3 )
      { alert( "Informe sua senha.")
    	 document.formulario_restrito.senha.focus() 
	    return false }
 }


 
function foco_campo()
{
	document.getElementById('mockpass').style.display='none'; 
	document.getElementById('realpass').style.display='inline'; 
	document.getElementById('realpass').focus();		
}

function blur_campo()
{
	if(this.value=='') 
	{
		document.getElementById('mockpass').style.display='inline'; 
		document.getElementById('realpass').style.display='none';
	}	

}

// When the page loads: 
function onloadObject(){ 
	if (document.getElementsByTagName) { 
	// Get all the tags of type object in the page. 
	var objs = document.getElementsByTagName("object"); 
		for (i=0; i<objs.length; i++) { 
		// Get the HTML content of each object tag 
		// and replace it with itself. 
		objs[i].outerHTML = objs[i].outerHTML; 
		} 
	} 
} 

// When the page unloads: 
function onunloadObjects() { 
	if (document.getElementsByTagName) { 
		//Get all the tags of type object in the page. 
		var objs = document.getElementsByTagName("object"); 
		for (i=0; i<objs.length; i++) { 
		// Clear out the HTML content of each object tag 
		// to prevent an IE memory leak issue. 
		objs[i].outerHTML = ""; 
		} 
	} 
} // JavaScript Document
