// JavaScript Document
var oldid="";

	function opendiv(id,w,h){
		if (oldid==""){
			if (document.getElementById(id).style.display == 'block'){
				document.getElementById(id).style.display = 'none';
			}
			else{
				document.getElementById(id).style.display = 'block';
				oldid=id;
			}
		}
		else if (oldid==id){
			document.getElementById(id).style.display = 'none';
			oldid="";
		}
		else{
			document.getElementById(oldid).style.display = 'none';
			oldid="";
			if (document.getElementById(id).style.display == 'block'){
				document.getElementById(id).style.display = 'none';
			}
			else{
				document.getElementById(id).style.display = 'block';
				oldid=id;
			}
		}
	  	var iWidth=w;
	  	var iHeight=h;
        var iRealWidth = iWidth ? iWidth : 800 ;
        //alert(iRealWidth);
        var iRealHeight = iHeight ? iHeight : screen.height - 30 ;
        var iLeft = Math.round ((screen.width - iRealWidth) / 2)-23;
        var iTop =  Math.round ((screen.height - iRealHeight) / 2) + 220 ;
	  window.document.getElementById(id).style.left=iLeft ;	
	  window.document.getElementById(id).style.top=iTop ;	
	}
	
	function closediv(id){
		document.getElementById(id).style.display = 'none';
	}