//--------------------------------
function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "External") 
     anchor.target = "_blank"; 
 } 
} 
//--------------------------------
function toTop()
{
        window.scrollTo(0,0)
}
//--------------------------------
var day = new Object();
var mon = new Object();
date=new Date();
var y2000 = date.getFullYear();

day[0]="Sunday";
day[1]="Monday";
day[2]="Tuesday";
day[3]="Wednesday";
day[4]="Thursday";
day[5]="Friday";
day[6]="Saturday";
mon[0]="January";
mon[1]="February";
mon[2]="March";
mon[3]="April";
mon[4]="May";
mon[5]="June";
mon[6]="July";
mon[7]="August";
mon[8]="September";
mon[9]="October";
mon[10]="November";
mon[11]="December";


jahr=date.getFullYear();
//--------------------------------
var boodschap = '\u00A9 2001-' + jahr + ' FlyWEB! Web Design \u00BB Some Rights Reserved (cc)'; 
function dgstatus()
{
      window.status = boodschap;
}
//--------------------------------
function centerPopUp( url, name, width, height, scrollbars ) { 
 
	if( scrollbars == null ) scrollbars = "1" 
 
	str  = ""; 
	str += "resizable=1,"; 
	str += "scrollbars=" + scrollbars + ","; 
	str += "width=" + width + ","; 
	str += "height=" + height + ","; 
 
	if ( window.screen ) { 
		var ah = screen.availHeight - 30; 
		var aw = screen.availWidth - 10; 
 
		var xc = ( aw - width ) / 2; 
		var yc = ( ah - height ) / 2; 
 
		str += ",left=" + xc + ",screenX=" + xc; 
		str += ",top=" + yc + ",screenY=" + yc; 
	} 
	window.open( url, name, str ); 
}
//-------------------------------
function bookmark(){
var title = 'FlyWEB!\'s';
var url = 'http://www.flyweb.nl/';
   if (document.all)
     window.external.AddFavorite(url, title);
   else if (window.sidebar)
     window.sidebar.addPanel(title, url, "")
   else if (window.sidebar&&window.sidebar.addPanel)
     window.sidebar.addPanel(title,url,"");
}
//---------------------------------
function pop(url,w,h,scroll){
  if(scroll==1) bars='yes';
	else bars='no';
  popwindow= open(url, "popwin","width=" + w + "px,height==" + h + "px,top=0,left=0;fullscreen=no,scrollbars==" + bars + ",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes");
}
//---------------------------------
function clickclear(thisfield, defaulttext) {
if (thisfield.value == defaulttext) {
thisfield.value = "";
}
}

function clickrecall(thisfield, defaulttext) {
if (thisfield.value == "") {
thisfield.value = defaulttext;
}
}
//---------------------------------

function size(x) { 
      e = document.getElementById('comment').style.height; 
      e = parseInt(e.replace("px","")); 
      if (isNaN(e)) { 
            e = 150; 
      } 
      x = parseInt(x); 
      if (((x < 0) && (e > 150)) || (x > 0)) { 
            e += x * 30; 
            document.getElementById('comment').style.height = e + "px"; 
      } 
}
 