function openNewWindowCenteredOnParent(winUrl, winName, properties, width, height)
{
    if (document.all)
    {
    	var x = window.screenLeft
    	var y = window.screenTop
    }
    else
    {
    	var x = window.screenX
    	var y = window.screenY
    }

    var w = document.body.clientWidth;
    var h = document.body.clientHeight;

    var cx = x + Math.round((w - width) / 2);
    var cy = y + Math.round((h - height) / 2);

	newWindow = window.open(winUrl, winName, 'left=' + cx + ',top=' + cy + ',width=' + width + ',height=' + height + ", " + properties);
}

function addEvent( obj, type, fn ) 
{
  if ( obj.attachEvent )
  {
    obj['e'+type+fn] = fn;
    obj[type+fn] = function(){obj['e'+type+fn]( window.event );}
    obj.attachEvent( 'on'+type, obj[type+fn] );
  } 
  else
    obj.addEventListener( type, fn, false );
}



function test()
{
	alert("hello")
}