
/*********************************************************************************************\
***********************************************************************************************
**                                                                                           **
**  SW3 Solutions                                                                            **
**  Version 2.0                                                                              **
**                                                                                           **
**  http://www.sw3solutions.com                                                              **
**                                                                                           **
**  Copyright 2005-09 (C) SW3 Solutions                                                      **
**                                                                                           **
**  ***************************************************************************************  **
**                                                                                           **
**  Developer Information:                                                                   **
**                                                                                           **
**      Name  :  Muhammad Tahir Shahzad                                                      **
**      Email :  mtahirshahzad@hotmail.com                                                   **
**      Phone :  +92 333 456 0482                                                            **
**      URL   :  http://mts.sw3solutions.com                                                 **
**                                                                                           **
**  ***************************************************************************************  **
**                                                                                           **
**                                                                                           **
**                                                                                           **
**                                                                                           **
***********************************************************************************************
\*********************************************************************************************/

function validateForm( )
{
	var objFV = new FormValidator("frmQuote");
	
	
	if (!objFV.validate("txtContactName", "B", "Please enter the Contact Name."))
		return false;

	if (!objFV.validate("txtEmail", "B,E", "Please enter your valid Email Address."))
		return false;
		
	if (!objFV.validate("txtCity", "B", "Please enter the City Name."))
		return false;
		
	if (objFV.selectedValue("rbDesign") == "")
	{
		alert("Please select the Project Nature.");

		return false;
	}
		
	if (!objFV.validate("txtNoOfPages", "B,N", "Please enter the Approx. Number of Pages."))
		return false;
		
	if (!objFV.validate("ddBudget", "B", "Please select the Allocated Development Budget."))
		return false;
		
	if (!objFV.validate("ddIntentedTime", "B", "Please select the Intended Time to Launch."))
		return false;

	if (!objFV.validate("txtSpamCode", "B,L(5)", "Please enter the valid Spam Protection Code as shown."))
		return false;

	return true;
}
