dog = "1000";
function getObj(obj) {
	if (document.getElementById) {
		return document.getElementById(obj);
	} else if (document.all) {
		return document.all[obj];
	} else if (document[obj]) {
		return document[obj];
	} else {
		return false;
	}
}
function changePage(selectObj){
	photoObj = getObj("photo"+dog);
	photoAObj = getObj("photoA"+dog);
	photoBObj = getObj("photoB"+dog);	
	dogObj = getObj("dog"+dog);
	photosObj = getObj("photos"+dog);
	if(photoObj) { photoObj.style.display = "none"; }
	if(photoAObj) { photoAObj.style.display = "none"; }
	if(photoBObj) { photoBObj.style.display = "none"; }
	dogObj.style.display = "none";
	photosObj.style.display = "none";
	photoObj = getObj("photo"+selectObj.value);
	photoAObj = getObj("photoA"+selectObj.value);
	photoBObj = getObj("photoB"+selectObj.value);
	dogObj = getObj("dog"+selectObj.value);
	photosObj = getObj("photos"+selectObj.value);
	if(photoObj) { photoObj.style.display = "block"; }
	if(photoAObj) { photoAObj.style.display = "block"; }
	if(photoBObj) { photoBObj.style.display = "block"; }
	dogObj.style.display = "block";
	photosObj.style.display = "block";
	dog = selectObj.value;
}