// $Id: default.js,v 1.2 2003/10/07 17:33:53 cliff Exp $

// Opens a new window
function openWindow( name, url, w, h, scroll )
{
    scroll = scroll ? "yes" : "no";
    var menuargs = "menubar=no,toolbar=no,directories=no,scrollbars=" + scroll + ",resizable=no,width=" + w + ",height=" + h;
    var winName = window.open( url, winName, menuargs );
}


// used for Verisign Seal
function popUp(url) 
{
    sealWin=window.open(url,  "win",  "toolbar=0,location=0,directories=0,"+
                                      "status=1,menubar=1,scrollbars=1,resizable=1,"+
                                      "width=500,height=450");
    self.name = "mainWin";
}


// (1) include this script in your page
// (2) insert the checkSubmitCount()" event handler to be trigger through
//     the onsubmit action of the form

// optionally we can make have resetSubmitCount method
//   that sets the submitcount to 0 by the page onload event.

var submitcount = 0;


function checkSubmitCount() {

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



