function check_form() {

    d = document.forms[0];

    if (d.tipo[0].checked == false && d.tipo[1].checked == false) {
        alert("Selecione o tipo de servico!");
        d.tipo[1].focus();
        return false;
    };

    if (d.local.value == '') {
        alert("O campo local deve ser preenchido!");
        d.local.focus();
        return false;
    };

    return true;
};



function open_frame(theURL, Name, popW, popH, scroll) { // V 1.0
   var winleft = (screen.width - popW) / 2;
   var winUp = (screen.height - popH) / 2;
   winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable=0'
   Win = window.open(theURL, Name, winProp)
   if (parseInt(navigator.appVersion) >= 4) {
      Win.window.focus();
   }

}
