// JavaScript Document

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+''
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function PrintPage() {
  if (window.print)
    window.print()
  else
    alert("O script não conseguiu envira o documento diretamente para impressão,nPressione Ctrl+P ou selecione Imprimir no menu Arquivo para imprimir esta página.");
}
function validaLink(){
	        d = document.formlink;
 if (d.nome1.value == ""){
                     alert("O campo nome deve ser preenchido!");
                    d.nome1.focus();
                    return false;
         }
		 if (d.email1.value == ""){
                     alert("O campo email deve ser preenchido!");
                    d.email1.focus();
                    return false;
         }
		 
		  if (d.nome2.value == ""){
                     alert("O campo nome do destinat&aacute;rio deve ser preenchido!");
                    d.nome2.focus();
                    return false;
         }
		 
		   if (d.email2.value == ""){
                     alert("O campo email do destinat&aacute;rio deve ser preenchido!");
                    d.email2.focus();
                    return false;
         }
		 return true;
}
