
function clipcopy(x) 
{
 window.clipboardData.setData('text', x);
}

function printCopy(x, y) 
{
 if( window.clipboardData && clipboardData.setData ) // ie or patched ff
 {
  document.write("<a href='#' onclick=\"clipcopy(\'" + x + "\'); return false;\"  title=\"Copy " + y + " to clipboard\">Copy " + y + " to clipboard</a>");
 }
}

function printBookmark()
{
 if(window.opera)
 {
  document.write("Press <b>Ctrl + D</b> to bookmark this page");
 }
 else if(document.all)  // ie
 {
  document.write("<a href='#' onclick='window.external.AddFavorite(\"http://www.my-ip.name\", \"What is My IP?\"); return false;' title='Bookmark'>Add to Bookmarks</a>");
 }
 else if(window.sidebar)
 {
  document.write("<a href='#' onclick='window.sidebar.addPanel(\"What is My IP?\", \"http://www.my-ip.name\", \"\"); return false;' title='Bookmark'>Add to Bookmarks</a>");
 }
 else
 {
  document.write("Press <b>Ctrl + D</b> to bookmark this page");
 }

}


if(top.location != self.location)
{
 top.location = self.location;
}


