function Paper(pType, iWidth, iHeight)
{
	this.type = pType;
	this.width = iWidth;
	this.height = iHeight;
	this.imgWidth = iWidth;
	this.imgHeight = iHeight;
}

function paper_equals(paper)
{
	return (this.type==paper.type) && (this.getImageArea()==paper.getImageArea());
}

function paper_getImageArea()
{
	return (this.imgWidth * this.imgHeight) / 144;
}

function paper_getImageSize()
{
	return this.imgWidth + "\" x " + this.imgHeight + "\"";
}

function paper_getPaperSize()
{
	return this.width + "\" x " + this.height + "\"";
}

function paper_getType()
{
	return Paper.types[this.type];
}

function paper_toString()
{
	var paperString = this.getType() + " ";
	paperString += this.getPaperSize();

	return paperString;
}

Paper.TYPE_GLOSSY = 0;
Paper.TYPE_MATTE = 1;
Paper.TYPE_WATERCOLOR = 2;
Paper.TYPE_CANVAS = 3;
Paper.types = new Array("Glossy", "Matte", "Watercolor", "Canvas");

Paper.prototype.equals = paper_equals;
Paper.prototype.getImageArea = paper_getImageArea;
Paper.prototype.getImageSize = paper_getImageSize;
Paper.prototype.getPaperSize = paper_getPaperSize;
Paper.prototype.getType = paper_getType;
Paper.prototype.toString = paper_toString;