Contact Golden Legacy Team
Looking to buy or sell real estate in the Michiana area? The Golden Legacy Team is here to help you navigate the local market with expertise and personalized service.
Whether you're searching for your dream home in South Bend, selling property in Mishawaka, or exploring investment opportunities throughout northern Indiana and southwest Michigan, our experienced agents are ready to guide you every step of the way. Contact us today to start your real estate journey.
Your Top Michiana Real Estate Team
At Golden Legacy Team, we combine deep local expertise with a client-first philosophy to deliver exceptional results. Our team of dedicated professionals specializes in the Michiana region's diverse neighborhoods. We pride ourselves on transparent communication, strategic guidance, and unwavering commitment to helping you achieve your real estate goals.
Get to Know Us/********************************************************************************************************/
/* Created by TOP PRODUCER 7i */
/* */
/* You can use the following source code in your web-pages. Please note that */
/* modifying the code in any way would result in TOP PRODUCER not supporting it if it does */
/* not work properly. */
/********************************************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/** Maximum length of user input **/
#define MAX_CONTENT_LENGTH 10000
#define ERROR_MESSAGE_FORMAT "<HTML><HEAD><TITLE>Error</TITLE></HEAD><BODY><H1>Error</H1><BR><HR>%s</BODY></HTML>"
#define ERROR_EXCESSIVE_INPUT "You have entered too much data. Please limit the length of your input and try again."
/*********************************************************************************************/
/* String class
/*
/* The String class manages allocation and de-allocation of memory for character arrays.
/*********************************************************************************************/
class String {
private:
char* m_lpValue;
public:
/** Construct a new String object and copy the provided string in
our internal member variable. **/
String( char* lpValue ) {
int nLength;
nLength = strlen( lpValue );
m_lpValue = new char[ nLength + 1 ];
strcpy( m_lpValue, lpValue );
}
/** Deallocate any used memory. **/
~String() {
if( m_lpValue != NULL ) {
free( m_lpValue );
}
}
/** Return the pointer to our internally stored value. **/
char* getBuffer() {
return m_lpValue;
}
};
/*********************************************************************************************/
/* QueryString class
/*
/* The QueryString class provides uniform access to the data provided by the caller.
/*********************************************************************************************/
class QueryString {
private:
char* m_lpQueryString;
/** Return the integer value of a hexadecimal character **/
int getHexCharValue( char ch ) {
int nValue = 0;
switch( ch ) {
case '0': nValue = 0; break;
case '1': nValue = 1; break;
case '2': nValue = 2; break;
case '3': nValue = 3; break;
case '4': nValue = 4; break;
case '5': nValue = 5; break;
case '6': nValue = 6; break;
case '7': nValue = 7; break;
case '8': nValue = 8; break;
case '9': nValue = 9; break;
case 'A': nValue = 10; break;
case 'B': nValue = 11; break;
case 'C': nValue = 12; break;
case 'D': nValue = 13; break;
case 'E': nValue = 14; break;
case 'F': nValue = 15; break;
case 'a': nValue = 10; break;
case 'b': nValue = 11; break;
case 'c': nValue = 12; break;
case 'd': nValue = 13; break;
case 'e': nValue = 14; break;
case 'f': nValue = 15; break;
}
return nValue;
}
public:
QueryString() {
char* lpTemp = NULL;
int nContentLength = 0;
/** The QUERY_STRING will be found here if the caller used the HTTP GET method. **/
lpTemp = getenv( "QUERY_STRING" );
if( lpTemp != NULL ) {
nContentLength = strlen( lpTemp );
m_lpQueryString = new char[ nContentLength + 1 ];
strcpy( m_lpQueryString, lpTemp );
} else {
/** The QUERY_STRING will be found here if the caller used the HTTP POST method. **/
char* lpContentLength = getenv( "CONTENT_LENGTH" );
if( lpContentLength != NULL ) {
nContentLength = atoi( lpContentLength );
if( nContentLength > MAX_CONTENT_LENGTH ) {
printf(
ERROR_MESSAGE_FORMAT,
ERROR_EXCESSIVE_INPUT
);
exit( 0 );
} else {
m_lpQueryString = new char[ nContentLength + 1 ];
fgets( m_lpQueryString, nContentLength, stdin );
}
}
}
}
/** Deallocate any used memory. **/
~QueryString() {
if( m_lpQueryString != NULL ) {
free( m_lpQueryString );
}
}
/** Returns the value of a name from the data provided by the caller. **/
String* getValue( char* lpName ) {
char* lpTemp = NULL;
String* sValue = NULL;
int nStart = 0;
int nLength = 0;
if( m_lpQueryString != NULL ) {
/** Get the start of the string. **/
lpTemp = strstr( m_lpQueryString, lpName );
if( lpTemp != NULL ) {
/** Determine the length of the string. **/
lpTemp += strlen( lpName ) + 1;
nStart = lpTemp - m_lpQueryString;
while( *lpTemp != '&' && *lpTemp != '\0' ) {
nLength++;
lpTemp++;
}
/** Copy and unencode the string into a new block of memory. **/
lpTemp = new char[ nLength + 1 ];
memset( lpTemp, 0, nLength + 1 );
for( int i = 0, nIndex = 0, nMaxLength = nLength; i < nMaxLength; i++ ) {
char ch = *( m_lpQueryString + nStart + i );
if( ch == '\0' ) break;
if( ch == '+' ) {
ch = ' ';
}
else if( ch == '%' ) {
// Unencode escape codes
int nChar =
( getHexCharValue( *( m_lpQueryString + nStart + ++i ) ) << 4 ) +
getHexCharValue( *( m_lpQueryString + nStart + ++i ) );
ch = ( char )nChar;
}
// Ensure the user is not trying to input HTML code
if( ch == '<' || ch == '>' ) {
nLength += 4;
char* lpTemp2 = new char[ nLength + 1 ];
memset( lpTemp2, 0, nLength + 1 );
strncpy( lpTemp2, lpTemp, nIndex );
free( lpTemp );
lpTemp = lpTemp2;
lpTemp[ nIndex++ ] = '&';
if( ch == '<' ) {
lpTemp[ nIndex++ ] = 'l';
}
else if( ch == '>' ) {
lpTemp[ nIndex++ ] = 'g';
}
lpTemp[ nIndex++ ] = 't';
ch = ';';
}
// Translate quotation marks
if( ch == '"' ) {
nLength += 6;
char* lpTemp2 = new char[ nLength + 1 ];
memset( lpTemp2, 0, nLength + 1 );
strncpy( lpTemp2, lpTemp, nIndex );
free( lpTemp );
lpTemp = lpTemp2;
lpTemp[ nIndex++ ] = '&';
lpTemp[ nIndex++ ] = 'q';
lpTemp[ nIndex++ ] = 'u';
lpTemp[ nIndex++ ] = 'o';
lpTemp[ nIndex++ ] = 't';
ch = ';';
}
lpTemp[ nIndex++ ] = ch;
}
lpTemp[ nLength ] = 0;
/** Create a String object and free temporary memory. **/
sValue = new String( lpTemp );
free( lpTemp );
}
else {
sValue = new String( "" );
}
}
return sValue;
}
};
/*********************************************************************************************/
/* main
/*
/* The entry point for this application.
/*********************************************************************************************/
int main() {
/** Print the CGI response header, required for all HTML output. **/
/** Note the extra \n, to send the blank line. **/
setvbuf( stdout, NULL, _IONBF, 0 );
printf( "Content-type: text/html\n\n" );
/** The following class retrieves the user's input **/
QueryString qs;
/** Print the HTML response page to STDOUT. **/
printf( "<!-- Created by TOP PRODUCER -->\n" );
printf( "<!-- \n" );
printf( "\tYou can use the following source code in your web-pages. Please note that \n" );
printf( "\tmodifying the code in any way would result in TOP PRODUCER not supporting it if it does \n" );
printf( "\tnot work properly.\n" );
printf( "-->\n" );
printf( "\n" );
printf( "<!--\n" );
printf( "\tThe following merge codes are for internal use of the source code generator. For\n" );
printf( "\tsimplicity's sake AGENT merge codes refer to the company information in Lead Desk\n" );
printf( "\tand any tags beginning with <! should be ignored.\n" );
printf( "\t\n" );
printf( "\t ----= APPLICATION INFORMATION =----\n" );
printf( "\t AGENT1 NAME: Tim Murray, Broker Associate, e-Pro\n" );
printf( "\t AGENT1 PHONE: 574-243-9513\n" );
printf( "\t AGENT1 EMAIL: tim@timmurray.com\n" );
printf( "\t AGENT1 PICTURE: {e4fbcd1c-b9fd-424d-bd6d-a68d5d4bbc8e}.jpg\n" );
printf( "\t AGENT2 NAME: Heather Corr, Realtor\n" );
printf( "\t AGENT2 FIRST NAME: <!AGENT2_FIRST_NAME>\n" );
printf( "\t AGENT2 PHONE: 574-243-9565\n" );
printf( "\t AGENT2 EMAIL: heather@timmurray.com\n" );
printf( "\t AGENT2 PICTURE: <!AGENT2_PICTURE>\n" );
printf( "\t AGENT1 LOGO: <!AGENT1_LOGO>\n" );
printf( "\t SUBMIT URL: https://www.topproduceronline.com/LeadToolkit.asp\n" );
printf( "\t FONT COLOR: #000000\n" );
printf( "\t FONT SIZE: xx-small\n" );
printf( "\t FONT STYLE: sans-serif\n" );
printf( "\t BACKGROUND COLOR: #FFFFFF\n" );
printf( "\t BORDER COLOR: #FFFFFF\n" );
printf( "\t HEADER ALIGNMENT: Left\n" );
printf( "\t HEADER FONT SIZE: xx-small\n" );
printf( "\t BACKGROUND IMAGE: No\n" );
printf( "\t ----= APPLICATION INFORMATION =----\n" );
printf( "//-->\n" );
printf( "\n" );
printf( "\n" );
printf( "\n" );
printf( "<HTML>\n" );
printf( "<HEAD>\n" );
printf( "\t<TITLE>Contact Me</TITLE>\n" );
printf( "\t<SCRIPT LANGUAGE=\"JavaScript\">\n" );
printf( "<!--\n" );
printf( "\t\t// Ensure the user of this form has entered the required fields.\n" );
printf( "\t\tfunction validateData()\n" );
printf( "\t\t{\n" );
printf( "\t\t\tvar txtFirstName\t\t= getElementById( \"FIRST_NAME\"\t\t\t);\n" );
printf( "\t\t\tvar txtLastName\t\t\t= getElementById( \"LAST_NAME\"\t\t\t);\n" );
printf( "\t\t\tvar txtEmail\t\t\t= getElementById( \"EMAIL\"\t\t\t\t);\n" );
printf( "\t\t\tvar txtPhoneAreaCode\t= getElementById( \"PHONE_AREA_CODE\"\t\t);\n" );
printf( "\t\t\tvar txtPhoneLocalCode\t= getElementById( \"PHONE_LOCAL_CODE\"\t);\n" );
printf( "\t\t\tvar txtPhoneNumber\t\t= getElementById( \"PHONE_NUMBER\"\t\t);\n" );
printf( "\t\t\tvar txtComments\t\t\t= getElementById( \"COMMENTS\"\t\t\t);\n" );
printf( "\t\t\tvar sPhoneValue\t\t\t= txtPhoneAreaCode.value + txtPhoneLocalCode.value + txtPhoneNumber.value;\n" );
printf( "\t\t\tvar bRequirementsMet\t= true;\n" );
printf( "\t\t\tvar txtFocusField;\n" );
printf( "\t\t\t\n" );
printf( "\t\t\tif( txtFirstName.value.length == 0 && txtLastName.value.length == 0 ) {\n" );
printf( "\t\t\t\ttxtFocusField = txtFirstName;\n" );
printf( "\t\t\t\tbRequirementsMet = false;\n" );
printf( "\t\t\t}\n" );
printf( "\t\t\tif( bRequirementsMet && ( txtEmail.value.length == 0 && sPhoneValue.length == 0 ) ) {\n" );
printf( "\t\t\t\ttxtFocusField = txtEmail;\n" );
printf( "\t\t\t\tbRequirementsMet = false;\n" );
printf( "\t\t\t}\n" );
printf( "\t\t\t\n" );
printf( "\t\t\tif( !bRequirementsMet ) {\n" );
printf( "\t\t\t\twindow.alert( \"\\nPlease enter your FIRST NAME or LAST NAME\\nand\\nPHONE NUMBER or EMAIL ADDRESS.\\n\" );\n" );
printf( "\t\t\t\ttxtFocusField.focus();\n" );
printf( "\t\t\t} else {\n" );
printf( "\t\t\t\tif( sPhoneValue.length > 0 && ( txtPhoneAreaCode.value.length != 3 || txtPhoneLocalCode.value.length != 3 || txtPhoneNumber.value.length != 4 ) ) {\n" );
printf( "\t\t\t\t\tbRequirementsMet = false;\n" );
printf( "\t\t\t\t\twindow.alert( \"\\nYou have entered an invalid phone number. Please enter a correct phone number.\\n\" );\n" );
printf( "\t\t\t\t\ttxtPhoneAreaCode.focus();\n" );
printf( "\t\t\t\t}\n" );
printf( "\t\t\t\tif( bRequirementsMet && txtEmail.value.length > 0 ) {\n" );
printf( "\t\t\t\t\tvar nAtSymbolIndex = txtEmail.value.indexOf( \"@\" );\n" );
printf( "\t\t\t\t\tvar sUserName = \"\";\n" );
printf( "\t\t\t\t\tvar sServerName = \"\";\n" );
printf( "\t\t\t\t\t\n" );
printf( "\t\t\t\t\tif( nAtSymbolIndex > 0 && nAtSymbolIndex < txtEmail.value.length - 1 ) {\n" );
printf( "\t\t\t\t\t\tsUserName = txtEmail.value.substring( 0, nAtSymbolIndex );\n" );
printf( "\t\t\t\t\t\tsServerName = txtEmail.value.substring( nAtSymbolIndex + 1 );\n" );
printf( "\t\t\t\t\t\tnAtSymbolIndex = sServerName.indexOf( \".\" );\n" );
printf( "\t\t\t\t\t}\n" );
printf( "\t\t\t\t\tif( nAtSymbolIndex == -1 || sUserName.length == 0 || sServerName.length == 0 ) {\n" );
printf( "\t\t\t\t\t\twindow.alert( \"You have entered an invalid email address. Please enter a correct email address.\" );\n" );
printf( "\t\t\t\t\t\ttxtEmail.focus\n" );
printf( "\t\t\t\t\t\tbRequirementsMet = false;\n" );
printf( "\t\t\t\t\t}\n" );
printf( "\t\t\t\t}\n" );
printf( "\t\t\t\tif( bRequirementsMet && txtComments.value.length > 2900 ) {\n" );
printf( "\t\t\t\t\tbRequirementsMet = false;\n" );
printf( "\t\t\t\t\twindow.alert( \"\\nYour comments are too long. Please try to limit the length of your comments to 2900 characters.\\n\" );\n" );
printf( "\t\t\t\t\ttxtComments.focus();\n" );
printf( "\t\t\t\t}\n" );
printf( "\t\t\t}\n" );
printf( "\t\t\t\n" );
printf( "\t\t\t// The BUYER minimum price must be less than or equal to the maximum price.\n" );
printf( "\t\t\tif( bRequirementsMet ) {\n" );
printf( "\t\t\t\tvar sMinPrice = getElementById( \"BUYER_MIN_PRICE\" ).value;\n" );
printf( "\t\t\t\tvar sMaxPrice = getElementById( \"BUYER_MAX_PRICE\" ).value;\n" );
printf( "\t\t\t\t// Pre-parse the string to remove any non digit characters\n" );
printf( "\t\t\t\tsMinPrice = sMinPrice.replace( /\\$|\\+|,/g,\t\t\t\"\" );\n" );
printf( "\t\t\t\tsMaxPrice = sMaxPrice.replace( /\\$|\\+|,/g,\t\t\t\"\" );\n" );
printf( "\t\t\t\t\n" );
printf( "\t\t\t\t// Convert from a string to a number.\n" );
printf( "\t\t\t\tvar nMinPrice = new Number( sMinPrice );\n" );
printf( "\t\t\t\tvar nMaxPrice = new Number( sMaxPrice );\n" );
printf( "\t\t\t\t\n" );
printf( "\t\t\t\tif( nMinPrice != Number.NaN && nMaxPrice != Number.NaN && nMinPrice > nMaxPrice ) {\n" );
printf( "\t\t\t\t\twindow.alert( \"\\nYou have specified an invalid minimum or maximum price. Please\\nensure that the minimum price is not greater than the maximum price\\nin the price range section.\\n\" )\n" );
printf( "\t\t\t\t\tgetElementById( \"BUYER_MAX_PRICE\" ).focus();\n" );
printf( "\t\t\t\t\tbRequirementsMet = false;\n" );
printf( "\t\t\t\t}\n" );
printf( "\t\t\t}\n" );
printf( "\t\t\t\n" );
printf( "\t\t\treturn bRequirementsMet;\n" );
printf( "\t\t}\n" );
printf( "\t\t\n" );
printf( "\t\t\n" );
printf( "\t\t// Retrieve an element by it's ID attribute\n" );
printf( "\t\t// NOTE: This function is used in place of\n" );
printf( "\t\t// 'document.getElementById() to support\n" );
printf( "\t\t// Internet Explorer 4.01.\n" );
printf( "\t\tfunction getElementById( id ) {\n" );
printf( "\t\t\tif( typeof( document.getElementById ) == \"undefined\" ) {\n" );
printf( "\t\t\t\tfor( var i = 0; i < document.all.length; i++ ) {\n" );
printf( "\t\t\t\t\tvar el = document.all( i );\n" );
printf( "\t\t\t\t\tif( el.id == id ) {\n" );
printf( "\t\t\t\t\t\treturn el;\n" );
printf( "\t\t\t\t\t}\n" );
printf( "\t\t\t\t}\n" );
printf( "\t\t\t}\n" );
printf( "\t\t\telse {\n" );
printf( "\t\t\t\treturn document.getElementById( id );\n" );
printf( "\t\t\t}\n" );
printf( "\t\t}\n" );
printf( "\t\t\n" );
printf( "\t\t\n" );
printf( "\t\t// Initialize the document\n" );
printf( "\t\tfunction init() {\n" );
printf( "\t\t\tvar statusSeller\t= getElementById( \"STATUS_SELLER\"\t);\n" );
printf( "\t\t\tvar statusBoth\t\t= getElementById( \"STATUS_BOTH\"\t\t);\n" );
printf( "\t\t\t\n" );
printf( "\t\t\tvar status = \"Buyer\";\n" );
printf( "\t\t\tif( statusSeller.checked ) {\n" );
printf( "\t\t\t\tstatus = \"Seller\";\n" );
printf( "\t\t\t} else if ( statusBoth.checked ) {\n" );
printf( "\t\t\t\tstatus = \"Both\";\n" );
printf( "\t\t\t}\n" );
printf( "\t\t\t\n" );
printf( "\t\t\tenableSection( status );\n" );
printf( "\t\t\tsize( getElementById( \"TABLE_PICTURES\" ) );\n" );
printf( "\t\t\tvar backgroundImage = getElementById( \"BACKGROUND_IMAGE\" );\n" );
printf( "\t\t\tif( typeof( backgroundImage ) != \"undefined\" && backgroundImage != null ) {\n" );
printf( "\t\t\t\tbackgroundImage.style.visibility = \"visible\";\n" );
printf( "\t\t\t}\n" );
printf( "\t\t\t\n" );
printf( "\t\t\twindow.moveTo( 0, 0 );\n" );
printf( "\t\t\twindow.resizeTo( screen.availWidth, screen.availHeight );\n" );
printf( "\n" );
printf( "\t\t\tgetElementById( \"FIRST_NAME\" ).onkeypress = Capitalize;\n" );
printf( "\t\t\tgetElementById( \"LAST_NAME\" ).onkeypress = Capitalize;\n" );
printf( "\t\t}\n" );
printf( "\t\t\n" );
printf( "\t\t\n" );
printf( "\t\tfunction size( objTable ) {\n" );
printf( "\t\t\tvar backgroundImage = getElementById( \"BACKGROUND_IMAGE\" );\n" );
printf( "\t\t\t\n" );
printf( "\t\t\tif( typeof( backgroundImage ) != \"undefined\" && typeof( objTable ) != \"undefined\" && backgroundImage != null ) {\n" );
printf( "\t\t\t\tbackgroundImage.style.left = objTable.offsetLeft;\n" );
printf( "\t\t\t\tbackgroundImage.style.top = objTable.offsetTop;\n" );
printf( "\t\t\t\tbackgroundImage.style.width = objTable.offsetWidth;\n" );
printf( "\t\t\t\tbackgroundImage.style.height = objTable.offsetHeight;\n" );
printf( "\t\t\t}\n" );
printf( "\t\t}\n" );
printf( "\t\t\n" );
printf( "\t\t\n" );
printf( "\t\t// Enable the Buyer, Seller or both sections\n" );
printf( "\t\tfunction enableSection( section ) {\n" );
printf( "\t\t\tsetControl( getElementById( \"SELLER_SQUAREFEET\"\t\t), section == \"Buyer\" );\n" );
printf( "\t\t\tsetControl( getElementById( \"SELLER_BEDROOMS\"\t\t), section == \"Buyer\" );\n" );
printf( "\t\t\tsetControl( getElementById( \"SELLER_BATHROOMS\"\t\t), section == \"Buyer\" );\n" );
printf( "\t\t\tsetControl( getElementById( \"TXT_SELLER\"\t\t\t), section == \"Buyer\" );\n" );
printf( "\t\t\tsetControl( getElementById( \"TXT_SELLER_SQUAREFEET\"\t), section == \"Buyer\" );\n" );
printf( "\t\t\tsetControl( getElementById( \"TXT_SELLER_BEDROOMS\"\t), section == \"Buyer\" );\n" );
printf( "\t\t\tsetControl( getElementById( \"TXT_SELLER_BATHROOMS\"\t), section == \"Buyer\" );\n" );
printf( "\t\t\t\n" );
printf( "\t\t\tsetControl( getElementById( \"BUYER_MIN_PRICE\"\t\t), section == \"Seller\", \"$0\" );\n" );
printf( "\t\t\tsetControl( getElementById( \"BUYER_MAX_PRICE\"\t\t), section == \"Seller\", \"no maximum\" );\n" );
printf( "\t\t\tsetControl( getElementById( \"BUYER_SQUAREFEET\"\t\t), section == \"Seller\", \"0-999\"\t);\n" );
printf( "\t\t\tsetControl( getElementById( \"BUYER_BEDROOMS\"\t\t), section == \"Seller\", \"1\"\t\t);\n" );
printf( "\t\t\tsetControl( getElementById( \"BUYER_BATHROOMS\"\t\t), section == \"Seller\", \"1\"\t\t);\n" );
printf( "\t\t\tsetControl( getElementById( \"TXT_BUYER\"\t\t\t\t), section == \"Seller\" );\n" );
printf( "\t\t\tsetControl( getElementById( \"TXT_BUYER_SQUAREFEET\"\t), section == \"Seller\" );\n" );
printf( "\t\t\tsetControl( getElementById( \"TXT_BUYER_BEDROOMS\"\t), section == \"Seller\" );\n" );
printf( "\t\t\tsetControl( getElementById( \"TXT_BUYER_BATHROOMS\"\t), section == \"Seller\" );\n" );
printf( "\t\t\tsetControl( getElementById( \"TXT_BUYER_MIN_PRICE\"\t), section == \"Seller\" );\n" );
printf( "\t\t\tsetControl( getElementById( \"TXT_BUYER_MAX_PRICE\"\t), section == \"Seller\" );\n" );
printf( "\t\t}\n" );
printf( "\t\t\n" );
printf( "\t\t\n" );
printf( "\t\tfunction setControl( control, disable, value ) {\n" );
printf( "\t\t\tcontrol.disabled = disable;\n" );
printf( "\t\t\tif( disable ) {\n" );
printf( "\t\t\t\tcontrol.value = typeof( value ) == \"undefined\" ? \"\" : value;\n" );
printf( "\t\t\t\tif( control.checked ) {\n" );
printf( "\t\t\t\t\tcontrol.checked = false;\n" );
printf( "\t\t\t\t}\n" );
printf( "\t\t\t}\n" );
printf( "\t\t}\n" );
printf( "\t\t\n" );
printf( "\t\t\n" );
printf( "\t\tfunction moveToNextField( id ) {\n" );
printf( "\t\t\tif( window.event.keyCode != 9 ) {\n" );
printf( "\t\t\t\tif( getElementById( id ).value.length == 3 ) {\n" );
printf( "\t\t\t\t\tif( id == \"PHONE_AREA_CODE\" ) {\n" );
printf( "\t\t\t\t\t\tgetElementById( \"PHONE_LOCAL_CODE\" ).focus();\n" );
printf( "\t\t\t\t\t}\n" );
printf( "\t\t\t\t\telse if( id == \"PHONE_LOCAL_CODE\" ) {\n" );
printf( "\t\t\t\t\t\tgetElementById( \"PHONE_NUMBER\" ).focus();\n" );
printf( "\t\t\t\t\t}\n" );
printf( "\t\t\t\t}\n" );
printf( "\t\t\t}\n" );
printf( "\t\t}\n" );
printf( "\t\t\n" );
printf( "\t\t\n" );
printf( "\t\tfunction allowKeys( obj, keys ) {\n" );
printf( "\t\t\tvar bAllowKey = false;\n" );
printf( "\t\t\tfor( var i = 0; i < keys.length; i++ ) {\n" );
printf( "\t\t\t\tif( keys.charAt( i ) == String.fromCharCode( window.event.keyCode ) ) {\n" );
printf( "\t\t\t\t\tbAllowKey = true;\n" );
printf( "\t\t\t\t\tbreak;\n" );
printf( "\t\t\t\t}\n" );
printf( "\t\t\t}\n" );
printf( "\t\t\tif( !bAllowKey ) {\n" );
printf( "\t\t\t\twindow.event.cancelBubble = true;\n" );
printf( "\t\t\t\twindow.event.keyCode = 0;\n" );
printf( "\t\t\t}\n" );
printf( "\t\t}\n" );
printf( "\t\t\n" );
printf( "\t\t\n" );
printf( "\t\tfunction validateInput( obj, keys ) {\n" );
printf( "\t\t\tif( typeof( window.clipboardData ) != \"undefined\" ) {\n" );
printf( "\t\t\t\tvar sData = window.clipboardData.getData( \"Text\" )\n" );
printf( "\t\t\t\tvar sTemp = \"\";\n" );
printf( "\t\t\t\tif( typeof( sData ) != \"undefined\" ) {\n" );
printf( "\t\t\t\t\tfor( var i = sData.length; --i >= 0; ) {\n" );
printf( "\t\t\t\t\t\tfor( var j = keys.length; --j >= 0; ) {\n" );
printf( "\t\t\t\t\t\t\tif( sData.charAt( i ) == keys.charAt( j ) ) {\n" );
printf( "\t\t\t\t\t\t\t\tsTemp += sData.charAt( i );\n" );
printf( "\t\t\t\t\t\t\t}\n" );
printf( "\t\t\t\t\t\t}\n" );
printf( "\t\t\t\t\t}\n" );
printf( "\t\t\t\t}\n" );
printf( "\t\t\t\n" );
printf( "\t\t\t\twindow.clipboardData.setData( \"Text\", sTemp );\n" );
printf( "\t\t\t}\n" );
printf( "\t\t}\n" );
printf( "\t\t\n" );
printf( "\t\t\n" );
printf( "\t\tfunction enableBestTime() {\n" );
printf( "\t\t\tvar txtPhoneArea\t= getElementById( \"PHONE_AREA_CODE\"\t\t);\n" );
printf( "\t\t\tvar txtPhoneLocal\t= getElementById( \"PHONE_LOCAL_CODE\"\t);\n" );
printf( "\t\t\tvar txtPhoneNumber\t= getElementById( \"PHONE_NUMBER\"\t\t);\n" );
printf( "\t\t\tvar obgBestTime\t\t= getElementById( \"BEST_TIME\"\t\t\t);\n" );
printf( "\t\t\t\n" );
printf( "\t\t\tif( typeof( txtPhoneArea ) != \"undefined\" && txtPhoneArea != null && typeof( obgBestTime ) != \"undefined\" && obgBestTime != null ) {\n" );
printf( "\t\t\t\tobgBestTime.disabled = !( txtPhoneArea.value.length != 0 || txtPhoneLocal.value.length != 0 || txtPhoneNumber.value.length != 0 );\n" );
printf( "\t\t\t}\n" );
printf( "\t\t}\n" );
printf( "\t\t\n" );
printf( "\t\tfunction Capitalize()\n" );
printf( "\t\t{\n" );
printf( "\t\t\tvar el = window.event.srcElement;\n" );
printf( "\t\t\tif( el == null ) return;\n" );
printf( "\t\t\t\n" );
printf( "\t\t\tif( el.getAttribute( \"CAP\" ) == null )\n" );
printf( "\t\t\t{\n" );
printf( "\t\t\t\tel.setAttribute( \"CAP\", \"1\" );\n" );
printf( "\t\t\t\tif( el.value == \"\" ) {\n" );
printf( "\t\t\t\t\tvar nUCharCode = String.fromCharCode( window.event.keyCode ).toUpperCase().charCodeAt(0);\n" );
printf( "\t\t\t\t\twindow.event.keyCode = nUCharCode;\n" );
printf( "\t\t\t\t}\n" );
printf( "\t\t\t}\n" );
printf( "\t\t}\n" );
printf( "\t\t\n" );
printf( "\t\t\n" );
printf( "\t\t\n" );
printf( "\t\tfunction Submit()\n" );
printf( "\t\t{\n" );
printf( "\t\t\tif( validateData() ) {\n" );
printf( "\t\t\t\tgetElementById( \"SUBMIT\" ).disabled = true;\n" );
printf( "\t\t\t\tvar pForm = getElementById( \"frmMain\" );\n" );
printf( "\t\t\t\tpForm.submit();\n" );
printf( "\t\t\t}\n" );
printf( "\t\t}\n" );
printf( "//-->\n" );
printf( "\t</SCRIPT>\n" );
printf( "\n" );
printf( "</HEAD>\n" );
printf( "<BODY BGCOLOR=\"#FFFFFF\" STYLE=\"font-SIZE: xx-small; font-family: sans-serif; COLOR: #000000; BORDER: 0.25in SOLID WHITE\" onLoad=\"init();\" onResize=\"size( getElementById( 'TABLE_PICTURES' ) );\">\n" );
printf( " <!-- Preview text goes here -->\n" );
printf( "\t<CENTER>\n" );
printf( "\t\t<!-- Agent Picture and Company Logo //-->\n" );
printf( "\t\t\n" );
printf( "\t\t<TABLE ID=\"TABLE_PICTURES\" WIDTH=100%% STYLE=\"font-size: xx-small; font-family: sans-serif; COLOR: #000000;\">\n" );
printf( "\t\t\t\t\t\t<TR WIDTH=100%%>\n" );
printf( "\t\t\t\t<TD><IMG ID=\"AGENT1_PICTURE\" SRC=\"http://tponline.realty-wire.com/Users/F5C24C1C-7EA1-4AE5-8D1E-6EC182F9E882/{AF149CCE-4684-45B7-BE18-A43B9F4D0604}/{e4fbcd1c-b9fd-424d-bd6d-a68d5d4bbc8e}.jpg\" HEIGHT=\"100px\"></TD>\n" );
printf( "\t\t\t\t<TD ALIGN=LEFT VALIGN=TOP WIDTH=90%%>\n" );
printf( "\t\t\t\t\t<STRONG>Tim Murray, Broker Associate, e-Pro</STRONG><BR><BR>\n" );
printf( "\t\t\t\t\tPhone: 574-243-9513<BR>\n" );
printf( "\t\t\t\t\tEmail: <A HREF=\"mailto:tim@timmurray.com\">tim@timmurray.com</A>\n" );
printf( "\t\t\t\t</TD>\n" );
printf( "\t\t\t\t<TD ALIGN=RIGHT VALIGN=TOP ROWSPAN=2><!COMPANY_PIC_HTML></TD>\n" );
printf( "\t\t\t</TR>\n" );
printf( "\t\t\t<TR>\n" );
printf( "\t\t\t\t<TD><!AGENT2_PIC_HTML></TD>\n" );
printf( "\t\t\t\t<TD ALIGN=LEFT VALIGN=TOP>\n" );
printf( "\t\t\t\t\t<STRONG>Heather Corr, Realtor</STRONG><BR><BR>\n" );
printf( "\t\t\t\t\tPhone: 574-243-9565<BR>\n" );
printf( "\t\t\t\t\tEmail: <A HREF=\"mailto:heather@timmurray.com\">heather@timmurray.com</A>\n" );
printf( "\t\t\t\t</TD>\n" );
printf( "\t\t\t</TR>\n" );
printf( "\t\t</TABLE>\n" );
printf( "\t\t<HR>\n" );
printf( "\t\t<FORM ID=\"frmMain\" ACTION=\"https://www.topproduceronline.com/LeadToolkit.asp\" METHOD=post>\n" );
printf( "\t\t\t<DIV ID=\"CONTACT_INFO\" NAME=\"CONTACT_INFO\" ALIGN=center STYLE=\"WIDTH: 725px\">\n" );
printf( "\t\t\t\t<DIV STYLE=\"WIDTH: 100%%; TEXT-ALIGN: CENTER\">\n" );
printf( "\t\t\t\t\t<STRONG>\n" );
printf( "\t\t\t\t\t\tPlease enter your information in the following fields and click the submit button.\n" );
printf( "\t\t\t\t\t</STRONG>\n" );
printf( "\t\t\t\t</DIV>\n" );
printf( "\t\t\t\t<BR>\n" );
printf( "\t\t\t\t<TABLE WIDTH=\"80%%\" COLS=3 BORDER=0 CELLPADDING=2 CELLSPACING=0 STYLE=\"font-size: xx-small; font-family: sans-serif;\">\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"width: 35%%\" ALIGN=right>First name:</TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"width: 40%%\" ALIGN=left COLSPAN=3>\n" );
printf( "\t\t\t\t\t\t\t <INPUT TYPE=TEXT MAXLENGTH=21 ID=FIRST_NAME NAME=FIRST_NAME STYLE=\"width: 75%%\" VALUE=\"%s\">\n", qs.getValue( "FIRST_NAME" )->getBuffer() );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\"> </TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD ALIGN=right>Last name:</TD>\n" );
printf( "\t\t\t\t\t\t<TD ALIGN=left COLSPAN=3>\n" );
printf( "\t\t\t\t\t\t\t <INPUT TYPE=TEXT MAXLENGTH=26 ID=LAST_NAME NAME=LAST_NAME STYLE=\"width: 75%%\" VALUE=\"%s\">\n", qs.getValue( "LAST_NAME" )->getBuffer() );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD ALIGN=right>Email:</TD>\n" );
printf( "\t\t\t\t\t\t<TD ALIGN=left COLSPAN=3>\n" );
printf( "\t\t\t\t\t\t\t <INPUT TYPE=TEXT MAXLENGTH=80 ID=EMAIL NAME=EMAIL STYLE=\"width: 75%%\" VALUE=\"%s\">\n", qs.getValue( "EMAIL" )->getBuffer() );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD ALIGN=right>Phone:</TD>\n" );
printf( "\t\t\t\t\t\t<TD ALIGN=left VALIGN=middle COLSPAN=3>\n" );
printf( "\t\t\t\t\t\t\t<TABLE STYLE=\"WIDTH: 80%%;\" BORDER=0 CELLPADDING=0 CELLSPACING=0>\n" );
printf( "\t\t\t\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t\t\t\t<TD>\n" );
printf( "\t\t\t\t\t\t\t\t\t\t(<INPUT TYPE=TEXT MAXLENGTH=3 ID=PHONE_AREA_CODE NAME=PHONE_AREA_CODE STYLE=\"width: 20%%\" onKeyUp=\"moveToNextField( 'PHONE_AREA_CODE' ); enableBestTime();\" onKeyPress=\"allowKeys( this, '1234567890' );\" onBeforePaste=\"validateInput( this, '1234567890' );\" onPaste=\"enableBestTime();\" VALUE=\"%s\">) -\n", qs.getValue( "PHONE_AREA_CODE" )->getBuffer() );
printf( "\t\t\t\t\t\t\t\t\t\t<INPUT TYPE=TEXT MAXLENGTH=3 ID=PHONE_LOCAL_CODE NAME=PHONE_LOCAL_CODE STYLE=\"width: 20%%\" onKeyUp=\"moveToNextField( 'PHONE_LOCAL_CODE' ); enableBestTime();\" onKeyPress=\"allowKeys( this, '1234567890' );\" onBeforePaste=\"validateInput( this, '1234567890' );\" onPaste=\"enableBestTime();\" VALUE=\"%s\"> -\n", qs.getValue( "PHONE_LOCAL_CODE" )->getBuffer() );
printf( "\t\t\t\t\t\t\t\t\t\t<INPUT TYPE=TEXT MAXLENGTH=4 ID=PHONE_NUMBER\t NAME=PHONE_NUMBER STYLE=\"width: 36%%\" onKeyUp=\"enableBestTime();\" onKeyPress=\"allowKeys( this, '1234567890' );\" onBeforePaste=\"validateInput( this, '1234567890' );\" onPaste=\"enableBestTime();\" VALUE=\"%s\">\n", qs.getValue( "PHONE_NUMBER" )->getBuffer() );
printf( "\t\t\t\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t\t\t</TABLE>\n" );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD ALIGN=right>Best time to reach me:</TD>\n" );
printf( "\t\t\t\t\t\t<TD ALIGN=left COLSPAN=3>\n" );
printf( "\t\t\t\t\t\t\t <SELECT ID=BEST_TIME NAME=BEST_TIME STYLE=\"width: 75%%\" DISABLED>\n" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"Anytime\"%s>Anytime\n", ( strcmp( qs.getValue( "BEST_TIME" )->getBuffer(), "Anytime" ) == 0 || strlen( qs.getValue( "BEST_TIME" )->getBuffer() ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"Morning\"%s>Morning\n", ( strcmp( qs.getValue( "BEST_TIME" )->getBuffer(), "Morning" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"Afternoon\"%s>Afternoon\n", ( strcmp( qs.getValue( "BEST_TIME" )->getBuffer(), "Afternoon" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"Evening\"%s>Evening\n", ( strcmp( qs.getValue( "BEST_TIME" )->getBuffer(), "Evening" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t</SELECT>\n" );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR><TD STYLE=\"HEIGHT: 10px\"></TD></TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD COLSPAN=5 STYLE=\"width: 100%%\" ALIGN=center>I am: \n" );
printf( "\t\t\t\t\t\t\t<INPUT ID=\"STATUS_BUYER\" TYPE=RADIO NAME=\"STATUS\" onClick=\"enableSection( 'Buyer' );\" VALUE=\"Buy-New-Home\"%s>Buying</INPUT>\n", ( strcmp( qs.getValue( "STATUS" )->getBuffer(), "Buy-New-Home" ) == 0 || strlen( qs.getValue( "STATUS" )->getBuffer() ) == 0 ) ? " CHECKED" : "" );
printf( "\t\t\t\t\t\t\t<INPUT ID=\"STATUS_SELLER\" TYPE=RADIO NAME=\"STATUS\" onClick=\"enableSection( 'Seller' );\" VALUE=\"Sell-Home\"%s>Selling</INPUT>\n", ( strcmp( qs.getValue( "STATUS" )->getBuffer(), "Sell-Home" ) == 0 ) ? " CHECKED" : "" );
printf( "\t\t\t\t\t\t\t<INPUT ID=\"STATUS_BOTH\" TYPE=RADIO NAME=\"STATUS\" onClick=\"enableSection( 'Both' );\" VALUE=\"Buy-Resale-Home\"%s>Both</INPUT>\n", ( strcmp( qs.getValue( "STATUS" )->getBuffer(), "Buy-Resale-Home" ) == 0 ) ? " CHECKED" : "" );
printf( "\t\t\t\t\t\t\t \n" );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t</TABLE>\n" );
printf( "\t\t\t</TD>\n" );
printf( "\t\t<TR>\n" );
printf( "\t\t\t<TD><BR></TD>\n" );
printf( "\t\t</TR>\n" );
printf( "\t\t<TR>\n" );
printf( "\t\t\t<TD COLSPAN=2>\n" );
printf( "\t\t\t\t<TABLE WIDTH=100%% COLS=4 BORDER=0 CELLPADDING=2 CELLSPACING=0 STYLE=\"font-SIZE: xx-small; font-family: sans-serif; COLOR: #000000;\">\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 20%%\"></TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\"></TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 15%%\"></TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\"></TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 5%%\"></TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD COLSPAN=2 ID=TXT_BUYER BGCOLOR=\"#FFFFFF\" ALIGN=CENTER>\n" );
printf( "\t\t\t\t\t\t\t<STRONG STYLE=\"font-SIZE: xx-small\">Buying property features</STRONG>\n" );
printf( "\t\t\t\t\t\t\t<HR>\n" );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t\t<TD COLSPAN=3 ID=TXT_SELLER BGCOLOR=\"#FFFFFF\" ALIGN=CENTER>\n" );
printf( "\t\t\t\t\t\t\t<STRONG STYLE=\"font-SIZE: xx-small\">My property features</STRONG>\n" );
printf( "\t\t\t\t\t\t\t<HR>\n" );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD ID=TXT_BUYER_SQUAREFEET STYLE=\"WIDTH: 20%%\" ALIGN=right>Square feet: </TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\" ALIGN=left>\n" );
printf( "\t\t\t\t\t\t\t<SELECT ID=\"BUYER_SQUAREFEET\" NAME=\"BUYER_SQUAREFEET\" STYLE=\"WIDTH: 80%%\">\n" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"0-999\"%s>0-999\n", ( strcmp( qs.getValue( "BUYER_SQUAREFEET" )->getBuffer(), "0-999" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"1000-1499\"%s>1000-1499\n", ( strcmp( qs.getValue( "BUYER_SQUAREFEET" )->getBuffer(), "1000-1499" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"1500-1999\"%s>1500-1999\n", ( strcmp( qs.getValue( "BUYER_SQUAREFEET" )->getBuffer(), "1500-1999" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"2000-2499\"%s>2000-2499\n", ( strcmp( qs.getValue( "BUYER_SQUAREFEET" )->getBuffer(), "2000-2499" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"2500-2999\"%s>2500-2999\n", ( strcmp( qs.getValue( "BUYER_SQUAREFEET" )->getBuffer(), "2500-2999" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"3000-3499\"%s>3000-3499\n", ( strcmp( qs.getValue( "BUYER_SQUAREFEET" )->getBuffer(), "3000-3499" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"3500-3999\"%s>3500-3999\n", ( strcmp( qs.getValue( "BUYER_SQUAREFEET" )->getBuffer(), "3500-3999" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"4000+\"%s>4000+\n", ( strcmp( qs.getValue( "BUYER_SQUAREFEET" )->getBuffer(), "4000+" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t</SELECT>\n" );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t\t<TD ID=TXT_SELLER_SQUAREFEET STYLE=\"WIDTH: 15%%; BORDER-LEFT: 1px solid lightgray;\" ALIGN=right>Square feet: </TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\" ALIGN=left>\n" );
printf( "\t\t\t\t\t\t\t<INPUT TYPE=TEXT MAXLENGTH=16 ID=\"SELLER_SQUAREFEET\" NAME=\"SELLER_SQUAREFEET\" STYLE=\"WIDTH: 80%%\" onKeyPress=\"allowKeys( this, '1234567890+-,.' );\" onBeforePaste=\"validateInput( this, '1234567890+-,.' );\" VALUE=\"%s\">\n", qs.getValue( "SELLER_SQUAREFEET" )->getBuffer() );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD ID=TXT_BUYER_BEDROOMS STYLE=\"WIDTH: 20%%\" ALIGN=right>Bedrooms: </TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\" ALIGN=left>\n" );
printf( "\t\t\t\t\t\t\t<SELECT ID=\"BUYER_BEDROOMS\" NAME=\"BUYER_BEDROOMS\" STYLE=\"WIDTH: 80%%\">\n" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"1\"%s>1\n", ( strcmp( qs.getValue( "BUYER_BEDROOMS" )->getBuffer(), "1" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"2\"%s>2\n", ( strcmp( qs.getValue( "BUYER_BEDROOMS" )->getBuffer(), "2" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"3\"%s>3\n", ( strcmp( qs.getValue( "BUYER_BEDROOMS" )->getBuffer(), "3" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"4\"%s>4\n", ( strcmp( qs.getValue( "BUYER_BEDROOMS" )->getBuffer(), "4" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"5+\"%s>5+\n", ( strcmp( qs.getValue( "BUYER_BEDROOMS" )->getBuffer(), "5+" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t</SELECT>\n" );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t\t<TD ID=TXT_SELLER_BEDROOMS STYLE=\"WIDTH: 15%%; BORDER-LEFT: 1px solid lightgray;\" ALIGN=right>Bedrooms: </TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\" ALIGN=left>\n" );
printf( "\t\t\t\t\t\t\t<INPUT TYPE=TEXT MAXLENGTH=16 ID=\"SELLER_BEDROOMS\" NAME=\"SELLER_BEDROOMS\" STYLE=\"WIDTH: 80%%\" onKeyPress=\"allowKeys( this, '1234567890+-' );\" onBeforePaste=\"validateInput( this, '1234567890+-' );\" VALUE=\"%s\">\n", qs.getValue( "SELLER_BEDROOMS" )->getBuffer() );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD ID=TXT_BUYER_BATHROOMS STYLE=\"WIDTH: 20%%\" ALIGN=right>Bathrooms: </TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\" ALIGN=left>\n" );
printf( "\t\t\t\t\t\t\t<SELECT ID=\"BUYER_BATHROOMS\" NAME=\"BUYER_BATHROOMS\" STYLE=\"WIDTH: 80%%\">\n" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"1\"%s>1\n", ( strcmp( qs.getValue( "BUYER_BATHROOMS" )->getBuffer(), "1" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"2\"%s>2\n", ( strcmp( qs.getValue( "BUYER_BATHROOMS" )->getBuffer(), "2" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"3\"%s>3\n", ( strcmp( qs.getValue( "BUYER_BATHROOMS" )->getBuffer(), "3" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"4+\"%s>4+\n", ( strcmp( qs.getValue( "BUYER_BATHROOMS" )->getBuffer(), "4+" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t</SELECT>\n" );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t\t<TD ID=TXT_SELLER_BATHROOMS STYLE=\"WIDTH: 15%%; BORDER-LEFT: 1px solid lightgray;\" ALIGN=right>Bathrooms: </TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\" ALIGN=left>\n" );
printf( "\t\t\t\t\t\t\t<INPUT TYPE=TEXT MAXLENGTH=16 ID=\"SELLER_BATHROOMS\" NAME=\"SELLER_BATHROOMS\" STYLE=\"WIDTH: 80%%\" onKeyPress=\"allowKeys( this, '1234567890+-.' );\" onBeforePaste=\"validateInput( this, '1234567890+-.' );\" VALUE=\"%s\">\n", qs.getValue( "SELLER_BATHROOMS" )->getBuffer() );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 20%%\" ID=TXT_BUYER_MIN_PRICE ALIGN=right>Minimum price: </TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\" ALIGN=left>\n" );
printf( "\t\t\t\t\t\t\t<SELECT ID=BUYER_MIN_PRICE NAME=BUYER_MIN_PRICE STYLE=\"WIDTH:80%%\">\n" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$0\"%s>$0\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$0" ) == 0 || strlen( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer() ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$25,000\"%s>$25,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$25,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$50,000\"%s>$50,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$50,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$75,000\"%s>$75,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$75,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$100,000\"%s>$100,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$100,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$125,000\"%s>$125,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$125,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$150,000\"%s>$150,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$150,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$175,000\"%s>$175,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$175,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$200,000\"%s>$200,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$200,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$225,000\"%s>$225,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$225,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$250,000\"%s>$250,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$250,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$275,000\"%s>$275,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$275,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$300,000\"%s>$300,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$300,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$325,000\"%s>$325,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$325,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$350,000\"%s>$350,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$350,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$375,000\"%s>$375,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$375,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$400,000\"%s>$400,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$400,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$425,000\"%s>$425,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$425,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$450,000\"%s>$450,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$450,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$475,000\"%s>$475,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$475,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$500,000\"%s>$500,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$500,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$525,000\"%s>$525,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$525,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$550,000\"%s>$550,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$550,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$575,000\"%s>$575,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$575,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$600,000\"%s>$600,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$600,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$625,000\"%s>$625,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$625,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$650,000\"%s>$650,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$650,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$675,000\"%s>$675,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$675,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$700,000\"%s>$700,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$700,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$725,000\"%s>$725,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$725,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$750,000\"%s>$750,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$750,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$775,000\"%s>$775,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$775,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$800,000\"%s>$800,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$800,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$825,000\"%s>$825,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$825,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$850,000\"%s>$850,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$850,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$875,000\"%s>$875,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$875,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$900,000\"%s>$900,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$900,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$925,000\"%s>$925,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$925,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$950,000\"%s>$950,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$950,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$975,000\"%s>$975,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$975,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$1,000,000\"%s>$1,000,000\n", ( strcmp( qs.getValue( "BUYER_MIN_PRICE" )->getBuffer(), "$1,000,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t</SELECT>\n" );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%; BORDER-LEFT: 1px solid lightgray;\" ALIGN=left> </TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 20%%\" ID=TXT_BUYER_MAX_PRICE ALIGN=right>Maximum price: </TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\" ALIGN=left>\n" );
printf( "\t\t\t\t\t\t\t<SELECT ID=BUYER_MAX_PRICE NAME=BUYER_MAX_PRICE STYLE=\"WIDTH:80%%\">\n" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$25,000\"%s>$25,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$25,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$50,000\"%s>$50,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$50,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$75,000\"%s>$75,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$75,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$100,000\"%s>$100,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$100,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$125,000\"%s>$125,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$125,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$150,000\"%s>$150,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$150,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$175,000\"%s>$175,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$175,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$200,000\"%s>$200,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$200,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$225,000\"%s>$225,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$225,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$250,000\"%s>$250,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$250,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$275,000\"%s>$275,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$275,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$300,000\"%s>$300,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$300,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$325,000\"%s>$325,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$325,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$350,000\"%s>$350,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$350,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$375,000\"%s>$375,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$375,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$400,000\"%s>$400,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$400,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$425,000\"%s>$425,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$425,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$450,000\"%s>$450,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$450,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$475,000\"%s>$475,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$475,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$500,000\"%s>$500,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$500,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$525,000\"%s>$525,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$525,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$550,000\"%s>$550,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$550,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$575,000\"%s>$575,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$575,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$600,000\"%s>$600,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$600,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$625,000\"%s>$625,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$625,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$650,000\"%s>$650,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$650,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$675,000\"%s>$675,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$675,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$700,000\"%s>$700,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$700,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$725,000\"%s>$725,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$725,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$750,000\"%s>$750,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$750,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$775,000\"%s>$775,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$775,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$800,000\"%s>$800,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$800,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$825,000\"%s>$825,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$825,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$850,000\"%s>$850,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$850,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$875,000\"%s>$875,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$875,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$900,000\"%s>$900,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$900,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$925,000\"%s>$925,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$925,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$950,000\"%s>$950,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$950,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$975,000\"%s>$975,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$975,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"$1,000,000\"%s>$1,000,000\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "$1,000,000" ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t\t<OPTION VALUE=\"no maximum\"%s>no maximum\n", ( strcmp( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer(), "no maximum" ) == 0 || strlen( qs.getValue( "BUYER_MAX_PRICE" )->getBuffer() ) == 0 ) ? " SELECTED" : "" );
printf( "\t\t\t\t\t\t\t</SELECT>\n" );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%; BORDER-LEFT: 1px solid lightgray;\" ALIGN=left> </TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t</TABLE>\n" );
printf( "\t\t\t\t<TABLE WIDTH=100%% COLS=4 BORDER=0 CELLPADDING=2 CELLSPACING=0 STYLE=\"font-SIZE: xx-small; font-family: sans-serif; COLOR: #000000;\">\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 22%%\"></TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\"></TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\"></TD>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 28%%\"></TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD><BR></TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD COLSPAN=4 BGCOLOR=#FFFFFF> \n" );
printf( "\t\t\t\t\t\t\t \n" );
printf( "\t\t\t\t\t\t\t<STRONG STYLE=\"FONT-SIZE: xx-small\">Other information and comments</STRONG><HR>\n" );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR HEIGHT=50 ROWSPAN=\"2\">\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\" ALIGN=right VALIGN=top>Comments:</TD>\n" );
printf( "\t\t\t\t\t\t<TD ALIGN=left VALIGN=bottom COLSPAN=3>\n" );
printf( "\t\t\t\t\t\t\t<FONT SIZE=\"xx-small\">\n" );
printf( "\t\t\t\t\t\t\t\t<TEXTAREA ID=COMMENTS NAME=\"COMMENTS\" STYLE=\"FONT-SIZE: 80%%; FONT-FAMILY: sans-serif; WIDTH: 70%%; HEIGHT: 70px; OVERFLOW-Y: scroll; SIZE: 20,5;\" ROWS=\"5\" COLS=\"20\">%s</TEXTAREA>\n", qs.getValue( "COMMENTS" )->getBuffer() );
printf( "\t\t\t\t\t\t\t</FONT>\n" );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t\t<TR>\n" );
printf( "\t\t\t\t\t\t<TD STYLE=\"WIDTH: 25%%\" ALIGN=right></TD>\n" );
printf( "\t\t\t\t\t\t<TD ALIGN=left COLSPAN=3>\n" );
printf( "\t\t\t\t\t\t\t<INPUT TYPE=BUTTON VALUE=\"Submit\" STYLE=\"WIDTH: 70%%\" OnClick=\"Submit()\" ID=\"SUBMIT\">\n" );
printf( "\t\t\t\t\t\t</TD>\n" );
printf( "\t\t\t\t\t</TR>\n" );
printf( "\t\t\t\t</TABLE>\n" );
printf( "\t\t\t</DIV>\n" );
printf( "\t\t\t<INPUT TYPE=\"hidden\" NAME=\"PAGEID\" VALUE=\"dGltLm11cnJheQ==\">\n" );
printf( "\t\t\t<INPUT TYPE=\"hidden\" NAME=\"SOURCE\" VALUE=\"Website\">\n" );
printf( "\t\t\t<INPUT TYPE=\"hidden\" NAME=\"MSG_SUCCESS\" VALUE=\"<P><FONT face=Arial size=4><STRONG>Thank you for your inquiry. You will be contacted as soon as possible.</STRONG></P></FONT><br><a href=javascript:window.close();>Click here to close this window</a>\">\n" );
printf( "\t\t\t<INPUT TYPE=\"hidden\" NAME=\"MSG_FAILURE\" VALUE=\"<P><FONT face=Arial size=4><STRONG>Your inquiry has not been sent. The server may be busy, or an unexpected problem has occurred. Please try again. If the problem persists, please email us directly at <a HREF=mailto:tim@timmurray.com>tim@timmurray.com</a> or <a HREF=mailto:heather@timmurray.com>heather@timmurray.com</a></STRONG></font><br><br><a href=javascript:history.go(-1)>Click here to return to the previous page</a>\">\n" );
printf( "\t\t\t<INPUT TYPE=\"HIDDEN\" NAME=\"SELLER_LOCATION_SAME_ADDRESS\" VALUE=\"on\">\n" );
printf( "\t\t\t<INPUT TYPE=\"HIDDEN\" NAME=\"MLS_Agent_ID\" VALUE=\"%s\">\n", qs.getValue( "MLS_Agent_ID" )->getBuffer() );
printf( "\t\t\t<INPUT TYPE=\"HIDDEN\" NAME=\"MLS_Office_ID\" VALUE=\"%s\">\n", qs.getValue( "MLS_Office_ID" )->getBuffer() );
printf( "\t\t\t<INPUT TYPE=\"HIDDEN\" NAME=\"MLS_Number\" VALUE=\"%s\">\n", qs.getValue( "MLS_Number" )->getBuffer() );
printf( "\t\t\t<INPUT TYPE=\"HIDDEN\" NAME=\"SUBSOURCE\" VALUE=\"Default form\">\n" );
printf( "\t\t\t<INPUT TYPE=\"HIDDEN\" NAME=\"URL_SUCCESS\" VALUE=\"\">\n" );
printf( "\t\t\t<INPUT TYPE=\"HIDDEN\" NAME=\"ASSIGNED_TO\" VALUE=\"{D983D4F2-6113-4B45-94F2-BCC335ED99B0}\">\n" );
printf( "\t\t\t<!-- NOTE: The SUBSOURCE field is associated with the Inquiry form field -->\n" );
printf( "\t\t</FORM>\n" );
printf( "\t</CENTER>\n" );
printf( "</BODY>\n" );
printf( "</HTML>\n" );
exit( 0 ) ;
return 0;
}