'); document.close(); } // test for forbidden tags for this service function checkForbiddenGetImageTag(theString) { var theError=""; var dQuote = '"'; var startpos = theString.indexOf("CAPABILITIES forbidden="); if (startpos!=-1) { startpos = startpos + 24; endpos = theString.indexOf(dQuote,startpos); var forbiddenTags = theString.substring(startpos,endpos); //alert(forbiddenTags); if (forbiddenTags.indexOf("GET_IMAGE")!=-1) { theError = msgList[119]; // No image requests!!!! Abort viewer } } return theError; } // check if theURL has different host from theHost function isNotSameHostInURL(theURL, theHost) { var startpos = theURL.indexOf("//"); if (startpos==-1) { startpos = 0; } else { startpos = startpos + 2; } var endpos = theURL.indexOf("/",startpos); if (endpos==-1) endpos = theURL.length; var thisHost = theURL.substring(startpos,endpos); if (thisHost==theHost) { return false; } else { return true; } }