<!-- filename: _exc-scripts.js -->
<!-- date: 30/01/2007 -->
<!-- version: 1 -->



<!-- Idea by:  Nic Wolfe (Nic@TimelapseProductions.com) -->
<!-- Web URL:  http://fineline.xs.mw -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function popUpPhone(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=540,height=400');");
}

function popUpEmail(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=540,height=420');");
}


function popUpDemo(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=510');");
}



function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=440,height=450');");
}
// End -->



// mapping and form submission vars & procs


// EC Safari testing - commented out til General Functions
var gSubmit  = 0;
var gMapDone = 0;


function doFocus(){
   gSubmit = 1;
}

function doBlur(){
   gSubmit = 0;
}


// General functions

function checkInt(theInt)
{

    var intAmount = theInt;

    // create an re to check for alpha characters
    var alphaPattern = /[^0-9]/; // anything but numbers

    // check for alpha characters
    badInput = alphaPattern.exec(intAmount);

    // if we find alpha characters, disallow
    if (badInput != null)
    {
        return false;
    }

  return true;

}