function scrn_popup(url) {
	newwindow=window.open(url,'ScreenShot','location=no,status=no,scrollbars=no,width=740,height=860');
	if (window.focus) {newwindow.focus()}
	return false;
}
function show_div(divelement){
	var elem = document.getElementById(divelement);
  elem.style.display = "block";
}
function hide_div(divelement){
	var elem = document.getElementById(divelement);
  elem.style.display = "none";
}

function show_hide_set(form_val, div_array) {
	for(i=0;i < div_array.length;i++){
		hide_div(div_array[i]);
		if(form_val == div_array[i]) {
			show_div(div_array[i]);
		}
	}
}
function show_hide_set2(form_val, expected_val, div_id) {
	hide_div(div_id);
	if(form_val === expected_val) {
		show_div(div_id);
	}
}
