/* ********************************************************************************
* Source Code Copyright (c) 2008 Congruent Media, LLC.  All rights reserved.
* 
* This source code is the intellectual property of Congruent Media, LLC., 
* except where otherwise noted, and may not be copied in whole or in part, 
* except for backup purposes. You may not resell or otherwise distribute 
* this source code, or any code derived from this source code, without 
* express written permission from Congruent Media, LLC.
* 
* This source code is sold "as is" and WITHOUT ANY WARRANTY; without even 
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*  
* http://www.CongruentMedia.com | info@CongruentMedia.com | +1 410-534-6800
*  
** ********************************************************************************/

// DATE: 12/28/2007
function SpryFormSubmit(a,b,c,d){if(typeof a=='string')a=document.getElementById(a);if(!Spry||Spry.Widget.Form.validate(a)){return true}else{var e=SpryFormSubmit_Invalid;if(b==null){if(CM_SPRY_FORM_SUBMISSION_HANDLER_TYPE){b=CM_SPRY_FORM_SUBMISSION_HANDLER_TYPE}else{b='POPUP'}}if(c==null){if(CM_SPRY_FORM_SUBMISSION_FAILURE_MESSAGE){c=CM_SPRY_FORM_SUBMISSION_FAILURE_MESSAGE}else{c='FAILURE'}}switch(b.toUpperCase()){case"POPUP":e=SpryFormSubmit_PopUp;break;case"INLINE":e=SpryFormSubmit_Inline;break;case"SILENT":e=SpryFormSubmit_Silent;break;case"DEBUG":e=SpryFormSubmit_Debug;break;default:break}return e(a,c,d)}}function SpryFormSubmit_Invalid(a,b,c){alert('Invalid SpryFormSubmit handler type.  TYPE = [ POPUP, INLINE, SILENT, DEBUG ]');return false}function SpryFormSubmit_PopUp(a,b,c){alert(b);return false}function SpryFormSubmit_Inline(a,b,c){if(showError){showError(b,c);return false}else{return SpryFormSubmit_PopUp(a,b,c)}}function SpryFormSubmit_Silent(a,b,c){return false}function SpryFormSubmit_Debug(a,b,c){alert('DEBUG MODE NOT IMPLEMENTED');return false}
