//Free JavaScript examples on http://www.ScriptBreaker.com
var url = "http://www.brampton.com"

var ms = navigator.appVersion.indexOf("MSIE")
var ie5 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+7)) >= 5)

function set_as_homepage(othis) 
{
if(ie5)
{
othis.style.behavior='url(#default#homepage)';
othis.setHomePage(url);
}
else
{
 alert("Sorry your browser does not support this action.\n Only Internet Explorer 5 or higher.");
}
}

function alertemail(which){
if (confirm("You entered \""+which.value+"\" as your email address. Is that correct?"))
return true
else{
which.focus()
return false
}
}

<!--
function GetCookie(name) {
var arg=name+"=";
var alen=arg.length;
var clen=document.cookie.length;
var i=0;
while (i<clen) {
var j=i+alen;
if (document.cookie.substring(i,j)==arg)
return "here";
i=document.cookie.indexOf(" ",i)+1;
if (i==0) break;
}
return null;
}
var visit=GetCookie("COOKIE1");
if (visit==null){
var expire=new Date();
window.name = "thiswin";
newwin=open("signup.html", "dispwin",
"width=250,height=300,scrollbars=no,menubar=no");
expire=new Date(expire.getTime()+2592000000);
document.cookie="COOKIE1=here; expires="+expire;
}
// -->
