function _hideNews(){
	getObj("news_1").style.visibility="hidden";
	getObj("news_3").style.visibility="hidden";
	getObj("news_2").style.visibility="hidden";
}

function getHTTPObject(){
	var xmlhttp=false;
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	 try {
	  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
	  try {
	   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	   xmlhttp = false;
	  }
	 }
	@end @*/
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp=false;
		}
	}
	if (!xmlhttp && window.createRequest) {
		try {
			xmlhttp = window.createRequest();
	} catch (e) {
		xmlhttp=false;
	}
	}
	return xmlhttp;
}

function getObj(name){
	if (document.getElementById) return document.getElementById(name);	
	else if (document.all) return document.all[name];
	else if (document.layers) return document.layers[name];
	return false;
}

function checkQuantity(input){
	var value = input.value;
	var str = "";
	for(var i=0;i<value.length;i++){
		var ch = input.value.slice(i,i+1);
		if(ch >= 0 || ch <= 9) str += ch;
	}
	input.value = str;
}

function checkForm(){
	if(document.bestelForm.voornaam.value == ""){ alert("Er is geen voornaam ingevuld!"); return false; }
	if(document.bestelForm.achternaam.value == ""){ alert("Er is geen achternaam ingevuld!"); return false; }
	if(document.bestelForm.email.value == ""){ alert("Er is geen emailadres ingevuld!"); return false; }
	if(document.bestelForm.adres.value == ""){ alert("Er is geen bezorgadres ingevuld!"); return false; }
	if(document.bestelForm.postcode.value == ""){ alert("Er is geen postcode ingevuld!"); return false; }
	if(document.bestelForm.woonplaats.value == ""){ alert("Er is geen woonplaats ingevuld!"); return false; }
	return true;
}
