var last  = null;

function ChangeNewsItem(divid){
	var obj = document.getElementById('xml_item'+divid);
	var newsitem = document.getElementById('news_item');
	
	newsitem.innerHTML = obj.innerHTML;
}


function init(){
	last = document.getElementById('xml_item1');
	document.getElementById('news_item').innerHTML = last.innerHTML;
}

if(document.getElementById('domeinnaam')){
	document.getElementById('domeinnaam').onfocus = function(){ 
		document.getElementById('domeinnaam').value = '';
	}
}

if(document.getElementById('gebruikersnaam')){
	document.getElementById('gebruikersnaam').onfocus = function(){ 
		document.getElementById('gebruikersnaam').value = '';
	}
}

if(document.getElementById('wachtwoord')){
	document.getElementById('wachtwoord').onfocus = function(){ 
		document.getElementById('wachtwoord').value = '';
	}
}

if(document.getElementById('btnlogin')){
	document.getElementById('btnlogin').onmouseover = function(){ 
		document.getElementById('btnlogin').src = 'images/button.login.on.gif';
	}
	document.getElementById('btnlogin').onmouseout = function(){ 
		document.getElementById('btnlogin').src = 'images/button.login.off.gif';
	}
}

//aanbieding blokken in header
if(document.getElementById('item1')){
	document.getElementById('item1').onclick = function(){ 
		location.href = 'nl_domeinnaam.asp';
	}
}

if(document.getElementById('item2')){
	document.getElementById('item2').onclick = function(){ 
		location.href = 'linux_hosting.asp';
	}
}

if(document.getElementById('item3')){
	document.getElementById('item3').onclick = function(){ 
		location.href = 'windows_hosting.asp';
	}
}

//aanbieding blokken in index
if(document.getElementById('block1')){
	document.getElementById('block1').onclick = function(){ 
		location.href = 'resellers.asp';
	}
}

if(document.getElementById('actie')){
	document.getElementById('actie').onclick = function(){ 
		location.href = 'nl_domeinnaam.asp';
	}
}

if(document.getElementById('block3')){
	document.getElementById('block3').onclick = function(){ 
		location.href = 'dedicated_server.asp';
	}
}


if(document.getElementById('frmlogin_button')){
	document.getElementById('frmlogin_button').onmouseover = function(){ 
		document.getElementById('frmlogin_button').src = "images/button.login.on.gif"
	}
	document.getElementById('frmlogin_button').onmouseout = function(){ 
		document.getElementById('frmlogin_button').src = "images/button.login.off.gif"
	}
	document.getElementById('frmlogin_button').onclick = function(){ 
		document.forms['frmLogin'].submit();
	}
}

if(document.getElementById('frmcheck_button')){
	document.getElementById('frmcheck_button').onmouseover = function(){ 
		document.getElementById('frmcheck_button').src = "images/button.domain.on.png"
	}
	document.getElementById('frmcheck_button').onmouseout = function(){ 
		document.getElementById('frmcheck_button').src = "images/button.domain.off.png"
	}
	document.getElementById('frmcheck_button').onclick = function(){ 
		document.forms['frmOnline'].submit();
	}
}

if(document.getElementById('frmcheck_button_actie')){

	document.getElementById('frmcheck_button_actie').onclick = function(){ 
		document.forms['frmOnline_actie'].submit();
	}
}










