var mode = 0;
if (mode == 1)
{
var htmlcode = '
Send this page to a friend
[ Close ] |
';
if (document.layers)
{
document.write('');
}
else if (document.all)
{
document.write('');
}
else if (document.getElementById)
{
document.write('');
}
}
else
{
var htmlcode = 'Send this page to a friend
|
';
}
function moveit() {
if (document.layers)
{
document.layers.allheadings33354.top = pageYOffset;
document.allheadings33354.left = window.innerWidth - 200 - 20;
}
else if (document.all)
{
document.all.allheadings33354.style.posLeft = document.body.clientWidth - 200 - 20;
document.all.allheadings33354.style.top = document.body.scrollTop;
}
else if (document.getElementById)
{
document.getElementById("allheadings33354").style.left = window.innerWidth - 200 - 20;
document.getElementById("allheadings33354").style.top = document.body.scrollTop;
}
setTimeout("moveit()",100);
}
function closeWindow() {
if (document.layers)
{
document.layers.allheadings33354.visibility = "hidden";
}
else if (document.all)
{
document.all.allheadings33354.style.visibility = "hidden";
}
else if (document.getElementById)
{
document.getElementById("allheadings33354").style.visibility = "hidden";
}
}
function oneTime() {
if (document.layers)
{
document.allheadings33354.document.write(htmlcode);
document.allheadings33354.document.close();
}
else if (document.all)
{
allheadings33354.innerHTML = htmlcode;
}
else if (document.getElementById)
{
newlayer = document.getElementById("allheadings33354");
newlayer.innerHTML = htmlcode;
}
document.epage33354.url.value = window.location;
setTimeout("moveit()",100);
}
if (mode == 2)
{
var yourLocation = window.location;
document.onkeypress = function (evt) {
var r = '';
if (document.all) {
r += event.shiftKey ? 'SHIFT' : '';
r += event.keyCode;
}
else if (document.getElementById) {
r += evt.shiftKey ? 'SHIFT' : '';
r += evt.charCode;
}
else if (document.layers) {
r += evt.modifiers & Event.SHIFT_MASK ? 'SHIFT' : '';
r += evt.which;
}
if (r == 'SHIFT69' || r == '69')
{
var IWindow;
EWindow = window.open('',IWindow++,'width=250,height=150,resizable=yes,scrollbars=no');
EWindow.document.write('E-mail A Page');
EWindow.document.write(htmlcode);
EWindow.document.write('');
EWindow.document.epage33354.url.value = yourLocation;
}
return true;
}
}
if (mode == 1)
{
setTimeout("oneTime()",100);
}
if (mode == 0)
{
document.write(htmlcode);
document.epage33354.url.value = window.location;
}