/*
function area_view(no,total) {

		for(i=1 ; i<=total ; i++ ){
			obj = eval("mainarea" + i);
			obj2 = eval("mainarea_" + i);
			if(i==no) {
				obj.style.display = "block";
				obj2.style.display = "block";
			} else {
				obj.style.display = "none";
				obj2.style.display = "none";
			}
		}
	}
*/


function area_view(no,total){
var obj = document.getElementById('mainarea' + no);
var obj2 = document.getElementById('mainarea_' + no);
 for(i=1 ; i<=total ; i++ ){
 var obj_x = document.getElementById('mainarea' + i);
 var obj_x2 = document.getElementById('mainarea_' + i);

//  if(i == no)
  if(obj == obj_x)
   obj.style.display = 'block';
  // obj2.style.display = 'block';
  else
   obj_x.style.display = 'none';
  // obj_x2.style.display = 'block';

 if(obj2 == obj_x2)
   obj2.style.display = 'block';
  // obj2.style.display = 'block';
  else
   obj_x2.style.display = 'none';
  // obj_x2.style.display = 'block';

 }
}
