
						function get_width()
						{
							return (window.innerWidth || (document.documentElement && document.documentElement.clientWidth) || document.body.clientWidth);
						}
						
						function get_height()
						{
							return (window.innerHeight || (document.documentElement && document.documentElement.clientHeight) || document.body.clientHeight);
						}
						
						function get_page_height()
						{
							return (document.getElementsByTagName('body')[0].scrollHeight);
						}
						
						function get_elm_width(obj)
						{
							return obj.clientWidth || obj.offsetWidth;
						}
						
						function get_elm_height(obj)
						{
							return obj.clientHeight || obj.offsetHeight;
						}
						
						
						function setOpacity(obj, value)
						{
							value = Math.round(value);
							obj.style.opacity = value/100;
							obj.style.filter = 'alpha(opacity=' + value + ')';
						}
						
						function addEvent(obj, evType, fn)
						{
							if (obj.addEventListener)
							{
								obj.addEventListener(evType, fn, false);
								return true;
							}
							else if (obj.attachEvent)
							{
								var r = obj.attachEvent("on"+evType, fn);
								return r;
							}
							else
							{
								return false;
							}
						}
			
							
							
						function show_lightbox(id, add_abort_click)
						{
							
							var head = document.getElementsByTagName("body")[0];
							
							var htmDiv = document.createElement('div');
							
							htmDiv.id = id + "_overlay1";
							
							htmDiv.innerHTML = "Dette er en test";
							
							htmDiv.style.position="absolute";
							htmDiv.style.zIndex="2";
							htmDiv.style.top="0px";
							htmDiv.style.left="0px";
							htmDiv.style.width=get_width() + "px";
							htmDiv.style.height=get_page_height() + "px";
							htmDiv.style.background="#000000";
							
							setOpacity(htmDiv, 50);
							
							if (add_abort_click==1)
							{
								if (htmDiv.attachEvent)
								{
									htmDiv.attachEvent('onclick',function () {
														hide_lightbox(id);
														},false);								
								}
								else if (htmDiv.addEventListener)
								{
									htmDiv.addEventListener('click',function () {
														hide_lightbox(id);
														},false);
								}
							}
							
							head.appendChild(htmDiv);
							
							

							
							
														
							document.all(id).style.display="block";
							
							document.all(id).style.position="absolute";
							document.all(id).style.zIndex="3";
							document.all(id).style.top = parseInt((get_height()-get_elm_height(document.all(id)))/2) + "px";
							document.all(id).style.left = parseInt((get_width()-get_elm_width(document.all(id)))/2) + "px";
							
							

							
							//setTimeout("hide_warning('" + id + "');", 2000);
							
						}
						
						function hide_lightbox(id)
						{
							if (document.all(id + '_overlay1'))
							{
								var htmDiv = document.all(id + '_overlay1');
								
								htmDiv.parentNode.removeChild(htmDiv); 
							}
							
							document.all(id).style.display="none";
							
						}
