// NO-RIGHT-CLICK SCRIPT
// NO-RIGHT-CLICK SCRIPT

// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

//var mymessage = "Please don't right-click on this page.";

//function right(e) {
//  if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
//    alert(mymessage);
//    return false;
//  }
//  else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || //event.button == 3)) {
//    alert(mymessage);
//   return false;
//  }
//  return true;
//}
//
//document.onmousedown=right;
//document.onmouseup=right;
//if (document.layers) window.captureEvents(Event.MOUSEDOWN);
//if (document.layers) window.captureEvents(Event.MOUSEUP);
//window.onmousedown=right;
//window.onmouseup=right;

// END NO-RIGHT-CLICK SCRIPT
// END NO-RIGHT-CLICK SCRIPT

// SCRIPT FOR RESTRICTING MESSAGE SUBMIT TO ONLY ONE CLICK
// SCRIPT FOR RESTRICTING MESSAGE SUBMIT TO ONLY ONE CLICK
// This script and many more are available free online at
// The JavaScript Source!! http://javascript.internet.com
var submitcount=0;

function checkFields() {
if (submitcount == 0)
   {
   submitcount++;
   return true;
   }
else
   {
   alert("This form has already been submitted.  Thanks!");
   return false;
   }
}

// NEW WINDOW SCRIPTS FOR GALLERIES
// NEW WINDOW SCRIPTS FOR GALLERIES

newWindow = 0;

function closeWindow() {

        if (newWindow && !newWindow.closed) {
                newWindow.close();
        
        }
}

//ANIMATED WINDOW- By Rizwan Chand (rizwanchand@hotmail.com)
//ANIMATED WINDOW- By Rizwan Chand (rizwanchand@hotmail.com)

//Modified by DD for NS compatibility
//Visit http://www.dynamicdrive.com for this script

function expandingWindow(sizer, title, website) {
var windowprops='width=100,height=100,scrollbars=1,copyhistory=0,status=no,resizable=yes'
var heightspeed = 12; // vertical scrolling speed (higher = slower)
var widthspeed = 20;  // horizontal scrolling speed (higher = slower)
var leftdist = 50;    // distance to left edge of window
var topdist = 50;     // distance to top edge of window

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = 500;
var winheight = 350;
var sizer = window.open("", "", "left=" + leftdist + ",top=" + topdist +","+ windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
  sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
  sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
newWindow = eval(sizer);
}
else
  sizer = window.open(website, title, "resizable=yes,scrollbars=1,copyhistory=0,width=340,height=250");
  sizer.location = website;
newWindow = eval(sizer);
}

// END ANIMATED WINDOW SCRIPT
// END ANIMATED WINDOW SCRIPT


// MUSIC CONSOLE SCRIPT
// MUSIC CONSOLE SCRIPT

function openConsole(){

newWindow = window.open('', 'newWin', 'toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=300,height=30,left=1,top=1');
newWindow.document.write("<HTML><HEAD><TITLE>Phantom Coaches Music Console</TITLE></HEAD>");
newWindow.document.writeln("<BODY BGCOLOR=#000000 text=#ffffff><CENTER>");
newWindow.document.writeln("<font size=4><B>Phantom Coaches™ Music Console</B></font><br>");
newWindow.document.writeln("<embed src='http://www.phantomcoaches.org/chop35s3.mid' width='100%' height='45' autostart='true' loop='true'></embed>");
//newWindow.document.writeln("<noembed><bgsound src=http://www.phantomcoaches.org/chop35s3.mid loop=infinite></noembed>");
newWindow.document.writeln("</CENTER>");
newWindow.document.writeln("</BODY></HTML>");
newWindow.document.close();
return false;
}

function music(){

var cookiepuss = document.cookie;
var crumb = cookiepuss.indexOf('newWin');
var exp = new Date();
var hours = (6*3600000) // set expire to six hours
if (crumb == -1) {
        exp.setTime(exp.getTime()+hours);
        document.cookie = 'newWin=0'+"; expires="+exp.toGMTString();
        openConsole();
        return false;
        }
else {
        chip = cookiepuss.substring(crumb + 7, crumb + 8);
        if (chip == '1');
        exp.setTime(exp.getTime()+hours);
        document.cookie = 'newWin=1'+"; expires="+exp.toGMTString();
        }
}

// END MUSIC CONSOLE SCRIPT
// END MUSIC CONSOLE SCRIPT


// INDEX CODE SCRIPT
// INDEX CODE SCRIPT

