function showCity(cityname) { location.href='ShowCity?open&city='+cityname; } function openStateMap() { var facState = document.getElementById('state'); var mapType = document.getElementById('maptype'); // if (mapType.value == '') { alert('Search Error: Unable to located map type. Please report error.'); return; } if (facState) { if (( facState.options[facState.selectedIndex].value != 'N') && ( facState.options[facState.selectedIndex].value !='')) { ShowStateMap(facState.options[facState.selectedIndex].value ); } } } function lookupCity() { var state = document.getElementById('state'); var mapType = document.getElementById('maptype'); if (!mapType) { alert('Search Error: Unable to locate the map type.'); return;} if (state) { state = state.options[state.selectedIndex].value; if ( state !='') { lookupURL = 'NotesLookupCity?OpenAgent&q='; queryString = state + '&MP=' + mapType.value; doRemoteQuery(queryString ); } } } function ShowStateMap(state) { setCookie ( 'state',state); location.href='ShowStateMap?open&ST='+state + '&FT=N&FC=N&FN=N' ; } function showFacType() { var facType = document.forms[0].facType; var facCity = document.getElementById('facCity1'); var facName = document.getElementById('facName1'); var facState = document.getElementById('state'); var facCountry = document.getElementById('facCountry1'); var facComm=''; var delimiter =''; for ( var x = 0; x < facType.length; x ++) { if (facType[x].checked) { facComm = facComm + delimiter + facType[x].value; delimiter ='~'; } } if (facComm == '') { facComm = 'N'; } if (!facCity) { alert('Error: Unable to locate the Facility City. Please report error'); return; } if (!facName) { alert('Error: Unable to locate the Facility Name. Please report error'); return; } if (!facState) { alert ( 'Error: Unable to locate the Facility State. Please report error'); return; } if (!facCountry) { alert( 'Error: Unable to locate the Facility Country. Please report error'); return; } if (!facType) { location.href='showStateMap?open&ST=' + facCountry.value + '~' + facState.value + '&FT=N&FC=' + facCity.value + '&FN=' + facName.value; } else { location.href='showStateMap?open&ST=' + facCountry.value + '~' + facState.value + '&FT=' + facComm + '&FC=' + facCity.value + '&FN=' + facName.value; } } function openview(agentname) { location.href='./' + agentname; } function collapseEx(rowname) { var obj = document.getElementById(rowname) if (obj.style.display=='none') { obj.style.display=''; obj.style.height='auto'; } else { obj.style.display='none'; obj.style.height='0'; } var obj = document.getElementById(rowname + "_H") if (obj) { if (obj.style.display=='none') { obj.style.display=''; obj.style.height='auto'; } else { obj.style.display='none'; obj.style.height='0'; } } } function swap(obj,rowname) { var image = obj.getElementsByTagName("IMG")[0]; var string = image.src; if (string.indexOf('lnplus.gif',0) > -1) { image.src='lnminus.gif'; } else { image.src='lnplus.gif'; } collapseEx(rowname); } function setCookie ( name, value, expires, path, domain ) { document.cookie = name + '=' + escape (value) + ((expires) ? '; expires=' + expires.toGMTString() : '') + ((path) ? '; path=' + path : '; path=/') + ((domain) ? '; domain=' + domain : ''); } function getCookie( label ) { label += '='; var i = 0; while (i < document.cookie.length) { var x = i + label.length; if (document.cookie.substring(i,x) == label) { var cEnd = document.cookie.indexOf(';',x); if (cEnd == -1) { cEnd = document.cookie.length } return ( unescape(document.cookie.substring(x,cEnd)) ) } i++; } return ''; } function reset() { location.href ='searchMetroMap?open&ST=N&FC=N&FZ=N&ML=N'; } var childWindow = null; function openChild(file,window) { childWindow=open(file,window,'menubar=No,resizable=Yes,scrollbars=Yes,width=450,height=450'); if (childWindow.opener == null) childWindow.opener = self; }