function sh(obj) {
  if(document.getElementById(obj)){
    if(document.getElementById(obj).style.display=='block')
      document.getElementById(obj).style.display='none';
    else
      document.getElementById(obj).style.display='block';
  }
}

function show(obj) {
	document.getElementById(obj).style.display='inline';
}

function hide(obj) {
	document.getElementById(obj).style.display='none';
}

function setClass(obj,sclass) {
	document.getElementById(obj).className=sclass;
}

function shown(obj){
	return !hidden(obj);
}

function getValue(obj){
	return document.getElementById(obj).value;
}

function setValue(obj,val){
	document.getElementById(obj).value = val;
}

function setFocus(obj,val){
	document.getElementById(obj).focus();
}

function openWinXY(loc,x,y){
		x += 20;
		y += 20;
		window.open(loc,'','width='+x+',height='+y+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=yes');
	}
