A
PPENDICES
S
ECTION
A
PPENDIX
B
M86 S
ECURITY
U
SER
G
UIDE
433
Reference
HTML
<!-- Description: Sample HTML for Web Filter customized block page
-->
<!-- Replace <Web Filter IP> with real IP before using -->
<!-- Revision: 1 -->
<!-- Date: 03/08/2004 -->
<html>
<head>
<script language=javascript>
function parseData(str, start, end)
{
result = "";
i = str.indexOf(start);
if (i >= 0) {
len = str.length;
substr = str.substr(i+start.length, len -
start.length);
j = substr.indexOf(end);
if ( j > 0) {
result = substr.substring(0, j);
}
else {
if ( j != 0) {
len = substr.length;
result = substr.substr(0, len);
}
}
}
return result;
}
function getData(){
str = document.location.href;
len = str.length;
i = str.indexOf("?");
if ( i>= 0) {
query = str.substr(i+1, len-i-1);
url = parseData(query, "URL=", "&");
document.block.URL.value = url;
ip = parseData(query, "IP=", "&");
document.block.IP.value = ip;
cat = parseData(query, "CAT=", "&");
document.block.CAT.value = cat;