function showForm() {
	var isIE6 = /msie|MSIE 6/.test(navigator.userAgent);
	if(!isIE6) {
		openFrame = true;
		doResize();
		var form = document.getElementById('divhtml');
		form.style.visibility = 'visible';
	} else {
		window.open('https://nuon.c-cm.nl/sg/content/UserLanding.aspx?ProductCode=ne', '_blank');
	}
}

function hideForm() {
	var isIE6 = /msie|MSIE 6/.test(navigator.userAgent);
	
	if(!isIE6) {
		openFrame = false;
		doResize();
		var form = document.getElementById('divhtml');
		form.style.visibility = 'hidden';
	}
}

function doResize() {
	var form = document.getElementById('divhtml');
	var frame = document.getElementById('formframe');
	var w = getWidth();
	var h = getHeight();
	
	form.style.height = Math.round(h - 150);
	frame.height = Math.round(h -150);
}

function getWidth() {
	if(window.innerWidth!=undefined) {
		return window.innerWidth;
	} else{
		var element = document.documentElement;
		if(element) {
			return element.clientWidth;
		}
	}
}

function getHeight() {
	if(window.innerHeight!=undefined) {
		return window.innerHeight;
	} else{
		var element = document.documentElement;
		if(element) {
			return element.clientHeight;
		}
	}
}

function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}