// JavaScript Document
function propertycode()								//search page search by property id.
{
			propid=document.getElementById('prop_id').value
		
 			var no_error=0;
			var error_count=0;
			var error_lines=0;
			var error_messages = new Array();
			strlen =propid.length
			var image_set=0;
 			var result="";
		
			if (validateNotEmpty(propid)==false) 
			{
				++error_count;
						error_messages[no_error]="  Property id should be specified.";
						++no_error;
						++error_lines;
						image_set=1;
  			}
			if (validateNotEmpty(propid)==true) 
			{
				first_char = propid.charAt(0);
				subchar = propid.substring(3,8);
			
				if((strlen!=9)||(validateCaps_Aplhabets(first_char)==false)||(validateInteger(subchar)==false))
				{
					if(error_lines<error_limit)
					{
						++error_count;
						error_messages[no_error]=" Property Id format is AAA999999 (A is an alphabet, 9 is a digit).";
						++no_error;
						++error_lines;
						image_set=1;
 					}
				}
			}
			if(image_set!=1)
			{
				result=chkprop();
 				if(result != 0)
				{
					window.location.href =result;
				}
				else 
				{
					if(error_lines<error_limit)
					{
							++error_count;
							error_messages[no_error]=prop_ajxerr;
							++no_error;
							++error_lines;
							image_set=1;
					}
				}
			}
	
	Error_check= Display_Error_Div('div_prop_error',0,'',no_error,error_messages)
	if (Error_check==false)
	return false;
 
}
