var URLSite = "http://www.clickartweb.com.br/";
var TituloSite = "Agência Click Art - desenvolvimento de sites e soluções para internet";
function addfav(){
	if (document.all) window.external.AddFavorite(URLSite,TituloSite);
}

//Função que valida dados do formulário de contato
function validaDados(form){	
  if(form.user.value == ""){
	   alert("Por favor digite seu nome.");
	   return false;
   }
   if(form.senha.value == ""){
	   alert("Por favor digite sua senha.");
	   return false;
   }
   return true;
}

var tamanhos = new Array('11px','12px','13px','14px','15px','16px','17px');
var tamanhoInicial = 3;
 
function mudaTamanho( idAlvo,acao ){
  if (!document.getElementById) return
  var selecionados = null,tamanho = tamanhoInicial,i,j,tagsAlvo;
  tamanho += acao;
  if ( tamanho < 0 ) tamanho = 0;
  if ( tamanho > 6 ) tamanho = 6;
  tamanhoInicial = tamanho;
  if ( !( selecionados = document.getElementById( idAlvo ) ) ) selecionados = document.getElementsByTagName( idAlvo )[ 0 ];
  
  selecionados.style.fontSize = tamanhos[ tamanho ];
  
  for ( i = 0; i < tagAlvo.length; i++ ){
    tagsAlvo = selecionados.getElementsByTagName( tagAlvo[ i ] );
    for ( j = 0; j < tagsAlvo.length; j++ ) tagsAlvo[ j ].style.fontSize = tamanhos[ tamanho ];
  }
}

function popUpWindow(URLStr, left, top, width, height) 
{
    popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',screenX=' + left + ',screenY=' + top + '');
}

	// DESABILITA BOTÃO DIREITO DO MOUSE
	if (window.Event) 
        document.captureEvents(Event.MOUSEUP); 

    function nocontextmenu() 
    { 
        event.cancelBubble = true 
        event.returnValue = false; 

        return false; 
    } 

    function norightclick(e) 
    { 
        if (window.Event) 
        { 
            if (e.which == 2 || e.which == 3) 
                return false; 
        } 
        else 
            if (event.button == 2 || event.button == 3) 
            { 
                event.cancelBubble = true 
                event.returnValue = false; 
				return false; 
            } 

    } 
    if (document.layers) 
	{ 
        document.captureEvents(Event.MOUSEDOWN); 
    } 
    document.oncontextmenu = nocontextmenu; 
    document.onmousedown   = norightclick; 
    document.onmouseup     = norightclick;
	// FIM DESABILITA BOTÃO DIREITO*/