// JavaScript Document

function iwin(image,tytle,width,height, caption) {
		var cond1,cond2
        if (width==0) cond1=" "
                else cond1="width="+(width+40)+"";
        if (height==0) {cond2=" "}
                else {cond2="height="+(height+85)+""};
       var w = screen.width; // Get the width of the screen
       var h = screen.height; // Get the height of the screen
       var left = (w - width - 40)/2;
       var top = (h - height - 85)/2;
	   if (left<10) left = 10;
	   if (top<10) top = 10;
       var s1 ="<TITLE>"+tytle+"</TITLE>" 
       var s15="<body bgcolor='#000000'>"
       var s2 ="<CENTER><IMG SRC='"+image+"' BORDER=0>"
	   var s6 ="<p><font face='Tahoma, Arial' color='#cccccc'>"+caption+"</font></p>"
       var s3 ="<p><FORM><INPUT TYPE='BUTTON' VALUE='Close'"+
                " onClick='self.close()'>"
       var s4 ="</FORM></CENTER></BODY>"

        ImageWindow=window.open("", "newwin",
        "toolbar=no,resizable=yes,scrollbars=auto,menubar=no,left = "+left+",top = "+top+","+cond1+","+cond2);
        ImageWindow.document.write(s1+s15+s2+s6+s3+s4)
        ImageWindow.document.close()
}


function bookmark(){
		window.external.AddFavorite('http://www.exlc.org','ex-Legionaries Website');
}

/***********************************************
* Disable "Enter" key in Form script- By Nurul Fadilah(nurul@REMOVETHISvolmedia.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
                
function handleEnter (field, event) {
		var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
		if (keyCode == 13) {
			var i;
			for (i = 0; i < field.form.elements.length; i++)
				if (field == field.form.elements[i])
					break;
			i = (i + 1) % field.form.elements.length;
			field.form.elements[i].focus();
			return false;
		} 
		else
		return true;
	}   



var windowOpened
var newWindow	
function openWindow1(url,width,height, left, top) 
{
	var high = height + 0 // customizable
	var wide = width + 0  // customizable
	if (windowOpened) 
	{
		newWindow.close();
	}
	newWindow=window.open(url, "newwin",
        "toolbar=no,resizable=yes,maximized=yes,scrollbars=yes,menubar=no,left = "+left+",top = "+top+",width="+wide+",height="+high);
	windowOpened=true;
}


function DisplayMoreInfo(show0,hide0)
{
	document.getElementById(hide0).style.display='none';
	document.getElementById(show0).style.display='inline';
}
