// popup windows 
var newWin = null; 
function popUp(strURL, strType, strHeight, strWidth) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="console") 
   strOptions="resizable,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixed") 
   strOptions="status,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixedscroll") 
   strOptions="status,scrollbars,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="elastic") 
   strOptions="toolbar,menubar,scrollbars,"+ 
     "resizable,location,height="+ 
     strHeight+",width="+strWidth; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}

// bookmark function
var urlAddress = "http://www.christieinsurance.com";
var pageName = "Christie Insurance";

 function addToFavorites()
 {
  if (window.external)
  {
   window.external.AddFavorite(urlAddress,pageName)
  }
  else
  { 
   alert("Sorry! Your browser doesn't support this function.");
  }
 }

// email to a friend
function EmailLink(){
window.location = "mailto:"+"?subject=Christie Insurance" + "&body=" + "I saw this on the Christie Insurance website and thought it might be of interest to you:  " + document.title + "  " + location.href;
}

// FAQs function
function toggleDiv(_id){_oDivStyle=document.getElementById(_id).style;(_oDivStyle.display=='block')?_oDivStyle.display='none':_oDivStyle.display='block';} 