/*------------------------------------------------------------------------------
 * Module:   klscripts.js
 *------------------------------------------------------------------------------
 * Description: Support functions for K&L Design Productions Web Site.
 *------------------------------------------------------------------------------
 * Requirements: DOM Compliant browser with enabled Javascript.
 *------------------------------------------------------------------------------
 * Copyright (c) 2002, K&L Design Productions, All Rights Reserved.
 *
 * You may not use the code contained in this file without the express written
 * permission of K&L Productions.
 * You may not redistribute, sell, or offer this file for download, in any form
 * or on any medium, without the express written permission of K&L Productions.
 * This includes, but is not limited to, adding it to script archives or
 * bundling and distributing it with other scripts/software.
 * You agree to retain the credits and copyright notice in the source code when
 * including it in your own pages.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHOR OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *----------------------------------------------------------------------------*/
 function initPage()
 {//new klStyleSelector(document.getElementById('crumbs'),0,'Customize');
   ;
 }
 
 
var emptyRE = /^\s*$/;

function verifyDLForm(frm)
  { fe = document.getElementById('formerror');
    fe.style.display = 'none';
	if(emptyRE.test(frm.elements["Name"].value))
      { fe.firstChild.nodeValue = 'Please enter your name';
	    fe.style.display = '';
		return false;
	  }
   
    if(emptyRE.test(frm.elements["EMail"].value))
      { fe.firstChild.nodeValue = 'Please enter your e-mail';
	    fe.style.display = '';
		return false;
	  }
	if(frm.elements['Script'].type == 'checkbox' && !frm.elements['Script'].checked)
	  { fe.firstChild.nodeValue = 'Please select a script to download';
	    fe.style.display = '';
		return false;
      }		
	return true;
  }
