
	var LstOpenedDiv = 'div1'

	function oDiv(divid){
		cDiv(LstOpenedDiv);
		window.document.getElementById(divid).style.display = 'block';
		LstOpenedDiv = divid;
		}

	function cDiv(divid){
		window.document.getElementById(divid).style.display = 'none';
		}

	function gosolid(){
		//window.document.getElementById('mainWrapper').style.filter = "alpha(opacity=100)";
		}

// CLOSES MENUS WHEN A NON-LINK IS CLICKED ===

	var mOpen = '';

	function cls(e){
		if(e)	{
			var obj = e.target
			}else{
			var obj = event.srcElement
			}
			if(obj.nodeName != 'A')
				{
				window.document.getElementById(LstOpenedDiv).style.display = 'none';
				//gosolid();
				}
			}
	document.onclick = cls;

//

	var LstShowDiv = 'show1';


	function sshow(divid,showname,showwidth){
		
		window.document.getElementById(divid).style.left = parseInt(document.body.clientWidth-600)/2+'px';

		cDiv(LstShowDiv);

		window.document.getElementById(showname).style.display = 'block';

		LstShowDiv = showname;

		//window.document.getElementById('mainWrapper').style.filter = "alpha(opacity=40)";
				
		oDiv(divid);
		
		}

	function chkclear(){
		window.document.getElementById('chkEST').checked = false;
		window.document.getElementById('chkVAL').checked = false;
		window.document.getElementById('chkPLA').checked = false;
		window.document.getElementById('chkDOC').checked = false;
		}

// ENQUIRY POPUP

	function showenq(divid){
		window.document.getElementById(divid).style.left = parseInt(document.body.clientWidth - 710)/2 + 'px';
		window.document.getElementById(divid).style.display = 'block';
		}
	function hideenq(divid){
		window.document.getElementById(divid).style.display = 'none';
		chkclear();
		}