function index() {

document.write("<P>This gateway will allow you to choose if you want to start at the dynamic, lots-o-eye candy <a href='noscript.html' ONCLICK='window.location="+'"framegreet.html"'+"; return false;'>Greetings and introduction page</A>");
document.write("(takes a while to load if you have a slow connection) which includes a news ticker (info on what's been updated), ");
document.write("or if you just want to get down to business and start looking at galleries, bios, message board, etc.</FONT>");

document.write("<p>Optional PC fonts are used in this site, click to download: <font face='AmericanText BT' size='5'><a href='TT0211M_.TTF'>AmericanText BT</a></font>, <font face='Blood of Dracula' size='5'><a href='BLOODRAC.TTF'>Blood of Dracula</a></font>, <font face='Graveyard' size='4'><a href='graveyard.TTF'>Graveyard</a></font>, <font face='Psycho Poetry' size='5'><a href='Psychop.ttf'>Psycho Poetry</a></font></p>");

document.write("<table border='0'>");

document.write("<tr><td><a href='noscript.html' ONCLICK='window.location="+'"framesearch.html"'+"; return false;'><font size='5' face='AmericanText BT'>Search</font></a></td><td>our archives. Beware, you may actually find what you're looking for.</td></tr>");

document.write("<tr><td><a href='noscript.html' ONCLICK='window.location="+'"framegreet.html"'+"; return false;'><font size='5' face='AmericanText BT'>Greetings</font></a></td><td>and welcome. A brief introduction and a news ticker mentioning what's new.</td></tr>");

document.write("<tr><td><a href='noscript.html' ONCLICK='window.location="+'"framevisual.html"'+"; return false;'><font size='5' face='AmericanText BT'>Visual</font></a></td><td>Videos, pretty pictures and member bios.</td></tr>");

document.write("<tr><td><a href='noscript.html' ONCLICK='window.location="+'"framepropaganda.html"'+"; return false;'><font size='5' face='AmericanText BT'>Propaganda</font></a></td><td>Who we are, what we're about, our history and our official newsletter, <font size='5' face='AmericanText BT'>The Epitaph</font>.</td></tr>");

document.write("<tr><td><a href='noscript.html' ONCLICK='window.location="+'"frameplunder.html"'+"; return false;'><font size='5' face='AmericanText BT'>Plunder</font></a></td><td>our crypt. It's open and full of treasures for purchase (buy official PCHC™ merchandise).</td></tr>");

document.write("<tr><td><a href='noscript.html' ONCLICK='window.location="+'"saleslit.html"'+"; return false;'><font size='5' face='AmericanText BT'>Library</font></a></td><td>On-line archive of original sales literature.</td></tr>");

document.write("<tr><td><a href='noscript.html' ONCLICK='window.location="+'"/ipb_forums/index.php"'+"; return false;'><font size='5' face='AmericanText BT'>Board</font></a></td><td>Our message board is open for all to read and discuss hearse related topics.</td></tr>");

document.write("<tr><td><a href='noscript.html' ONCLICK='window.location="+'"/ipb_forums/index.php?act=calendar"'+"; return false;'><font size='5' face='AmericanText BT'>Calendar</font></a></td><td>of events. See what we have scheduled for future events, maybe we'll see you at one of them.</td></tr>");

document.write("<tr><td><a href='noscript.html' ONCLICK='window.location="+'"framejoin.html"'+"; return false;'><font size='5' face='AmericanText BT'>Entomb</font></a></td><td>Join Phantom Coaches™!</td></tr>");

document.write("<tr><td><a href='noscript.html' ONCLICK='window.location="+'"frameflee.html"'+"; return false;'><font size='5' face='AmericanText BT'>Flee</font></a></td><td>Aaah! Run away! And info on how to link to us.</td></tr></table>");
}

// END INDEX CODE SCRIPT
// END INDEX CODE SCRIPT

// COPYRIGHT INFO SCRIPT
// COPYRIGHT INFO SCRIPT

function copyright(){

document.write("<center>");
document.write("<HR WIDTH=90%>");
document.write("<font size=1 color=white>");
document.write("This site was designed on an IBM compatible platform with a Pentium II processor and Windows NT 4.0 operating system.");
document.write("<BR>© Phantom Coaches Hearses Club<sup>&reg;</sup>, 1998-2010. The Epitaph, the Phantom Coaches™ name and the creepy hearse logo are registered trademarks of Phantom Coaches Hearse Club<sup>&reg;</sup>.");
document.write("</center>");
}

// END COPYRIGHT INFO SCRIPT
// END COPYRIGHT INFO SCRIPT

// ORDER PROCESSING ADDRESS SCRIPT
// ORDER PROCESSING ADDRESS SCRIPT

function orderadd(){

document.write("Phantom Coaches Hearse Club<sup>&reg;</sup><BR>");
document.write("P.O. Box 2188<BR>");
document.write("Norwalk, CA 90651-2188<BR>");

}

// END ORDER PROCESSING ADDRESS SCRIPT
// END ORDER PROCESSING ADDRESS SCRIPT

// ORDER CONTACT PHONE NUMBER SCRIPT
// ORDER CONTACT PHONE NUMBER SCRIPT

