	function exibeFoto(cod_){
		linkUrl = "/inc/exibeFoto.asp?cod="+cod_;
		someWin = openWin('exibeFoto', linkUrl, 420, 320, false, false);
		someWin.focus(); 
		createPage(someWin,'exibeFoto','');
		someWin = null;
		return;
	}
	function novaEquipe(){
		if (PLT.NK_PLT.value == 999) {
				someWin = openWin('equipes', "/admin/equipes.asp", 150, 110, false, false);
				PLT.NK_PLT.selectedIndex=0
				someWin.focus(); 
				createPage(someWin,'equipes','');
				someWin = null;
				return;
		}
	}
	function createPage (theWin, cmd, param){
		document.forms.formBuffer.target = theWin.name;
		document.forms.formBuffer.command.value = cmd;
		document.forms.formBuffer.parameter.value = param;
		document.forms.formBuffer.popup.value = "true";
		document.forms.formBuffer.submit();
		document.forms.formBuffer.popup.value = "false";
	}
	function openWin(winName, urlLoc, w, h, showStatus, isViewer) {
		l = (screen.availWidth - w)/2;
		t = (screen.availHeight - h)/2;
		features  = "toolbar=no";      // yes|no 
		features += ",location=no";    // yes|no 
		features += ",directories=no"; // yes|no 
		features += ",status=" + (showStatus?"yes":"no");  // yes|no 
		features += ",menubar=no";     // yes|no 
		features += ",scrollbars=" + (isViewer?"yes":"no");   // auto|yes|no 
		features += ",resizable=" + (isViewer?"yes":"no");   // yes|no 
		features += ",dependent";      // close the parent, close the popup, omit if you want otherwise 
		features += ",height=" + h;
		features += ",width=" + w;
		features += ",left=" + l;
		features += ",top=" + t;
		winName = winName.replace(/[^a-z]/gi,"_");
		return window.open(urlLoc,winName,features);
	} 
	function selecionaCategoria(){
		peso = PLT.KG_PLT.value.replace(",",".");
		PLT.KG_PLT.value = peso.replace(".",",");
		fem = PLT.FEM_PLT.value;
		if (fem == 1){
			PLT.sCTGR_PLT.selectedIndex=5
			PLT.CTGR_PLT.value="F"
		} else if (peso < 61) {
			PLT.sCTGR_PLT.selectedIndex=0
			PLT.CTGR_PLT.value="A"
		} else if (peso < 71) {
			PLT.sCTGR_PLT.selectedIndex=1
			PLT.CTGR_PLT.value="B"
		} else if (peso < 81) {
			PLT.sCTGR_PLT.selectedIndex=2
			PLT.CTGR_PLT.value="C"
		} else if (peso < 91) {
			PLT.sCTGR_PLT.selectedIndex=3
			PLT.CTGR_PLT.value="D"
		} else if (peso >= 91) {
			PLT.sCTGR_PLT.selectedIndex=4
			PLT.CTGR_PLT.value="E"
		}
		PLT.EMAI_PLT.focus();
	}
