/*
function createCar(sColor,iDoors,iMpg){
var oTempCar=new Object;
oTempCar.color=sColor;
oTempCar.doors=iDoors;
oTempCar.mpg=iMpg;
oTempCar.showColor=function(){
window.alert(this.color);
};
return oTempCar;
}
var oCar1=createCar("red",4,23);
var oCar2=createCar("blue",6,40);
oCar1.showColor();
oCar2.showColor();
*/
/*
function Car(sColor,iDoors,iMpg){
this.color=sColor;
this.doors=iDoors;
this.mpg=iMpg;
this.showColor=function(){
window.alert(this.color);
};
}
var oCar1=new Car("red",4,23);
var oCar2=new Car("blue",6,40);
oCar1.showColor();
oCar2.showColor();
*/
/*
function Car(sColor,iDoors,iMpg){
this.color=sColor;
this.doors=iDoors;
this.mpg=iMpg;
}
Car.prototype.showColor=function(){
window.alert(this.color);
};
var oCar1=new Car("red",4,23);
var oCar2=new Car("blue",6,40);
oCar1.showColor();
oCar2.showColor();
*/
/*
function Car(sColor,iDoors,iMpg){
this.color=sColor;
this.doors=iDoors;
this.mpg=iMpg;
if(typeof Car._initialized=="undefined"){
Car.prototype.showColor=function(){
window.alert(this.color);
};
Car._initialized=true;
}
}
var oCar1=new Car("red",4,23);
var oCar2=new Car("blue",6,40);
oCar1.showColor();
oCar2.showColor();
*/