﻿// Add to favorites
function addToFavorites() {
	var urlAddress = "http://www.buzprint.co.uk/";
	var pageName = "Buz Print - Have You Heard the Buz!";
	if (document.all) {
		window.external.AddFavorite(urlAddress, pageName);
	} else if (window.sidebar) {
		window.sidebar.addPanel(pageName, urlAddress, "")
	}
}


var win= null;
function NewWindow(mypage,myname,w,h,scroll){
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	var settings ='height='+h+',';
	settings +='width='+w+',';
	settings +='top='+wint+',';
	settings +='left='+winl+',';
	settings +='scrollbars='+scroll+',';
	settings +='resizable=yes';
	win=window.open(mypage,myname,settings);
	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
} 
function MM_openBrWindow(theURL,winName,features) { 
	window.open(theURL,winName,features);
}

function CheckWithUser(Message,Location) {
var answer = confirm (Message)
if (answer) { window.location=Location }
}
