function CalcAge()
{
	birthday = new Date(1981, 12, 06, 00, 00, 00, 00);
	today = new Date();

	diff 	= today-birthday;    			//difference in milliseconds
	mtg 	= new String(diff/86400000);    //calculate days and convert to string
	point	= mtg.indexOf(".");    			//find the decimal point
	days	= mtg.substring(0,point);    	//get just the whole days


}


function DispNotHere()
{
	alert('I dont exist yet.  Go away.');
}

function CreateImageDialog(aImg, aName, aDesc, aWidth, aHeight)
{
	url = "/dialogs/imagePreview.php?imgSrc=" + aImg + "&imgName=" + aName + "&imgDesc=" + aDesc;
	CreateModalDialog("wndImgPreview", url, aHeight, aWidth);
}

function CreateDialog(aHandle, aURL, aHeight, aWidth)
{
	handle 	= aHandle;
	url		= aURL;
	height	= aHeight;
	width	= aWidth;

	strWindowOptions = "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no";
	strWindowOptions += ",width=" + width;
	strWindowOptions += ",height=" + height;

	window.open(url,handle,strWindowOptions);
}

function CreateModalDialog(aHandle, aURL, aHeight, aWidth)
{
	handle 	= aHandle;
	url		= aURL;
	height	= parseInt(aHeight) + 25;
	width	= parseInt(aWidth) + 5;

//	alert("width: " + width);
//	alert("height: " + height);

	strWindowOptions = "edge:raised; help:no; resizeable:no; scroll:no; status:no; unadorned:no";
	strWindowOptions += "; dialogWidth:" + width + "px";
	strWindowOptions += "; dialogHeight:" + height + "px";
	strWindowOptions += ";";

	//alert(strWindowOptions);
	window.showModalDialog(url, "", strWindowOptions);
}

function HighlightArticle(objElement)
{
	objElement.className = "articleHighlighted";
}

function UnHighlightArticle(objElement)
{
	objElement.className = "articleUnhighlighted";
}
