function order(promoCode, promoText, flatRate, discount, NumCDs,
		enc1, rate1, enc2, rate2, enc3, rate3, enc4, rate4,
		catalog, media, resurface, priority, backup, diy,
		firstName, lastName, street1, street2, city, state, zip, shipMethod, numShipments) {
	this.promoCode    = promoCode;
	this.promoText    = promoText;
	this.flatRate     = flatRate;
	this.discount     = discount;
	this.NumCDs       = NumCDs;
	this.enc1         = enc1;
	this.rate1        = rate1;
	this.enc2         = enc2;
	this.rate2        = rate2;
	this.enc3         = enc3;
	this.rate3        = rate3;
	this.enc4         = enc4;
	this.rate4        = rate4;
	this.catalog      = catalog;
	this.media        = media;
	this.resurface    = resurface;
	this.priority     = priority;
	this.backup       = backup;
	this.diy          = diy;
	this.firstName	  = firstName;
	this.lastName	  = lastName;
	this.street1	  = street1;
	this.street2	  = street2;
	this.city 		  = city;
	this.state	 	  = state;
	this.zip		  = zip;
	this.shipMethod	  = shipMethod;
	this.numShipments = numShipments;
}

function order(promoCode, promoText, flatRate, discount, NumCDs,
		enc1, rate1, enc2, rate2, enc3, rate3, enc4, rate4,
		catalog, media, resurface, priority, backup, diy) {
	this.promoCode    = promoCode;
	this.promoText    = promoText;
	this.flatRate     = flatRate;
	this.discount     = discount;
	this.NumCDs       = NumCDs;
	this.enc1         = enc1;
	this.rate1        = rate1;
	this.enc2         = enc2;
	this.rate2        = rate2;
	this.enc3         = enc3;
	this.rate3        = rate3;
	this.enc4         = enc4;
	this.rate4        = rate4;
	this.catalog      = catalog;
	this.media        = media;
	this.resurface    = resurface;
	this.priority     = priority;
	this.backup       = backup;
	this.diy          = diy;
	this.firstName	  = '';
	this.lastName	  = '';
	this.email        = '';
	this.street1	  = '';
	this.street2	  = '';
	this.city 	  = '';
	this.state	  = '';
	this.zip	  = '';
	this.shipMethod	  = '';
	this.numShipments = 0;
}

function order() {
	this.promoCode    = '';
	this.promoText    = '';
	this.flatRate     = 0;
	this.discount     = 0;
	this.NumCDs       = 0;
	this.enc1         = 0;
	this.rate1        = 0;
	this.enc2         = 0;
	this.rate2        = 0;
	this.enc3         = 0;
	this.rate3        = 0;
	this.enc4         = 0;
	this.rate4        = 0;
	this.catalog      = 0;
	this.media        = 0;
	this.resurface    = 0;
	this.priority     = 0;
	this.backup       = 0;
	this.diy          = 0;
	this.firstName	  = '';
	this.lastName	  = '';
	this.email        = '';
	this.street1	  = '';
	this.street2	  = '';
	this.city 	  = '';
	this.state	  = '';
	this.zip	  = '';
	this.shipMethod	  = '';
	this.numShipments = 0;
}

function order2JS(order) {
	var str = "{";
	str += "promoCode:'" + order.promoCode + "',";
	str += "promoText:'" + order.promoText + "',";
	str += "flatRate:"   + order.flatRate + ",";
	str += "discount:"   + order.discount + ",";
	str += "NumCDs:"     + order.NumCDs + ",";
	str += "enc1:"       + order.enc1 + ",";
	str += "rate1:"      + order.rate1 + ",";
	str += "enc2:"       + order.enc2 + ",";
	str += "rate2:"      + order.rate2 + ",";
	str += "enc3:"       + order.enc3 + ",";
	str += "rate3:"      + order.rate3 + ",";
	str += "enc4:"       + order.enc4 + ",";
	str += "rate4:"      + order.rate4 + ",";
	str += "catalog:"    + order.catalog + ",";
	str += "media:"      + order.media + ",";
	str += "resurface:"  + order.resurface + ",";
	str += "priority:"   + order.priority + ",";
	str += "backup:"     + order.backup + ",";
	str += "diy:"        + order.diy + ",";

	str += "firstName:"    + "'" + order.firstName    + "',";
	str += "lastName:"     + "'" + order.lastName     + "',";
	str += "email:"        + "'" + order.email        + "',";
	str += "street1:"      + "'" + order.street1      + "',";
	str += "street2:"      + "'" + order.street2      + "',";
	str += "city:"         + "'" + order.city         + "',";
	str += "state:"        + "'" + order.state        + "',";
	str += "zip:"          + "'" + order.zip          + "',";
	str += "shipMethod:"   + "'" + order.shipMethod   + "',";
	str += "numShipments:" + order.numShipments;	
	str += "}";
	return str;
}


