/*
Author: Robert Hashemian
http://www.hashemian.com/
You can use this code in any manner so long as the author's
name, Web address and this disclaimer is kept intact.
********************************************************
Usage Sample:
*/
if (typeof(VIH_BackColor)=="undefined")
VIH_BackColor = "white";
if (typeof(VIH_ForeColor)=="undefined")
VIH_ForeColor= "black";
if (typeof(VIH_FontPix)=="undefined")
VIH_FontPix = "16";
if (typeof(VIH_DisplayFormat)=="undefined")
VIH_DisplayFormat = "You are visiting from:
IP Address: %%IP%%
Host: %%HOST%%";
if (typeof(VIH_DisplayOnPage)=="undefined" || VIH_DisplayOnPage.toString().toLowerCase()!="no")
VIH_DisplayOnPage = "yes";
VIH_HostIP = "%%IP%%";
VIH_HostName = "%%HOST%%";
if (VIH_DisplayOnPage=="yes") {
VIH_DisplayFormat = VIH_DisplayFormat.replace(/%%IP%%/g, VIH_HostIP);
VIH_DisplayFormat = VIH_DisplayFormat.replace(/%%HOST%%/g, VIH_HostName);
document.write("
" + VIH_DisplayFormat + " |