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

function confirmation(url, message){
	var answer = confirm(message)
	if (answer){
		window.location = url;
	}
}

// no right click

var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")


function get_m(m) {
 ma = "";
 at = "@";
 if(m==1) {
  ma += "info";
  ma += at;
  ma += "freshbreath.ca";
 }
 if(m==2) {
  ma += "feedback";
  ma += at;
  ma += "freshbreath.ca";
 }
 if(m==3) {
  ma += "angellabs";
  ma += at;
  ma += "freshbreath.ca";
 }
 if(m==4) {
  ma += "webmaster";
  ma += at;
  ma += "freshbreath.ca";
 }
 
// breathdoc
if(m==5) {
  ma += "breathdoc";
  ma += at;
  ma += "breathdoc.com";
 }
 
if(m==6) {
  ma += "webmaster";
  ma += at;
  ma += "breathdoc.com";
 }
if(m==7) {
  ma += "feedback";
  ma += at;
  ma += "breathdoc.com";
 } 
 return ma;
}

// onClick status bar control	(thanks to ACK - http://www.acky.net)

function setMessage()
								{
							    var msg=" "
							    window.status = msg
								return true;
								}				
								
// thanks to Tucows for this idea...and a few others

 function barWrite()
   {
   window.defaultStatus = "Welcome to BreathDoc™!";
   return true;
   }								