function OpenNewBrowser(url) { window.open(url,""); } function enlarge() { location.replace(location.href + '&big'); } function reduce() { location.replace(location.href.replace(/&big/, "")); } function addBookmark() { var bookmarkurl="http://www.netto.co.uk"; var bookmarktitle="Netto's homepage"; if (document.all) { window.external.AddFavorite(bookmarkurl,bookmarktitle); } } function MM_openBrWindow(theURL,winName,features,width,height) { if ( features.length > 0) { features += ","; } var myWin = window.open(theURL,winName,features + "width=" + width + ",height=" + height + ",left=" + ((screen.width - width) / 2) + ",top=" + ((screen.height - height) / 2)); myWin.focus(); } function showBasket(){ var newURL = "//ShoppingCart?OpenAgent"; window.open(newURL,'Huskeseddel','toolbar=no,location=no,resizable=yes,scrollbars=yes,width=577,height=450') } function showMap(){ var newURL = "http://www.locationwebmaps.co.uk/near2u/753749"; window.open(newURL,'Map','toolbar=no,location=no,scrollbars=yes,width=560,height=550') } function showPopup(){ var newURL = "/internet/nettog/menu/main.nsf/web/popup?OpenDocument"; if ( newURL.length > 0) { var features = "toolbar=no,location=no,scrollbars=yes,width=350,height=350," + "left=" + ((screen.width - 350) / 2) + ",top=" + ((screen.height - 350) / 2); var winName = "Popup"; window.open(newURL, winName, features); } } function back( ){ history.go( -1 ); } function fullscreen(URL,winName,features) { if ( features.length > 0) { features += ","; } var myFullscreen = window.open(URL,winName,features + "width=" + (window.screen.width-10)+ ",height=" + (window.screen.height-80)+ ",left=0,top=0"); myFullscreen.focus(); } function SetCookie2 (name, value, expires, path, domain, secure) { var today = new Date(); expires = new Date(); expires.setTime(today.getTime() + 365*24*60*60*1000); document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function SetCookie (name, value, expires, path, domain, secure) { document.cookie = name + "=" + escape (value) + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); }