function showLarge(newin) 
{
flyout=window.open(newin,"flyout","resizable=yes,scrollbars=yes,width=625,height=500,top=0,left=0,toolbar=no,status=no,menubar=no")
}

function showpopup400(newin) 
{
flyout=window.open(newin,"flyout","resizable=yes,scrollbars=yes,width=400,height=300,top=0,left=0,toolbar=no,status=no,menubar=no");
if(window.focus){flyout.focus()}
}


function showLarge500(newin) 
{
flyout=window.open(newin,"flyout","resizable=yes,scrollbars=yes,width=500,height=400,top=0,left=0,toolbar=no,status=no,menubar=no");
if(window.focus){flyout.focus()}
}


function showpopup625(win) 
{
popup=window.open(win,"flyout","resizable=yes,scrollbars=yes,width=625,height=600,top=0,left=0,toolbar=no,address=yes,status=yes,menubar=no");
if(window.focus){popup.focus()}
}

function showpopup800(win) 
{
popup=window.open(win,"flyout","resizable=yes,scrollbars=yes,width=830,height=600,top=0,left=0,toolbar=no,address=yes,status=yes,menubar=no");
if(window.focus){popup.focus()}
}

function showpopup(helpwin) 
{
popup=window.open(helpwin,"flyout","resizable=no,scrollbars=yes,width=500,height=500,top=0,left=0,toolbar=no,status=no,menubar=no")
}

function showpreview(previewwin) 
{
preview=window.open(previewwin,"flyout","resizable=yes,scrollbars=yes,width=750,height=550,top=0,left=0,toolbar=no,status=no,menubar=no")
}


function openDir( form ) { 
	var newIndex = form.fieldname.selectedIndex; 
	if ( newIndex == 0 ) { 
		alert( "Please select a location!" ); 
	} else { 
		cururl = form.fieldname.options[ newIndex ].value; 
		window.location.assign( cururl ); 
	} 
} 


//toggle visibility
function toggle (targetId) {
	if (document.getElementById) {
		target = document.getElementById ( targetId );
			if (target.style.display == "none") {
				target.style.display = "";
				}
			else {target.style.display = "none";
				}
		}
	}
