function openw( url, name, width, height ) {
  
  if ( height < 100 ) height = 100; if ( width < 100 ) height = 100;
  var top = screen.availHeight / 2 - height / 2;
  var left = screen.availWidth / 2 - width / 2;
  var w = window.open( url, name,
    'resizable=no,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no' +
    ',top='+top+',left='+left+',height='+height+',width='+width );
  w.focus();
  return true;
}

function opensroll( url, name, width, height ) {
  
  if ( height < 100 ) height = 100; if ( width < 100 ) height = 100;
  var top = screen.availHeight / 2 - height / 2;
  var left = screen.availWidth / 2 - width / 2;
  var w = window.open( url, name,
    'resizable=no,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no' +
    ',top='+top+',left='+left+',height='+height+',width='+width );
  w.focus();
  return true;
}

function popupw( url, name, width, height ) {
  
  if ( height < 100 ) height = 100; if ( width < 100 ) height = 100;
  var top = 0;
  var left = 0;
  var w = window.open( url, name,
    'resizable=no,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no' +
    ',top='+top+',left='+left+',height='+height+',width='+width );
  w.focus();
  return true;
}

function ChgCursor(i,type){
	if (type==1) {	
	i.style.cursor = 'hand';
         }
	else {
	i.style.cursor = 'none';
	}
}