//
//    main_functions.js
//
//    Created by Yolanda van Kimmenade 19/01/07
//
//    Purpose : These functions to simple popups etc
//

 function popitup(url) {
    newwindow=window.open(url,'carwin','height=400,width=400, resizable=yes, scrollbars=yes');
    if (window.focus) {
         newwindow.focus()
    }
    return false; 
} 
 function popexcess(url) {
    newwindow=window.open(url,'excesswin','height=500,width=500,scrollbars=yes');
    if (window.focus) {
         newwindow.focus()
    }
    return false; 
 } 

 function poplarger(url) {
    newwindow=window.open(url,'info','height=500,width=600,scrollbars=yes');
    if (window.focus) {
         newwindow.focus()
    }
    return false; 
 }

var bookmarkurl="http://www.discovery-carhire.co.nz/";
var bookmarktitle="Discovery Car Hire NZ - Compare & Save";

function addbookmark() {
if (navigator.appName=='Netscape')
   alert("Please close this popup, and then press CTRL+D to bookmark this site.");
else 
   window.external.AddFavorite(bookmarkurl,bookmarktitle);
}
