//Menu

tms=new Array()
//Mostra o submenu no mouseover
function over(n){
	if(typeof(tms[n])!="undefined")clearTimeout(tms[n])
	document.getElementById("s"+n).style.visibility="visible"
}
//Esconde o submenu no mouseout
function out(n){
	tms[n]=setTimeout('document.getElementById("s'+n+'").style.visibility="hidden"',300)
}

//SRV - Ofertas home
function Md01(linha) {
	linha.style.color='#000080';
}

function Md02(linhab) {
	linhab.style.color='#FF0000';
	linhab.style.cursor='hand';
}

function Det(id) {
	top.location='srv_detalhes.asp?id=' + id + '&o=ho'
}

function AbreJanela2(param, h, w) { 
var CenterTop2 = (screen.height/2) - ((h/2)+10);
var CenterLeft2 = (screen.width/2) - (w/2);
novaJanela2 = window.open(param, 'indica','height=' + h + ',width=' + w + ',scrollbars=yes,left=' + CenterLeft2 + ',top=' + CenterTop2 + ',screenx=0,screeny=0'); }

function AbreJanela(param, h, w) { 
var CenterTop = (screen.height/2) - ((h/2)+10);
var CenterLeft = (screen.width/2) - (w/2);
novaJanela = window.open(param, 'indica','height=' + h + ',width=' + w + ',scrollbars=no,left=' + CenterLeft + ',top=' + CenterTop + ',screenx=0,screeny=0'); }

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function dbusca() {
if( document.formbusca.modlist.value == "")
{
alert( "Indique modelo que deseja consultar.");
document.formbusca.modlist.focus();
return false;
}
return true;
}

function validaparchome()
{
if (document.form_parc.parc.value==""){ 
	alert("Por favor, informe o valor de parcela desejado.");
	document.form_parc.parc.focus() 
	return false;
}
return true;
}