
		function popup(mylink, windowname, options)
		{

		if ( options == null ) {
 			
  		  var width = 800;
		  var height= 600;
		  var iLeftOffset = screen.availWidth / 2 - width / 2;
              var iTopOffset = screen.availHeight / 2 - height / 2;	
		
		  options = 'left=' + iLeftOffset + ', ' +

                    'top = ' + iTopOffset + ', ' +

                    'width=' + width + ', ' +

                    'height=' + height + ', ' +

                    'resizable=yes, ' +                   

                    'scrollbars=yes'
		               
		 
		}

	if (! window.focus)return true;


	var href;
	if (typeof(mylink) == 'string')
	   href=mylink;
	else
  	 href=mylink.href;

	newWindow = window.open(href, windowname, options);
        newWindow.focus();            

	return false;
	}
