var myPopUp;

function MyDocumentNote()
 {
	
			var mystring;
			
			mystring = new String(document.location.href)				
			
			mylen = mystring.length
				
			
			// ________________SI DETERMINA IL NOME DEL FILE NOTE
			for (j=1; j <= mylen; j++ )
			{
					
				if ( mystring.charAt(j)== "/")
						
						{ myLastPos = j }
						
				else
					{
					if ( mystring.charAt(j)== "\\")
								
			 				{ myLastPos = j }
						
						}
			}
			
			myFileName = mystring.substring( myLastPos + 1, mylen )
																						
			myFileNote = "../n/n" + myFileName				
			// ________________SI DETERMINA IL NOME DEL FILE NOTE
		    		    
		    	
			
			//alert(myFileNote)
			if (typeof myPopUp  == 'object')
			{					
			  
                          if (myPopUp.closed == false)
                          {
			    
                            myPopUp.close();
			    //alert ("Display Note")
                          }
			}			
				
			
			
			
                        myPopUp = window.open(myFileNote,'Note','fullscreen=0,scrollbars=1,resizable=1, toolbar=0,width=350, height=150');																	
			//myPopUp.location.href = myFileNote;
			//myPopUp.focus;                        
				
			
			
			
			
			
						
                        
 }

