
//****************************************************************************
//***  THIS SCRIPT IN THE PROPERTY OF PHIL SYLVIA (321)696-1882            ***
//***  UNAUTHORIZED COPYING IN PART OR ITS ENTIRETY IS STRICTLY            ***
//***  PROHIBITED WITHOUT EXPRESSED WRITTEN CONSENT                        ***
//***  COPYRIGHT 2009                                                      ***
//****************************************************************************			
			function validate_form(){
			    valid = true;
			    flag = true;
			    field_focus = false;
			    //******************************* PROPERTY SECTION **********************************
			    if (document.getElementById('frm0').value == "" )
			    {
					document.getElementById('frm0').className = "errors";			//HIGHLIGHT THE INPUT BOX WITH THE ERROR
				    document.getElementById('frm0_error').className = "show_error"; // DISPLAY THE ERROR MESSAGE
			    	document.getElementById('frm0').focus();						
			        flag = false;
			        field_focus = true;
			    }
			    
			    if (document.getElementById('frm1').value == "" )
			    {
					document.getElementById('frm1').className = "errors";			//HIGHLIGHT THE INPUT BOX WITH THE ERROR
				    document.getElementById('frm1_error').className = "show_error"; // DISPLAY THE ERROR MESSAGE
			    	if(!(field_focus)){
					    document.getElementById('frm1').focus();						
						field_focus = true;
					}
			        flag = false;
			    }
			    
			    if (document.getElementById('frm2').value == "" )
			    {
					document.getElementById('frm2').className = "errors";			//HIGHLIGHT THE INPUT BOX WITH THE ERROR
				    document.getElementById('frm2_error').className = "show_error"; // DISPLAY THE ERROR MESSAGE
			    	if(!(field_focus)){
					    document.getElementById('frm2').focus();						
						field_focus = true;
					}
			        flag = false;
			    }
			    if (document.getElementById('frm3').value == "" )
			    {
					document.getElementById('frm3').className = "errors";			//HIGHLIGHT THE INPUT BOX WITH THE ERROR
				    document.getElementById('frm3_error').className = "show_error"; // DISPLAY THE ERROR MESSAGE
			    	if(!(field_focus)){
					    document.getElementById('frm3').focus();						
						field_focus = true;
					}
			        flag = false;
			    }
			    if (document.getElementById('frm4').value == "" )
			    {
					document.getElementById('frm4').className = "errors";			//HIGHLIGHT THE INPUT BOX WITH THE ERROR
				    document.getElementById('frm4_error').className = "show_error"; // DISPLAY THE ERROR MESSAGE
			    	if(!(field_focus)){
					    document.getElementById('frm4').focus();						
						field_focus = true;
					}
			        flag = false;
			    }
			    //******************************* BUYER SECTION **********************************
			    if (document.getElementById('frm5').value == "" )
			    {
					document.getElementById('frm5').className = "errors";			//HIGHLIGHT THE INPUT BOX WITH THE ERROR
				    document.getElementById('frm5_error').className = "show_error"; // DISPLAY THE ERROR MESSAGE
			    	if(!(field_focus)){
					    document.getElementById('frm5').focus();						
						field_focus = true;
					}
			        flag = false;
			    }
			    if (document.getElementById('frm6').value == "" )
			    {
					document.getElementById('frm6').className = "errors";			//HIGHLIGHT THE INPUT BOX WITH THE ERROR
				    document.getElementById('frm6_error').className = "show_error"; // DISPLAY THE ERROR MESSAGE
			    	if(!(field_focus)){
					    document.getElementById('frm6').focus();						
						field_focus = true;
					}
			        flag = false;
			    }
 

			    if(!(flag)){
				    return false;
			   }
			    else{
				    return true;
			    }
		    }

