


function showhidemap(chkbox,mapid) {
	if (chkbox.checked==true) {
		document.getElementById(mapid).style.display="block";
		map.checkResize();
		map.setCenter(defCenter2, 4)
	} else {
		document.getElementById(mapid).style.display="none";
	}
}

function opwin(url,w,h) {
	window.open(url,'opwin','width='+w+',height='+h+',location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,directories=0');
}
function showProg(sbtn,prog) {
		
		//btn.readonly = true;
		//btn.style.visibility = 'hidden';
		document.getElementById(sbtn).style.visibility = 'hidden';
		document.getElementById(prog).style.visibility = 'visible';
		
	}

function checkAll(offon) {
	var el_array=document.getElementsByTagName('input');
	for (i=0;i<el_array.length;i++) {
		if (el_array[i].type=='checkbox' && el_array[i].name.substring(0,3)=='pic')		
			el_array[i].checked=offon;
	}
}

function movePics(currenturl) {
	var f=document.getElementById('piclist');
	var c=document.getElementById('destination');
	f.action=currenturl+c.value;
	f.submit();
}


