
function PopupObj() 
{      
		
        // Creates the DIV representing the infowindow
  		 this.initialize = function() 
		{
		
			
			var div = document.createElement('div');
			div.setAttribute("id","popupLabel");
			
			
			div.ondblclick=function(evt)
								   {
									   var evt=(typeof evt!=undefined)?evt:window.event;
									  evt.cancelBubble=true; 
									   return;
								   };
								   
			div.onclick     = function(evt)
									   {
										    labelWin.remove();
									   };
			
			this.div_ = div;
			document.body.appendChild(div);
			

        }//end initialise
		
		
		this.hello	=	function(test)
		{
			alert(test);
		}
		
		this.setContent= function(label)
		{
			document.getElementById('popupLabel').appendChild(label);
		}
		
        // Remove the main DIV from the map paneparentNode.removeChild(this.div_.childNodes[i]
        this.remove = function() 
		{ 
			 //document.getElementById('infoWindow').parentNode.removeChild(document.getElementById('infoWindow'));
			if( document.getElementById('popupLabel')!=null)
			{
			document.getElementById('popupLabel').parentNode.removeChild(document.getElementById('popupLabel'));
			}
			labelWin=null;
        }//end remove
	/*	
   		this.update = function()
		{
			//this.closeToTop();
            this.redraw(true);
        }//end update*/
	
	  
}//end class


 








