var thewin;
function changePage(selectObj) {
	if( selectObj.value != '' ){
		thePageForm = selectObj.parentNode;
		thePageForm.submit();
	}
}
function show_hide(id, show){
	el = document.getElementById(id)
	if (null==show) show = el.style.display=='none';
	el.style.display = (show ? '' : 'none');
}
function openWindow(url){
	var theUrl = url;
	thewin = window.open(theUrl,'arbitrary',"menubar=no,location=no,resizable=no,scrollbars=yes,status=no,dependent=yes,width=415,height=350,alwaysRaised=yes");
}
function returnDay(inputBox,wantedValue){
	if(window.opener && !window.opener.closed)
	inbox = window.opener.document.getElementById(inputBox).value=wantedValue;
	window.close();
}
function showBig(input){
	var source = input.src;
	var label = input.alt;
	var bi = document.getElementById("bigImage");
	bi.src=source;
	var bigLabel = document.getElementById("bigLabel");
	bigLabel.innerHTML = label; 
}
function popThis(input,loc_dog){
	var xWind;
	imageName = input.src
	imageName = imageName.substr(imageName.lastIndexOf("/")+1);
	urlUse = "showImage.php?image=" + imageName + "&location_id=" + loc_dog;
	xWind = window.open(urlUse, "modWindowName","menubar=no,location=no,resizable=no,scrollbars=no,status=no, dependent=yes, width=" + (input.width+10)+ ", height=" + (input.height+200) + ", alwaysRaised=yes");
	xWind.reload;
}
function swap_media(){
	show_hide('map_container');
	show_hide('photo_container');
}