function ordercall(){

document.write("(435) 603-0282");

}

// END ORDER CONTACT PHONE NUMBER SCRIPT
// END ORDER CONTACT PHONE NUMBER SCRIPT

// CLUB MAILING ADDRESS ON WEB PAGES SCRIPT
// CLUB MAILING ADDRESS ON WEB PAGES SCRIPT

function address(){

document.write("<P>Phantom Coaches Hearse Club<sup>&reg;</sup><BR>");
document.write("P.O. Box 2188<BR>");
document.write("Norwalk, CA 90651-2188<BR>");

}

// END CLUB MAILING ADDRESS ON WEB PAGES SCRIPT
// END CLUB MAILING ADDRESS ON WEB PAGES SCRIPT

// CLUB PHONE NUMBER SCRIPT
// CLUB PHONE NUMBER SCRIPT

function phone(){

document.write("(435) 603-0282");

}

// END CLUB PHONE NUMBER SCRIPT
// END CLUB PHONE NUMBER SCRIPT

// EMAIL SPAM PREVENTION SCRIPTS
// EMAIL SPAM PREVENTION SCRIPTS

// GENERAL CONTACT

function ContactGeneral(){
 var prefix = '&#109;a' + 'i&#108;' + '&#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy98062 = 'co&#110;ta&#99;&#116;&#95;f' + '&#111;r&#109&#64;';
 addy98062 = addy98062 + 'p&#104;ant&#111;mco&#97;che&#115;' + '&#46;' + 'o&#114;g';
 var addy_text98062 = 'we&#98;sp&#105;nn' + 'er&#64;' + 'p&#104;ant&#111;mco&#97;che&#115;' + '&#46;' + 'o&#114;g';
 document.write( '<a ' + path + '\'' + prefix + ':' + addy98062 + '?' + 'subject' + '&#61;' + 'PCHC -- Contact' + '\'>' );
 document.write( 'Contact us.' );
 document.write( '<\/a>' );
}

// FORUM CONTACT

function ContactForum(){
 var prefix = '&#109;a' + 'i&#108;' + '&#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy98062 = 'co&#110;ta&#99;&#116;&#95;f' + '&#111;r&#109&#64;';
 addy98062 = addy98062 + 'p&#104;ant&#111;mco&#97;che&#115;' + '&#46;' + 'o&#114;g';
 var addy_text98062 = 'we&#98;sp&#105;nn' + 'er&#64;' + 'p&#104;ant&#111;mco&#97;che&#115;' + '&#46;' + 'o&#114;g';
 document.write( '<a ' + path + '\'' + prefix + ':' + addy98062 + '?' + 'subject' + '&#61;' + 'PCHC -- Forum' + '\'>' );
 document.write( 'Contact us' );
 document.write( '<\/a>' );
}

// SHOPPING CART CONTACT

function ContactShopping(){
 var prefix = '&#109;a' + 'i&#108;' + '&#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy98062 = 'co&#110;ta&#99;&#116;&#95;f' + '&#111;r&#109&#64;';
 addy98062 = addy98062 + 'p&#104;ant&#111;mco&#97;che&#115;' + '&#46;' + 'o&#114;g';
 var addy_text98062 = 'we&#98;sp&#105;nn' + 'er&#64;' + 'p&#104;ant&#111;mco&#97;che&#115;' + '&#46;' + 'o&#114;g';
 document.write( '<a ' + path + '\'' + prefix + ':' + addy98062 + '?' + 'subject' + '&#61;' + 'PCHC -- Shopping cart' + '\'>' );
 document.write( 'email us' );
 document.write( '<\/a>' );
}

// MENU CONTACT

function ContactMenu(){
 var prefix = '&#109;a' + 'i&#108;' + '&#116;o';
 var path = 'hr' + 'ef' + '=';
 var addy98062 = 'co&#110;ta&#99;&#116;&#95;f' + '&#111;r&#109&#64;';
 addy98062 = addy98062 + 'p&#104;ant&#111;mco&#97;che&#115;' + '&#46;' + 'o&#114;g';
 var addy_text98062 = 'we&#98;sp&#105;nn' + 'er&#64;' + 'p&#104;ant&#111;mco&#97;che&#115;' + '&#46;' + 'o&#114;g';
 document.write( '<a ' + path + '\'' + prefix + ':' + addy98062 + '?' + 'subject' + '&#61;' + 'PCHC -- Contact' + '\'>' );
 document.write( '<img src=\'mailgrave.gif\' border=\'0\' align=\'center\' alt=\'Phantom Coaches Hearse Club Mail\' width=\'102\'>' );
 document.write( '<\/a>' );
}

// END EMAIL SPAM PREVENTION SCRIPTS
// END EMAIL SPAM PREVENTION SCRIPTS
