
today = new Date();
year = (today.getFullYear) ? today.getFullYear() : today.getYear();
month = today.getMonth();
switch (month) {
			 case 0 : month = "Jan"; break;
			 case 1 : month = "Feb"; break;
			 case 2 : month = "Mar"; break;
                         case 3 : month = "Apr"; break;
			 case 4 : month = "May"; break;
			 case 5 : month = "Jun"; break;
			 case 6 : month = "Jul"; break;
			 case 7 : month = "Aug"; break;
			 case 8 : month = "Sep"; break;
			 case 9 : month = "Oct"; break;
			 case 10 : month = "Nov"; break;
			 case 11 : month = "Dec"; break;
			 }
date = today.getDate();
day = today.getDay();
switch (day) {
			 case 0 : day = "Sunday"; break;
			 case 1 : day = "Monday"; break;
			 case 2 : day = "Tuesday"; break;
			 case 3 : day = "Wednesday"; break;
			 case 4 : day = "Thursday"; break;
			 case 5 : day = "Friday"; break;
			 case 6 : day = "Saturday"; break;
			 }
hours = today.getHours();
  if (hours<12)  greeting = 'Good morning!';
	if (hours<18 && hours>11)  greeting = 'Good afternoon!';
	if (hours<20 && hours>17)  greeting = 'Good evening!';
	if (hours>19)  greeting = 'Good evening!';
hour = (hours>12) ? (hours-12) : hours;
halfDay = (hours>11 && hours<24) ? 'PM' : 'AM';
minutes = today.getMinutes();
dayStr =  day+ ', ' +month+ '&nbsp;' +date+ ',&nbsp;' +year;
timeStr = (minutes<10) ? hour+ ':0' +minutes+ ' ' +halfDay : hour+ ':' +minutes+ ' ' +halfDay;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// No rightclick script v.2.5
// (c) 2001
// Don't delete this header!

var message="TEXAS AUTO GROUP INC.\n         © 1994 - 2004 "; 

// Don't edit below!

function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function popUp(form, win) {

refWin = window.open(form,win,"scrollbars=yes, toolbar=no, resizable=no, directories=false, status=false, location=no,width=490, height=400,left=10,top=10,screenX=10,screenY=10");

}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function popUp2(form, win) {

refWin = window.open(form,win,"scrollbars=yes, toolbar=no, resizable=no, directories=false, status=false, location=no,width=465, height=400,left=10,top=10,screenX=10,screenY=10");

}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function popUp3(form, win) {

refWin = window.open(form,win,"scrollbars=yes, toolbar=no, resizable=no, directories=false, status=false, location=no,width=620, height=400,left=10,top=10,screenX=10,screenY=10");

}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var url;
var msg = "  is not maintained by Texas Auto Group and will open up in a new browser window. Texas Auto Group cannot guarantee the accuracy, content or security of this website.";

//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
function redir(form) {
url = form;
	if(confirm('"' + url + '"'  + msg)) {
	setTimeout('rd();',300);
	}
}
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
function rd() {
window.open(url,'newWin');

}

//////////////////////////////////////////////////////////////

function redir2(form) {
url = form;
	if(confirm('"' + url + '" is not maintained by Texas Auto Group. Texas Auto Group cannot guarantee the accuracy, content or security of this website.')) {
	setTimeout('rd2();',300);
	}
}

function rd2() {
location.href=url;

}
