<!--
function bookmark(url, description)
		{
		netscape="Press OK and then press CONTROL-D to bookmark this site"
		if (navigator.appName=='Microsoft Internet Explorer')
		{
		window.external.AddFavorite(url, description);
		}
		else if (navigator.appName=='Netscape')
		{
		alert(netscape);
		}
		}

if (self.parent.frames.length != 0)
		self.parent.location="http://www.breedbandstart.nl";

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var cookieNaam = 'BREEDBANDSTART';
var UrlLijst= new Array();
var maxAantal = 50;
var UrlGegevens= new Array();


function BREEDBANDSTART(Url,Omschrijving)
{
	this.Url=Url;
	this.Omschrijving=Omschrijving;
}

function setCookie(cookieNaam, cookieInhoud){
   var today = new Date();
  var expiry = new Date(today.getTime() + 365 * 24 * 60 * 60 * 10000);
document.cookie=cookieNaam + "= " + escape (cookieInhoud) + "; expires=" + expiry.toGMTString()+ "; path=/";}

function getCookie (cookieNaam) {
  var cname = cookieNaam + "=";
  var i = 0;
  while (i < document.cookie.length) {
    var j = i + cname.length;
    if (document.cookie.substring(i, j) == cname){
    var leng = document.cookie.indexOf (";", j);
    if (leng == -1) leng = document.cookie.length;
    return unescape(document.cookie.substring(j, leng));
    }
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break; 
  }
  return "*";
}

function getBREEDBANDSTARTs() 
{ 
    cookieWaarde= getCookie(cookieNaam);
    if (cookieWaarde=="*")
    {
       return false
    }
    else
    {
       UrlGegevens = cookieWaarde.split("¶¶");
       for (i=0; i < UrlGegevens.length; i++)
       {
            kruimel = UrlGegevens[i].split("  ");
            UrlLijst[i]= new BREEDBANDSTART(kruimel[0], kruimel[1]);
       }
       return true;   
    }
}

function setBREEDBANDSTARTs()
{
    
    UrlGegevens = new Array();
    if (UrlLijst.length > 0)
    {
        for (i=0; i < UrlLijst.length; i++)
        {
            UrlGegevens[i]=UrlLijst[i].Url + "  " + UrlLijst[i].Omschrijving;
            
        }
        var cookieVal = UrlGegevens.join("¶¶");
        
        setCookie(cookieNaam,cookieVal);
    }
    else
    {
        delCookie(cookieNaam);
    }
    return true;
}

function addBREEDBANDSTART(link,omschrijving)
{
    var i = UrlLijst.length;
    
    if (i >= maxAantal)
    {
        alert ("U kunt maximaal " + maxAantal+ " links toevoegen !");
    }
    else
    {
       UrlLijst[i] = new BREEDBANDSTART(link,omschrijving);
       setBREEDBANDSTARTs();
       window.location.reload();
    }
    return true;
}   

function updateCookie()
{
    for (i=0; i < UrlLijst.length; i++)
    {
        UrlLijst[i].Url= eval("document.Form.URL" + i + ".value");
        
        UrlLijst[i].Omschrijving= eval("document.Form.OMS" + i + ".value");
    }
    setBREEDBANDSTARTs();
    window.location.reload();
    return true;
}

function deleteUrl(linkcode)
{
    
    var linknum = parseInt(linkcode.substring(3,linkcode.length),10);
    
    for (i=linknum; i < UrlLijst.length; i++)
    {
        if (i == (UrlLijst.length - 1))
            {
                UrlLijst[i] = "";
                UrlLijst.length -= 1;
            } 
            else
        {
                UrlLijst[i] = UrlLijst[i+1];
        }
    }   

    setBREEDBANDSTARTs();
    window.location.reload();
    return true;

}

function delCookie() 
{
	
    	document.cookie = cookieNaam +"=; expires=Thu, 01-Jan-00 00:00:01 GMT";
      	document.cookie = cookieNaam +"=; expires=Thu, 01-Jan-00 00:00:01 GMT; path=/";	
	window.location.reload();
	return true;


}

function ExplorerFix() 
{ for (a in document.links) document.links[a].onfocus = document.links[a].blur; 
}
if(document.all) document.onmousedown = ExplorerFix;
