// Pop up windows
   function cw_window(url) 
	{
		window.name = 'NavHome';
		if(navigator.userAgent.indexOf("MSIE") == -1) 
			{
				newwindow = window.open(url,'cw','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=300,height=300');
				newwindow.focus();
			}
		else
			{window.open(url,'cw','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=300,height=300');}
	}
	
function NewWindow(mypage, myname, w, h, scroll,resize) {

  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resize
  win = window.open(mypage, myname, winprops)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

// Leaving Colgate alerts  
  function leavingColgate () {
    window.alert("You are now leaving colgate.com to access your registered shareholder account information provided to you by Bank of New York Mellon Shareowner Services. This link is provided to you for convenience and Colgate is not responsible for the accuracy, reliability or currency of the information contained on Bank of New York Mellon Shareowner Services  website.  Please be aware that the privacy policy stated on The Bank of New York Mellon Shareowner Services website may NOT be the same as that on colgate.com.");
  }


  function leavingColgate2 () {
    window.alert("You are now leaving colgate.com to access the online consent to receive electronic proxy materials provided by Broadridge.  This link is being provided to you as a courtesy and Colgate is not responsible for the accuracy, reliability or currency of the information on Broadridge\'s website.  Please be aware that the terms of use and privacy policy on Broadridge's website may NOT be the same as that on colgate.com.");
  }

  function leavingColgate3 () {
    window.alert("You are now leaving colgate.com to access information provided to you by The New York Stock Exchange.  This link is provided to you for convenience and Colgate is not responsible for the accuracy, reliability or currency of the information contained on The New York Stock Exchange website.  Please be aware that the privacy policy stated on The New York Stock Exchange website may NOT be the same as that on colgate.com.");
  }



// Print functions

    function PrintMe_window(url) {
      if(navigator.userAgent.indexOf("MSIE") == -1) {
        newwindow = window.open(url,'PrintMe','toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=595,height=600');
        newwindow.focus();
      } else {
        window.open(url,'PrintMe','toolbar=yes,width=595,height=480,directories=no,status=yes,scrollbars=yes,resize=no,menubar=yes');
      }
    }

    function PrintMe625_window(url) {
      if(navigator.userAgent.indexOf("MSIE") == -1) {
        newwindow = window.open(url,'PrintMe625','toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=640,height=600');
        newwindow.focus();
      } else {
        window.open(url,'PrintMe625','toolbar=yes,width=640,height=480,directories=no,status=yes,scrollbars=yes,resize=no,menubar=yes');
      }
    }

//Expand/Collapse menu
    function expandit(objname){
        var folder='';
        curobj = objname + 'info';
        imgobj = objname + 'img';
        folder = getObjectRef(curobj).style;
        if (folder.display=="none") {
            folder.display="";
            getObjectRef(imgobj).src = "/images/minus.gif";
        } else {
            folder.display="none"
            getObjectRef(imgobj).src = "/images/plus.gif";
        }
    }    
function getObjectRef(n, d) {

  //based off MM_findObj v4.01
  //n: String
  //d: Document (for netscape4 recursion)

  var p,i,x;  
  
  if(!d) 
  	d=document; 
  
  if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; 
	n=n.substring(0,p);
  }
  if(!(x=d[n])&&d.all) 
  	x=d.all[n]; 
  
  for (i=0;!x&&i<d.forms.length;i++) 
  	x=d.forms[i][n];
	
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) 
  	x=getObjectRef(n,d.layers[i].document);
	
  if(!x && d.getElementById) 
  	x=d.getElementById(n); 
	
  return x;
}
