function exibeFlash(swf, width, height, wmode, cache)
{
	noCache = cache || cache == undefined ? "" : "?" + new Date();
	wmode = wmode || wmode == undefined ? "opaque" : "transparent";

	monta_swf = "";
	monta_swf += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\""+ width +"\" height=\""+ height +"\" title=\"\">";
	monta_swf += "<param name=\"movie\" value=\""+ swf + noCache +"\" />";
	monta_swf += "<param name=\"quality\" value=\"high\" />";
	monta_swf += "<param name=\"menu\" value=\"0\" />";

	monta_swf += "<param name=\"wmode\" value=\"transparent\" />";
	monta_swf += "<param name=\"scale\" value=\"noborder\" />";


	monta_swf += "<embed src=\""+ swf + noCache +"\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+ width +"\" height=\""+ height +"\"></embed>";
	monta_swf += "</object>";

	document.write(monta_swf);
}


function openWinCenter(URL, N, W, H, S)
{
  L = (screen.width - W) / 2;
  T = (screen.height - H) / 2;
  newWin = window.open(URL, N,"scrollbars="+S+",width=" + W + ",height=" + H +",top=" + T+ ",left=" + L);
  newWin.focus();
}

function Bloqueia_Caracteres(evnt){

	if (navigator.appName.indexOf('Microsoft') != -1) {
		 clientNavigator = "IE";
	} else {
		 clientNavigator = "Other";
	}

	if (clientNavigator == "IE"){
		if (evnt.keyCode < 48 || evnt.keyCode > 57){
			return false
		}
	}else{
		if ((evnt.charCode < 48 || evnt.charCode > 57) && evnt.keyCode == 0){
			return false
		}
	}
}

function Ajusta_Data(input, evnt){

	if (navigator.appName.indexOf('Microsoft') != -1) {
		 clientNavigator = "IE";
	} else {
		 clientNavigator = "Other";
	}

	if (input.value.length == 2 || input.value.length == 5){
		if(clientNavigator == "IE"){
			input.value += "/";
		}else{
			if(evnt.keyCode == 0){
				input.value += "/";
			}
		}
	}
	return Bloqueia_Caracteres(evnt);
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


