function floorplan(where,w,h)
{
	var grr="/properties/floorplans/"+where+".jpg";
	var blah=window.open(grr,where,'toolbars=0,menu=0,directories=0,width='+w+',height='+h+',scrollbars=2,resizable=yes');
}

function popupImage(where, w, h) {
	alert(where);
	var URL="/properties/images/"+where+".jpg";
	alert("The URL is:" + URL);
    var myFloater = window.open('','myWindow','scrollbars=no,status=no,width=300,height=300')
    
	myFloater.location.href = URL;
}

function popupImageOld(where,w,h)
{
	var URL="/properties/images/"+where+".jpg";
	var blah=window.open(URL, where,'toolbars=0,menu=0,directories=0,width='+w+',height='+h+',scrollbars=2,resizable=yes');
}

var gAutoPrint = true; // Tells whether to automatically call the print function

function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';
		
		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
//			if (headTags.length > 0) html += headTags[0].innerHTML;
html+= '<link rel="stylesheet" type="text/css" href="/includes/aggiehousing.css">\n<script language="JavaScript" src="/includes/aggiehousing.js"></script>\n<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n';
		}

		html += '\n</HE' + 'AD>\n<BODY>\n';
		var printReadyElem = document.getElementById("printReady");
		
		if (printReadyElem != null)
		{
			html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady function");
			return;
		}
		
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
//		alert(html);

		var printWin = window.open("","printSpecial");
 		printWin.document.open();
		printWin.document.write(html);
// 		printWin.document.write("<HTML><HEAD></HEAD><BODY>This is a test</BODY></HTML>");
		printWin.document.close();
		if (gAutoPrint) printWin.print();
 	}
 	else
 	{
 		alert("The print ready feature is only available if you are using an browser. Please update your browswer.");
 	}
 }