
	function togglegglmap(url){
		var map=document.getElementById('gglmap');
		if(map.style.display=='none' || map.style.display==''){
			map.innerHTML='<iframe id="gglfra" src="'+url+'"></iframe>'; map.style.display='block';
		}else map.style.display='none';
	}
	function togglediv(divid){
		var leg=document.getElementById(divid);
		if(leg.style.display=='none' || leg.style.display==''){ leg.style.display='block'; }else leg.style.display='none';
	}
	function clckPoint(obj){
		map.setZoom(11); map.setCenter(obj.position); if (infowindow) infowindow.close();
		ittl="<font style='font-family:Arial;font-color:gray;font-size:12px'>"+obj.fulltitle+"<small>, <A HREF='javascript:openParent(\""+obj.url+"\");'>details</a></font>";
		infowindow=new google.maps.InfoWindow({content:ittl,maxWidth:250}); infowindow.open(map,obj);
	}
	function openParent(url){ window.parent.location=url; }

	function hideDiv(divid){
		var div = document.getElementById(divid);
		div.style.visibility='hidden';
	}
	function showDiv(divid){
		var div = document.getElementById(divid);
		div.style.visibility='visible';
		setTimeout("hideDiv('"+div.id+"')", 4000);
	}


	function frmHandler(frmNme,frmAction){
		var frm = document.getElementById('frm'+frmNme);
		frm.action+='#'+frmNme; frm.show.value=frmAction;
		frm.submit();
	}

	function snd(id){
		var arrEmails = new Array();
		if(arrEmails[id]==null) alert("undefined"); else window.open ('mailto:'+arrEmails[id],'_blank');
	}

	function OpenLink(URL){
		if (winDetail) winDetail.close();
		var winDetail = window.open(URL,"Links","width=640,height=500,left=100,top=100,resizable=yes,scrollbars=yes");
		winDetail.focus();
	}

	function OpenLinkSmall(URL){
		if (winDetailSmall) winDetailSmall.close();
		var winDetailSmall = window.open(URL,"Links","width=320,height=250,left=100,top=100,resizable=yes,scrollbars=yes");
		winDetailSmall.focus();
	}

	function OpenLinkCard(URL){
		if (winDetailCard) winDetailCard.close();
		var winDetailCard = window.open(URL,"Links","width=450,height=225,left=100,top=100,resizable=yes,scrollbars=yes");
		winDetailCard.focus();
	}

	function OpenLinkFullDecl(URL,DECL){
		if (winDetailDef) winDetailDef.close();
		var winDetailDef = window.open(URL,"",DECL);
		winDetailDef.focus();
	}

	function chgOpener(URL){
		if (window.opener){
		  window.opener.location.href=URL;window.opener.focus();window.close();
		}else{ window.location.href=URL; }
	}

	function sendText(text,obj){
		if (window.opener){
		  if (txtfield = getObj(obj)) {
				 if (txtfield.value==""){ txtfield.value=urldecode(text);	}else{ txtfield.value=txtfield.value + "&" + urldecode(text);	}
		 	}
		} window.close();
	}

	function sendOneText(text,obj){
		if (window.opener){
		  if (txtfield = getObj(obj)){ txtfield.value=urldecode(text);	}
		} window.close();
	}

	function sendOneTextID(text1,obj1,text2,obj2){
		if (window.opener){
		  if (txtfield = getObj(obj1)){ txtfield.value=urldecode(text1);	}
		  if (txtfield = getObj(obj2)){ txtfield.value=urldecode(text2);	}
		} window.close();
	}

	function getObj(name){
		var wndw,obj,objs;

		if (window.opener) wndw=window.opener.document; else wndw=document;
		if(document.getElementById){ obj = wndw.getElementById(name);}
		else if (document.all) { obj = wndw.all[name];	}
		else if (document.layers) { obj = wndw.layers[name];	}
		if(!obj && document.getElementsByName) { objs = wndw.getElementsByName(name); obj=objs[0];	}

		return obj;
	}

	function getObjSame(name){
		var obj, objs;

		if (document.getElementById){ obj = window.document.getElementById(name);}
		else if (document.all){ obj = window.document.all[name];	}
		else if (document.layers){ obj = window.document.layers[name];	}
		if(!obj && document.getElementsByName){  objs = window.document.getElementsByName(name); obj=objs[0];	}
		return obj;
	}

	function urldecode(ch) {
		ch = ch.replace(/[+]/g," ")
		return unescape(ch)
	}

	function write2win(title,txt){
		var winTXT = window.open("",title,"width=550,height=400,left=100,top=100,resizable=yes,scrollbars=yes");
		winTXT.document.open("text/html", "replace");
		winTXT.document.write("<HTML><HEAD><TITLE>"+title+"</TITLE></HEAD><BODY><P>"+txt+"</BODY></HTML>");
	}

	function changeLoc2(url){ document.location.href=url;	}

	function setcookie(koekie,val){ document.cookie = koekie+"="+escape("open");	}
	function dropcookie(koekie,val){ document.cookie = koekie+"="+escape("close");	}

	function setLanguage(lang){
		document.cookie="language="+escape(lang); document.location.reload();
	}

	function clearTxtID(id){
		if(obj1=getObjSame('search'+id)) obj1.value='';
		if(obj1=getObjSame('txt'+id)) obj1.value='';
		if(obj1=getObjSame(id+'ID')) obj1.value='';
	}

	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	function MM_preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
			 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
			 if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
			 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
			if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
