//
//    	main_functions.js Cars AU
//
//    	Created by Yolanda van Kimmenade 19/01/07
//
//		Purpose : These functions to simple popups etc -
//		2012-01-10 Modified: Marilize - resize popup window
//      
//

 function popitup(url) {
    newwindow=window.open(url,'carwin','height=400,width=400, resizable=yes, scrollbars=yes,top=20,left=20 ');
    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.com.au/";
var bookmarktitle="Discovery Car Hire - 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);
}

//this is the drop down for links in the Location pages
function drop(){
    var listElementStyle=document.getElementById("build").style; 
    if (listElementStyle.display=="none"){
        listElementStyle.display="block";}
        else {
            listElementStyle.display="none";
        }
}





