

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function BrowserInfo() {
  this.name = navigator.appName;
  this.codename = navigator.appCodeName;
  this.version = navigator.appVersion;
  this.platform = navigator.platform;
  this.javaEnabled = navigator.javaEnabled();
  this.screenWidth = screen.width;
  this.screenHeight = screen.height;
}

b = new BrowserInfo()	
if(b.version.indexOf("MSIE 6") != -1) {
	//var css = document.createElement("link")
	//css.setAttribute("href","http://www.nti.nl/msn/channel2007/include/ie6.css")
	//css.setAttribute("rel","stylesheet")
	document.write("<link href='http://www.nti.nl/msn_be/channel/include/ie6.css' rel='stylesheet' />")
}


function mail(naar) {
	var adres = "@nti.nl"
	location.href="mailto:"+naar+adres
}

// --------- Zoeken

function insertSearch(zoekterm) {
	myAjax = new Ajax('http://www.nti.nl/msn/channel/include/zoek.asp?term='+zoekterm, {
		onComplete: searchRedirect()
	}).request();	
}

function searchRedirect(zoekterm) {
	document.location.href='http://www.nti.nl/Default.aspx?ID=308&partner=channel&att=zoekbox_enter&q='+target.value
}


// --------- De poll

function Poll() {
	var gekozen
}

Poll.prototype.stem = function(id,website) {
	for(i=0;i<document.pollAntwoorden.antwoord.length;i++) {
		if(document.pollAntwoorden.antwoord[i].checked) {
			this.gekozen = document.pollAntwoorden.antwoord[i].value;
		}
	}
	myAjax = new Ajax('include/poll.asp?&id='+id+'&antwoord='+this.gekozen, {
		update: 'poll'
	}).request();
}

Poll.prototype.test = function() {
	alert($('poll').innerHTML)	
}

poll = new Poll()