home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / mozil06.zip / bin / chrome / messenger.jar / content / messenger / mime.js < prev    next >
Text File  |  2001-02-14  |  2KB  |  54 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  * 
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  * 
  12.  * The Original Code is Mozilla Communicator client code, released
  13.  * March 31, 1998.
  14.  * 
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation. Portions created by Netscape are
  17.  * Copyright (C) 1998-1999 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  */
  20.  
  21. function ShowLong(headerType) 
  22. {
  23.   var headerShort = "SHORT"+headerType;
  24.   var headerLong = "LONG"+headerType;
  25.   
  26.   var    longDiv  = document.getElementById(headerLong);
  27.   var    shortDiv = document.getElementById(headerShort);
  28.  
  29.   longDiv.setAttribute("style", "display:block;");
  30.   shortDiv.setAttribute("style", "display:none;");
  31. }
  32.  
  33. function ShowShort(headerType) 
  34. {
  35.   var headerShort = "SHORT"+headerType;
  36.   var headerLong = "LONG"+headerType;
  37.   
  38.   var    longDiv  = document.getElementById(headerLong);
  39.   var    shortDiv = document.getElementById(headerShort);
  40.  
  41.   shortDiv.setAttribute("style", "display:block;");
  42.   longDiv.setAttribute("style", "display:none;");
  43. }
  44.  
  45. function AddToAddressBook(email, fullName)
  46. {
  47.   dump("Email "+email+"\n");
  48.   dump("Name  "+fullName+"\n");
  49.   
  50.   var objName = email+".src";
  51.   var    userObj = document.getElementById(objName);
  52.  
  53. }
  54.