function openLightWindow(url, height){
	document.getElementById('lightwindowIframe').style.display = ''
	document.getElementById('lightwindowIframe').src = url
	document.getElementById('lightwindowIframe').style.height = height +"px";
	setTransparentBg()
	document.getElementById('dropshadow').style.display = '';
}
function closeLightWindow(){
	parent.document.getElementById('lightwindowIframe').src = '';
	parent.document.getElementById('lightwindowIframe').style.display = 'none';
	parent.document.getElementById('dropshadow').style.display = 'none';
}
function setTransparentBg(){
	var heightandwidth = getPageSizeWithScroll();
	newDiv = document.getElementById('dropshadow');
	newDiv.style.height = heightandwidth[1] + "px";
	newDiv.style.width = heightandwidth[0] + "px";
	newDiv.id = 'dropshadow';
	newDiv.style.display = 'none';
}
function getPageSizeWithScroll(){
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
		xWithScroll = document.body.offsetWidth;
  	}
	arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll);
	//alert( 'The height is ' + yWithScroll + ' and the width is ' + xWithScroll );
	return arrayPageSizeWithScroll;
}
function openURLfromLightWindow(url){
	parent.window.location = url;
}
