function more(myPage, windowName, myWidth, myHeight, resize, scroll){
	var time=new Date();
	LeftPosition= (screen.width*0.5)-(myWidth*0.5);
	TopPosition= (screen.height*0.4)-(myHeight*0.5);
	if(windowName.substring(0, 1)=="~")windowName+=time.getHours()+''+time.getMinutes()+''+time.getSeconds();
	window_var = window.open(myPage, windowName, 'width='+myWidth+',height='+myHeight+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=' + resize);
}

function active(elem){
	document.getElementById(elem).readOnly = false;
	document.getElementById(elem + '_update').className = 'hidden';
	document.getElementById(elem + '_save').className = 'visible';
}

function diactive(elem){
	document.getElementById(elem).readOnly = true;
	document.getElementById(elem + '_update').className = 'visible';
	document.getElementById(elem + '_save').className = 'hidden';
}

function show_hide(show_elem, hide_elem){
	document.getElementById(show_elem).className = 'visible';
	document.getElementById(hide_elem).className = 'hidden';
}

function change_image(elem, img){
	document.getElementById('main_image').src='/images/_image.php?w=492&img=dogs/'+img;
}