function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
// SHOW and HIDE LAYER FOR SITEMAP
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//////////////////
// PRE-LOAD IMAGES
//////////////////
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//////////////////////////
// SWAP IMAGES ON ROLLOVER
//////////////////////////
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
///////////////////////////
// RESTORE IMAGE AFTER SWAP
///////////////////////////
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
////////////////////////////////////////
// OPEN A NEW WINDOW WITH SET PARAMETERS
////////////////////////////////////////
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//////////////////////
// JUMP SELECTION PAGE
//////////////////////
function jumpPage(newLoc) {
	newPage = newLoc.options[newLoc.selectedIndex].value
		if(newPage != "") {
			window.location = newPage
			}
		}
function clearField(obj) {
	if (obj.defaultValue==obj.value)
		obj.value = ''; }
		
function resetField(obj) {
    if (obj.value == "")
    {
        obj.value = obj.defaultValue;
    }
}
///////////////////////////////////////
// FETCH DATA FOR MODEL SELECTION FIELD
///////////////////////////////////////
function fetchData(url, objectID) {
	var pageRequest = false;
	//var myMake = document.getElementById(make);
	var newPage = url.options[url.selectedIndex].value
	
	if (window.XMLHttpRequest)pageRequest = new XMLHttpRequest();
	else if (window.ActiveXObject) pageRequest = new ActiveXObject("Microsoft.XMLHTTP");
	else return false;
	pageRequest.onreadystatechange = function() {
		var object = document.getElementById(objectID);
		
		object.innerHTML = pageRequest.responseText;
		}
	pageRequest.open('GET',newPage ,true);
	pageRequest.send(null);
	}
// CLEAR ORIGINAL VALUE IN FORM FIELD	
function clearField(obj) {
	if (obj.defaultValue==obj.value)
		obj.value = ''; }
		
function resetField(obj) {
    if (obj.value == "")
    {
        obj.value = obj.defaultValue;
    }
}
<!-- Dynamic Version by: Nannette Thacker -->
<!-- http://www.shiningstar.net -->
<!-- Original by :  Ronnie T. Moore -->
<!-- Web Site:  The JavaScript Source -->
<!-- Use one function for multiple text areas on a page -->
<!-- Limit the number of characters per textarea -->
<!-- Begin
function textCounter(field,cntfield,maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
cntfield.value = maxlimit - field.value.length;
}
//  End -->
<!-- VEHICLE COMPARISON SCRIPT -->
function check_val()
{
var ins = document.getElementsByName('vin');
var i;
var j=0;
var vals= new Array();
for(i=0;i< ins.length;i++)
{
if (ins[i].checked)
{
vals= vals + ins[i].value + ',';
}
j++;
}
//alert(vals);
var s = vals;
var s2 = s.substr(0, s.length-1);
self.location='compare.php?'+'vin'+'='+s2;
}
<!-- VEHICLE DELETION SCRIPT -->
function check_id()
{
var ins = document.getElementsByName('id');
var i;
var j=0;
var vals= new Array();
for(i=0;i< ins.length;i++)
{
if (ins[i].checked)
{
vals= vals + ins[i].value + ',';
}
j++;
}
//alert(vals);
var s = vals;
var s2 = s.substr(0, s.length-1);
self.location='specials_delete_listing_script.php?'+'id'+'='+s2;
}
//PopUnder Power
//Credit notice must stay intact for use.

//Paste this entire javascript between the <head> & </head> tags of your page,
//or option 2: Save it as an external file, "popunder.js", and call it from between
//the <head>&</head> tags of the parent page, with this command:
// <script src="/popunder.js" LANGUAGE="JAVASCRIPT">

// Visit http://www.mikenew.net/downloads/scripts.asp for more scripts.
// by Mike New, with special thanks to
// Jeff Phillips of http://classadrivers.com, for some good mods
// If you use this script, or make it better, I'd love to see it in action! webmaster@mikenew.net

// Begin. Specify URLs to randomly select from and pop-under. Add or take away freely.
var popunder=new Array()
popunder[0]="http://www.fowlervw.com/coupon.php"
// Specify the width and height of new popunder window (in pixels).

var width = '800';
var height = '600';

var p = 'scrollbars=no,resizable=yes,toolbar=no,' + //these are obvious variables. set "yes" or "no".
'menubar=yes,status=yes,location=no,left=85,top=20,height=' + //the location on the user's screen
height + ',width=' + width;

// Load new PopUnder only once per browser session? (0=no, 1=yes)
// Putting 0 will cause the Popunder to load every time page is loaded
// Specifying 1 will cause it to load only once per session
var one_time=1

// That's it! Don't edit the code below unless you're really good. :-P //
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if the cookie exists
offset += search.length
end = document.cookie.indexOf(";", offset); // set the index of beginning value
if (end == -1) // set the index of the end of cookie value
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function loadornot(){
if (get_cookie('popunder')==''){
load_pop_power()
document.cookie="popunder=yes"
}
}
function load_pop_power(){
win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))],"bw",p)
win2.blur()
window.focus()
}
if (one_time==0)
load_pop_power()
else
loadornot()
