// JavaScript Document
        // Array to hold alternative strings

var i=0;

function CloseWindow() { 
window.close();
return true; 
} 
	
function goto_URL(object) {
if ( object.options[object.selectedIndex].value != 'x')  window.open(object.options[object.selectedIndex].value, 'bookie');
}


function opacity(id, opacStart, opacEnd, millisec) { 
    //speed for each frame 
    var speed = Math.round(millisec / 100); 
    var timer = 0; 

    //determine the direction for the blending, if start and end are the same nothing happens 
    if(opacStart > opacEnd) { 
        for(i = opacStart; i >= opacEnd; i--) { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } else if(opacStart < opacEnd) { 
        for(i = opacStart; i <= opacEnd; i++) 
            { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } 
} 

//change the opacity for different browsers 
function changeOpac(opacity, id) {
    var object = document.getElementById(id).style; 
    object.opacity = (opacity / 100); 
    object.KhtmlOpacity = (opacity / 100); 
    object.MozOpacity = (opacity / 100);   
    object.filter = "alpha(opacity=" + opacity + ")"; 
} 

function popUp(URL, WINNAME) {
     windowFeatures ="menubar=no,scrollbars=yes,location=yes,favorites=no,resizable=yes,status=no,toolbar=no,directories=no";
     var test = ","; 
     var x = (screen.width - 900)/2;
	 var y = (screen.height - 1000)/2;
	 z = window.open(URL, WINNAME,"width=" + 900 +",height=" + 1000 + ",left=" + x + ",top=" + y + test + windowFeatures + test); 
	 z.focus();
} 

function popUp2(URL, WINNAME) {
     windowFeatures ="menubar=no,scrollbars=yes,location=yes,favorites=no,resizable=yes,status=no,toolbar=no,directories=no";
     var test = ","; 
     var x = (screen.width - 600)/2;
	 var y = (screen.height - 500)/2;
	 z = window.open(URL, WINNAME,"width=" + 600 +",height=" + 500 + ",left=" + x + ",top=" + y + test + windowFeatures + test); 
	 z.focus();
} 

function explodepic(URL, WINNAME) {
     var x = ((screen.width)-900) /2;
	 var y = ((screen.height)- 675) /2;
	 z = window.open(URL, WINNAME, "scrollbars=1,location=0,resizable=1,width=900,height=675,left="+x+",top="+y+"");
	 z.focus();
} 

function RunLocalBanner()
{
   document.write('<div><object type="application/x-shockwave-flash" data="./images/localbanner.swf" width="468" height="76" />\n');
   document.write('<param name="movie" value="images/localbanner.swf" /></object></div>\n');
}

function RunLocalBanner2()
{
   document.write('<div><object type="application/x-shockwave-flash" data="./images/localbanner2.swf" width="700" height="150" />\n');
   document.write('<param name="movie" value="images/localbanner2.swf" /></object></div>\n');
}


function reload(form){
var val=form.model.options[form.model.options.selectedIndex].value; 
self.location='addcars.php';
}

function dispDate() {
 /* Visit http://www.yaldex.com/ for full source code
 and get more free JavaScript, CSS and DHTML scripts! */
 <!-- Begin
 d = new Array(
 "Sunday",
  "Monday",
 "Tuesday",
 "Wednesday",
 "Thursday",
 "Friday",
 "Saturday"
 );
 m = new Array(
 "January",
 "February",
 "March",
 "April",
 "May",
 "June",
 "July",
 "August",
 "September",
 "October",
 "November",
 "December"
  );

 today = new Date();
 day = today.getDate();
 year = today.getYear();

 if (year < 2000)    
  year = year + 1900; 

 end = "th";
 if (day==1 || day==21 || day==31) end="st";
 if (day==2 || day==22) end="nd";
 if (day==3 || day==23) end="rd";
  day+=end;

 document.write(d[today.getDay()]+" "+m[today.getMonth()]+" ");
 document.write(day+" " + year);
 // End -->
}


//  End -->
