function popwindow(page) { // open up a new window and place the "page" into it for display
	windowtype = "scrollbars,HEIGHT=250,WIDTH=400";
	newwindow = window.open(page,"infowindow", windowtype);
//use below for created "pages", above for already existing ones
	//newwindow.document.open("text/html");
	//newwindow.document.writeln(page);
	//newwindow.document.close();
	newwindow.focus();
}

function popimage(image,width,height) { // open up a new window and creates a "page" to display
	windowtype = "HEIGHT="+(height+20)+",WIDTH="+(width+20);
	newwindow = window.open("","infowindow", windowtype);
	newwindow.document.open("text/html");
	newwindow.document.writeln('<HTML>\n<head>\n     <LINK href="../rs.css" rel="stylesheet" type="text/css">\n</head>\n<BODY class="popupimagebody">\n<div align="center">');
	newwindow.document.writeln('<img src="'+image+'" width="'+width+'" height="'+height+'" alt="" border="0">');
	newwindow.document.writeln("</DIV></BODY></HTML>");
	newwindow.document.close();
	newwindow.focus();
}
//////////////////////////////////////////////////////////////////////////////////////
// TEST FUNCTIONS BELOW
// Object Contents, used for testing purposes

function objecttally (obj) { 
	objholder = obj;
	holder= "\nWhat's in there \n";
	for (i in objholder) { holder+=" " + i + ":" + objholder[i] + "\n";};
	alert(holder + "\nEND");
}


