
function dropFile(btn){
	if(document.getElementById) {
		tr = btn;
		while (tr.tagName != 'TR') tr = tr.parentNode;
		tr.parentNode.removeChild(tr);
		checkForLast();
	}
}

function addFile(btn){
	if(document.getElementById) {
		tr = btn;
		while (tr.tagName != 'TR') tr = tr.parentNode;
		var idSuffix = Math.round(Math.random()*1000);
		var newTr = tr.parentNode.insertBefore(tr.cloneNode(true),tr.nextSibling);
		thisChilds = newTr.getElementsByTagName('td');
		for (var i = 0; i < thisChilds.length; i++){
			if (thisChilds[i].className == 'header') thisChilds[i].innerHTML = '';
			if (thisChilds[i].className == 'text') thisChilds[i].innerHTML = '';
		}
		checkForLast();
	}
}

function checkForLast(){
	btns = document.getElementsByName('drop');

	for (i = 0; i < btns.length; i++){
		btns[i].disabled = (btns.length == 1) ? true : false;
	}
}

function verify_form(form_invite){

if (form_invite.name_from.value == ""){
alert("Digite seu nome");
form_invite.name_from.focus();
return (false);
}

if (form_invite.email_from.value == ""){
alert("Digite seu e-mail");
form_invite.email_from.focus();
return (false);
}

return (true);
}


  function janela(sUrl, sWidth, sHeight) {
    sTop=(768-sHeight)/2
    sLeft=(1024-sWidth)/2
	window.open(sUrl,'_blank','toolbar=no,top='+sTop+',left='+sLeft+',location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' + sWidth + ',height=' + sHeight);
  }
  function mOvr(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = clrOver;
	}
  }
  function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = clrIn;
	}
  }
  function mClk(src) {
    if(event.srcElement.tagName=='TD'){
	  src.children.tags('A')[0].click();
    }
  }
  function GoUrl(s)
        {       var d = s.options[s.selectedIndex].value
                window.top.location.href = d
                s.selectedIndex=0
  }
  function launchWindow(url, windowName, width, height) {
      window.open(url, windowName, "width=" + width + ", height=" + height + ", location=no, menubar=no, status=no, toolbar=no, scrollbars=1, resizable=yes");
  }

  function printPage(){
      browserVersion = parseInt(navigator.appVersion)
      if (browserVersion >= 4) window.print()
  }

  function bookmark(){
      if(document.all)
      window.external.AddFavorite(document.URL,document.title)
  }

  function ShowFlash(flashFile, width, height) {
      if (width  == null) width  = 800;
      if (height == null) height = 600;
      window.open('/Messenger/en-US/SWFs/Popup.aspx?FlashFile=' + flashFile, 'Flash', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + width + ',height=' + height);
  }

var bookmarkurl="http://www.wkr.com.br"
var bookmarktitle="WKR - WEB Solutions"
function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

<!--
  message     = ":: WKR - WEB Solutions - Soluções na Medida Certa! ::^" +
                ":: Desenvolvemos Soluções Para Internet - Hospedagem e Registro de Domínios ::^" +
                ":: Sites Básicos, Sites com Banco de Dados: MySQL, Access, MSDE, SQLServer, ... ::^" +
                ":: Criação, Manutenção e Atualização de Sites ... - Páginas em: HTML, PHP, ASP, (AJAX), ... ::^" +
                ":: Fale Conosco, Orçamento Sem Compromisso!!! ::^" +
                "^"
  scrollSpeed = 50
  lineDelay   = 1500

  txt         = ""

  function scrollText(pos) {
    if (message.charAt(pos) != '^') {
      txt    = txt + message.charAt(pos)
      status = txt
      pauze  = scrollSpeed
    }
    else {
      pauze = lineDelay
      txt   = ""
      if (pos == message.length-1) pos = -1
    }
    pos++
    setTimeout("scrollText('"+pos+"')",pauze)
  }
  scrollText(0)
  -->
