var now = new Date();
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1;
var dayNr = now.getDate();
var yearNr=now.getYear();

if(dName==1) Day = "domingo";
if(dName==2) Day = "segunda";
if(dName==3) Day = "terça  ";
if(dName==4) Day = "quarta ";
if(dName==5) Day = "quinta ";
if(dName==6) Day = "sexta  ";
if(dName==7) Day = "sábado ";
if(yearNr < 2000)
	Year = 1900 + yearNr;
else
	Year = yearNr;
var todaysDate =(":: " + Day + " " + "[ " + dayNr + "/" + mName + "/" + Year + " ]");

<!-->

window.defaultStatus='M A R I A  R A F A R T . C O M';

<!-->

function Buscar()
	{
		if ((document.Busca_FACIL.tipo.value=="")||(document.Busca_FACIL.marca.value==""))
		{
			alert("Por favor, preencha todos os campos!");
			return false;
		}
		else
		{
				document.Busca_FACIL.submit();
		}
	}

<!-->

function Cadastrar()
	{
		if ((document.Cadastrar.nome.value=="")||(document.Cadastrar.email.value==""))
		{
			alert("Por favor, preencha todos os campos do cadastro!");
			return false;
		}
		else
		{
				document.Cadastrar.submit();
		}
	}

<!-->

	function Envia()
	{
		if ((document.frmCadastro.nome.value=="")||(document.frmCadastro.email.value=="")||(document.frmCadastro.telefone.value==""))
		{
			alert("Preencha os campos obrigatórios !");
			return false;
		}
		else
		{
				document.frmCadastro.submit();
		}
	}

<!-->

function Vis_BotaoOver(controle) {
	controle.style.color = '#FF0000';
}
function Vis_BotaoOut(controle) {
	controle.style.color = '#000000';
}

<!-->

function mO(src,clrOver) {
 if (!src.contains(event.fromElement)) {
	src.style.cursor = 'hand';
	src.bgColor = clrOver;
 }
}
function mU(src,clrIn) {
 if (!src.contains(event.toElement)) {
	src.style.cursor = 'default';
	src.bgColor = clrIn;
 }
}
 function mC(src) {
 if(event.srcElement.tagName=='td '){
	src.children.tags('A')[0].click();
 }
}

<!-->

function TurnImg(mode,img){
	if (document.images){
		document.images[img].src = eval(mode + ".src");
	}
}
	if (navigator.appVersion.substring(0,1) >= 3) {
		off = new Image;
		off.src = "images/reestruturacao/menus/off.gif";

		on = new Image;
		on.src = "images/reestruturacao/menus/on.gif";
}

<!-->

function mO(src,clrOver) {
 if (!src.contains(event.fromElement)) {
  src.style.cursor = 'hand';
  src.bgColor = clrOver;
 }
}
function mU(src,clrIn) {
 if (!src.contains(event.toElement)) {
  src.style.cursor = 'default';
  src.bgColor = clrIn;
 }
}
 function mC(src) {
 if(event.srcElement.tagName=='TD'){
  src.children.tags('A')[0].click();
 }
}

<!-->

	PositionX = 150;
	PositionY = 80;
	
	defaultWidth = 500;
	defaultHeight = 500;
	
	var AutoClose = true;
	
	if (parseInt(navigator.appVersion.charAt(0))>=4){
		var isNN=(navigator.appName=="Netscape")?1:0;
		var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
		var optNN='scrollbars=yes,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
		var optIE='scrollbars=yes,width=150,height=100,left='+PositionX+',top='+PositionY;
		function popImage(imageURL,imageTitle){
	if (isNN){imgWin=window.open('about:blank','',optNN);}
	if (isIE){imgWin=window.open('about:blank','',optIE);}
		with (imgWin.document){
		writeln('<html><head><title>carregando...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
		writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
		writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
		writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
		writeln('width=100-(document.body.clientWidth-document.images[0].width);');
		writeln('height=100-(document.body.clientHeight-document.images[0].height);');
		writeln('window.resizeTo(width,height);}');writeln('if (isNN){'); 
		writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
		writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
	if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="auto" onload="reSizeToImage();doTitle();self.focus()">')
	else writeln('</head><body bgcolor=000000 scroll="yes" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
		writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
		close();        
	}}
	function MM_openBrWindow(theURL,winName,features)
	{
		window.open(theURL,winName,features);
	}

