// Description:	This file contains functions that are global to the project.
// Author:		Dave Henderson
// Email:		hendedav@yahoo.com
// File created:	07/10/04
// Last modified: 09/15/05




// ------------------------------------------------------------------------------------------------------------------------
// below code determines who is the manufacturer of the browser
// ------------------------------------------------------------------------------------------------------------------------

if (document.all) {navigator.family = "ie4";}
if (document.layers) {navigator.family = "nn4";}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {navigator.family = "gecko";}




// ------------------------------------------------------------------------------------------------------------------------
// below code contains global functions
// ------------------------------------------------------------------------------------------------------------------------

function RCClick(obj2Adjust, boolDisableValue) {
// This function works with both Radio Buttons and Checkboxes.  This routine enables/disables any passed objects.  When
// calling this function, pass all objects you want to be adjusted after the two parameters listed above in the manner of:
// For Radio Buttons:	RCClick(document.form.obj2Adjust, true, document.form.object, etc)
//				RCClick(document.form.obj2Adjust, false, document.form.object, etc)
// For Checkboxes:	RCClick(document.form.obj2Adjust, !document.form.obj2Adjust.checked, document.form.object, etc)
// boolDisableValue:	this is a true/false value that will enable/disable all the objects that are passed into this
//				function.  Didn't use an index value because some cases may require two or more radio buttons
//				have the ability to enable/disable the passed objects.
//				For example: The passed objects will be DISabled when the RadioBtn is clicked if "true" is passed.
  var i;

  if (obj2Adjust.disabled == true) { return 0; }						// if the "Radio Button" is NOT disabled, then...
  for (i=2; i<arguments.length; i=i+1) {								// cycles through all remaining passed objects (after the first two specified above) to the function and adjusts their disabled property.
    if (arguments[i+1] != "&_")									// if the user does NOT want the values kept from another object's onClick event, then change them
      { arguments[i].value = arguments[i+1]; }
    arguments[i].disabled = boolDisableValue;
  }
}


function writenews() {
   var i, updates = new Array;

//   updates[0] = "01.01.07  Our open source software division called <a href=\"http://www.cliquesoftware.com\" target=\"_new\">Clique Software</a> has been created.";
//   updates[1] = "01.01.07  Digital Pipe Inc has teamed up with Fast Teks to provide more technicians during and after normal business hours.";
//   updates[2] = "01.01.07  The rates have been restructured to make it easier for billing the customer.";
//   updates[3] = "04.15.07  Work has started on our new website.";
//   updates[4] = "04.28.07  The Digital Pipe Inc sponsored import is now ready to race at the next event at the Orlando Speed World.";
//   updates[5] = "05.05.07  The new Digital Pipe Inc website was released.";
//   updates[6] = "05.10.07  The <a href=\"http://www.cliquesoftware.com\" target=\"_new\">Clique Software</a> website was released.";

//   updates[0] = "09.01.08  See our new yellow pages ad in the AT&T Real Yellowpages &reg;";
//   updates[1] = "03.26.09  <a href=\"http://www.cliquesoft.org\" target=\"_new\">Cliquesoft</a> has released a beta version of the re-written backup.pro software.";
//   updates[2] = "04.04.09  The xinix web interface has begun its transition into XHTML and a beta is anticipated to be released in late Q2.";
   updates[0] = "09.17.09  We signed up for a booth (thanks to Rod Sharp) at the <a href='http://www.floridalinuxshow.com/'>Florida Linux Show</a> on 10/24/09.";
   updates[1] = "10.01.09  The <a href='http://www.cliquesoft.org'>Cliquesoft</a> site went live although a few areas of the website are still under construction.  We anticipate everything fully up and running by 01/01/2010 due to continued work on <a href='http://www.onlyprofile.org'>OnlyProfile.org</a>.";
   updates[2] = "10.26.09  We received an overwhelmingly positive response by all those that visited our booth over the weekend at the Florida Linux Show and we would like to say thanks.";
   updates[3] = "01.04.10  The <a href='http://www.cliquesoft.org'>Cliquesoft</a> site has not received the work that was intended by 01/01/10 due to an influx of work over the last few months.  During those months, it was decided to re-code the site using php.  The site will remain up and running in its current condition, but will not receive any new features until the conversion is completed.";
   updates[4] = "01.11.10  Due to an influx of work over Nov-Jan, work on the <a href='http://www.onlyprofile.org'>OnlyProfile.org</a> project has been delayed.  The new estimated 'Go Live' date will be April 1st 2010.  This should give ample time to finish and test the project.  Beta testers should be able to start testing 02/01/10.  Contact our staff if your interested.";

   document.write("<ul>");
   for (i=0; i<updates.length; i++) { document.write("<li>"+updates[i]+"</li>"); }
   document.write("</ul>");
}


function writedetails() {
   var i, details = new Array(1);

//   details[0] = "Our credit card processing is currently offline.  We will have this feature backup up and running by 05.10.07.  Thank you for your patience.";
//   details[1] = "The <a href=\"http://www.cliquesoftware.com\" target=\"_new\">Clique Software</a> website is scheduled for debute on 05.10.07.";

   details[0] = "Our credit card processing has been converted to PayPal.  It reduces our cost for processing credit cards (which we can pass to you) while using a trusted, well known third party provider.";
//   details[1] = "The <a href=\"http://www.cliquesoftware.com\" target=\"_new\">Clique Software</a> website is scheduled for debute during Q3 2009.";

   document.write("<ul>");
   for (i=0; i<details.length; i++) { document.write("<li>"+details[i]+"</li>"); }
   document.write("</ul>");
}

function writefooter() {
   document.write("Copyright &copy; 2007 Digital Pipe Incorporated. All Rights Reserved.<br />Best when viewed with resolution at least 800x600 using <a href=\"http://www.getfirefox.com/\" target=\"_new\">Firefox</a>.  Content and functionality: Digital Pipe Inc.; Template: <a href=\"http://mlpdesign.freehostia.com\" target=\"_new\">MLP Design</a>.");
}
