/*-----------------------------------------------------------------------
Created by: KK
Created date: 29 Sep 2006
File description: Advance Search 
Special instructions-notes:Java script Validation
Tables used:None
Stored procedures:None
Triggers used:None
-----------------------------------------------------------------------*/

function Validate(theForm)
{
	var errMesg = "";
	var displayMesg = "";
	var Q = ""; // this block determines lifespan of Q
	{
	
	if (isWhitespace(theForm.search.value))
		{
			Q += "  Search Keyword\n";
		}
if (theForm.min_prince.value!="")
	{
		if(!isCharsInBag(theForm.min_prince.value, "0123456789."))
			{
			errMesg += "Please enter numeric value for Minimum Price\n";
			}
	}	
	if (theForm.max_price.value!="")
	{
		if(!isCharsInBag(theForm.max_price.value, "0123456789."))
			{
			errMesg += "Please enter numeric value for Maximum  Price\n";
			}
	}
	
	if ( Q.length > 0 )
		{
		displayMesg = "Please provide Valid values for\n" + Q ;
		}	
	}

	if (errMesg == "" && displayMesg == "")
	{
		return true;
	}
	else
	{
		if(displayMesg!="")
			{
				alert(displayMesg);
				return false;			
			}
			else
			{
				alert(errMesg);
				return false;
			}	
	}
}

/*








*/






document.write('');

document.write('');

document.write('');

document.write('');

















