function show_window()  {
/*
 myWindow = window.open("", "tinyWindow", 'toolbar,width=150,height=100')
 myWindow.document.write("Welcome to this new window!")
 myWindow.document.bgColor= "lightblue"
 myWindow.document.close()
*/


    photoWin = window.open("", "tinyWindow", "status=no,width=400, height=200,resizable=no,screenX=200,screenY=375,left=200,top=375");
    photoWin.document.write('<html><head><title>Sample Title</title></head>');    
    photoWin.document.write('<BODY BGCOLOR=#000000 TEXT=#FFFFCC LINK=#33CCFF VLINK=#FF6666>');
     // photoWin.document.write('<center>');
    photoWin.document.write("Enter the filename and path in the textbox, or clcik Browse button to choose the file you want to upload.!");    
      photoWin.document.write ('<font face="arial,helvetica">');
      //photoWin.document.write('<a href="mailto:lava@pele.bigu.edu">lava@pele.bigu.edu </a><br>');
      //photoWin.document.write('Volcanic Studies,<a href="http://www.bigu.edu/"> Big University</a>');
      photoWin.document.write ('<BR><BR>Then click the upload button....');
      // Create a button to close this window          
      photoWin.document.write('<BR><FORM><INPUT type="button" value="Close" onClick=" window.close()"; ></FORM>') ;
 
    photoWin.document.write('<p></font></body></html>');
    photoWin.document.close();    // If this command is not included, it will repeate the text everytime the prog. calls this function.        
        
    photoWin.statusbar.visible = false;
    photoWin.toolbar.visible = false;  
    photoWin.focus();

}

function display_picture(imagesource)  {
//    var imagesource = "anchorwiAAA.gif ";
    ImageWindow = window.open("", "ImageWindow", "status=no,width=500, height=300,resizable=yes,screenX=200,screenY=375,left=200,top=375");
    ImageWindow.document.write('<html><head><title>Picture</title></head>');    
    ImageWindow.document.write('<BODY>');
//    ImageWindow.document.write("View Window.!");    
 //     ImageWindow.document.write('<BR><BR>Help information ....');
  //    ImageWindow.document.write ('<BR>' + imagesource);    
 
    ImageWindow.document.write('<BR> <img src=' + '"http://www.hinducanadians.com/apps/downloads/' + imagesource + '"'+ ' alt= ' + imagesource + ' > ');  
 
//  if (file(imagesource)) {
//        ImageWindow.document.write('<BR> <img src=' + '"TE2003/images/' + imagesource + '"'+ ' alt= ' + imagesource + ' > ');
//   } else {
//        ImageWindow.document.write('<BR> <img src=' + '"TE2003/images/' + imagesource + '"'+ ' alt= ' + imagesource + ' > ');   
//   }
//    ImageWindow.document.write('<BR>hardcoded  <img src="TE2003/images/anchorwi.gif"> ');    
    ImageWindow.document.write('</body></html>');
    ImageWindow.document.close ();    
    ImageWindow.statusbar.visible = false;
    ImageWindow.toolbar.visible = false;  
    ImageWindow.focus();
}


/*
function show_viewwindow(imagesource)  {
    //ImageWindow = window.open ("", "tinyWindow", "status=no,width=400, height=200,resizable=no,screenX=200,screenY=375,left=200,top=375");
    document.write('<html><head><title>View Window</title></head>');    
    document.write('<BODY BGCOLOR=#000000 TEXT=#FFFFCC LINK=#33CCFF VLINK=#FF6666>');
    document.write("View Window.!");    
      document.write('<BR><BR>Help information ....');
      document.write('<BR>' + imagesource);    
    document.write('<BR> <img src=' + '"TE2003/images/' + imagesource + '"'+  '> ');
    document.write('<BR>hardcoded  <img src="TE2003/images/anchorwi.gif"> ');    
    document.write('</body></html>');
    return void;
//    document.close();    
//    ImageWindow.statusbar.visible = false;
//    ImageWindow.toolbar.visible = false;  
//    ImageWindow.focus ();
}
*/

function another_window() {
    mewwindow = window.open("", "newWindow", 'width=100,left=100, height=100, alwaysRaised');
    mewwindow.focus();
    mewwindow.document.write ("Another window!");
    mewwindow.document.bgColor="red";
    mewwindow.statusbar.visible = false;
    mewwindow.toolbar.visible = false;  
    mewwindow.focus();
//    ImageWindow.blur ();

}
