// (c) 2005-2010 B. Maloney.  All Rights Reserved.  ntrz@swaggerz.com

var secxnsmt = "jumpcityagility-submit@swaggerz.com";
var secinqry = "jumpcityagility@swaggerz.com";

var cntctsec = [	"Jean O’Neill", 
			"626 S. Tejon Ave.", 
			"Pueblo West, CO 81007", 
			"909-576-1815",
			"<a href='mailto:" + secinqry + "'>" + secinqry + "</a>"];

var cntctclub = [	"Agility Club of Santa Barbara",
			"CA-ACOSB",
			"Lake View Terrace, CA",
			"<img border='0' src='http://swaggerz.com/ntrz/jumpcityagility/acosb/acosb.jpg' height='98'>",
			"<a href='http://swaggerz.com'>"];
var logolink = 1;
				 
var dispcolor	= 	["FFFF99",		// cell or primary color
				 "0000FF"];		// line or accent color

var typeshow = "agil";
var urlroot  = "http://swaggerz.com/ntrz/jumpcityagility/acosb/1007/";
var entrylnk = urlroot + "1007.htm";
var volnlink = "";
var vthnx    = "";
var listlink = urlroot + "2010AKC07.pdf";



/*
var procfee = 3.00;			// set the fee for processing
var	showtype = "uagil";
var   defaultpg = "http://www.springerz.com";
*/

function ContactSecretary () {
  document.writeln('      <p align="center">');
  document.writeln('      <font face="Arial">');

        for (i=0; i<cntctsec.length - 1; i++){
          document.writeln(cntctsec[i] + '<br>');
        }

  document.writeln('	  </p>');
  document.writeln('      <p align="center">');

          i = cntctsec.length - 1;
          document.writeln(cntctsec[i]);

  document.writeln('      </p>');
  document.writeln('      <p></p>');
} // ContactSecretary


function ContactClubLogo (x) {
  if (x == 0) { // logo only
    document.writeln(cntctclub[3]);
  }
  if (x == 1) { // logo with link
    document.writeln(cntctclub[4]);
    document.writeln(cntctclub[3]);
    document.writeln('</a>');
  }
} // ContactClubLogo


function ContactEventType (swtch) {
/*
write into html either Specialty Show or Trial based on global variable
*/
  if (swtch == 0) {
    if (typeshow == "agil" ) document.writeln("Trial");
    if (typeshow == "bnch" ) document.writeln("Show");
  }
  if (swtch == 1) {
    if (typeshow == "agil" ) document.writeln("Agility Trial");
    if (typeshow == "bnch" ) document.writeln("Specialty Show");
  }
} // ContactEventType


function Dollar (val) {  // force to valid dollar amount
var str,pos,rnd=0;
  if (val < 1) rnd = 1;
  str = escape (val*1.00 + 0.005001 + rnd);  // float, round, escape
  pos = str.indexOf (".");
  if (pos > 0) str = str.substring (rnd, pos + 3);
  if (str < 1) str = "0" + str;
  return str;
} // Dollar


function LinkEntryPage () {
  document.writeln("<input type='button'");  
  document.writeln("value='Enter Online!'");                        
  document.writeln("onclick=document.location='" + entrylnk + "'>");
} // LinkEntryPage


function LinkVolnPage (color) {
  if (volnlink == "") {
    document.writeln("<font color=" + color + ">Volunteer</font>");
  } else {
    document.writeln("<input type='button'");  
    document.writeln("value='Volunteer!'");                        
    document.writeln("onclick=document.location='" + volnlink + "'>");
  }
} // LinkVolnPage


function LinkEntryInfo () {
  if (listlink == "") {
    document.writeln("");
  } else {
    document.writeln("<a href='" + listlink + "'>Our Premium List</a>"); 
    document.writeln("<br>in Adobe Portable Document Format");
  }
} // LinkEntryInfo

/*
*/


                
