<!--
	//Create a boolean variable to check for a valid Internet Explorer instance.
	var xmlhttp = false;
	//Check if we are using IE.
	try {
	//If the Javascript version is greater than 5.
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
	//If not, then use the older active x object.
		try {
		//If we are using Internet Explorer.
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
		//Else we must be using a non-IE browser.
			xmlhttp = false;
		}
	}
	//If we are using a non-IE browser, create a javascript instance of the object.
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		xmlhttp = new XMLHttpRequest();
	}

Array.prototype.inArray = function (value)
// Returns true if the passed value is found in the
// array.  Returns false if it is not.
{
    var i;
    for (i=0; i < this.length; i++) {
        // Matches identical (===), not just similar (==).
        if (this[i] === value) {
            return true;
        }
    }
    return false;
};

	function testfrm(serverPage, objID)
	{
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("GET", serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
				if (xmlhttp.readyState==4)
				{
					document.getElementById(objID).innerHTML = xmlhttp.responseText;
				}
				else
				{
					document.getElementById(objID).innerHTML = '<table width="100%"><tr><td height="10" valign="center" align="center" class="text" style="color:000000;"><font style="font-size:9px">Loading</font>&nbsp;&nbsp;<input type="image" name="imageField" src="'+IMG_SERVER+'/images/loading.gif"/></td></tr></table>';
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}
	// This function is customize for registration and list your property
	function makerequest(serverPage, objID)
	{
		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("GET", serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
				if (xmlhttp.readyState==4)
				{
					//obj.innerHTML = xmlhttp.responseText;
					var text = xmlhttp.responseText.substr(0,(xmlhttp.responseText.length-1));
					if(text == '')
						text = '&nbsp;';
					obj.innerHTML = text;
					mystr = xmlhttp.responseText.substr(0,(xmlhttp.responseText.length-1));
					var thelength=xmlhttp.responseText.length;
					var last_char=xmlhttp.responseText.charAt(thelength-1);
					if(eval('last_char')==0)
					{
						return false;
					}
					else
					{
						return true;
					}
				}
				else
				{
					document.getElementById(objID).innerHTML = '<table width="100%"><tr><td height="10" valign="center" align="center" class="text" style="color:000000;"><font style="font-size:9px">Loading.........</font>&nbsp;&nbsp;</td></tr></table>';
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}

function makerequestforsms(serverPage,objID)
	{
		//alert(serverPage);
		//alert(objID);

		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("GET", serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
			if (xmlhttp.readyState==4)
				{
					obj.innerHTML = xmlhttp.responseText;
					//alert(obj.innerHTML);
				}
				else
				{
					document.getElementById(objID).innerHTML = 'Sending SMS Please wait..............';
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}


function makerequestfastfree(serverPage, objID)
	{

		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("GET", serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
			if (xmlhttp.readyState==4)
				{
					obj.innerHTML = xmlhttp.responseText;
				}
				else
				{
					document.getElementById(objID).innerHTML = '<table width="40%" border="0" align="rignt"  style="border:1px solid #48A1CB;"><tr><td colspan="2" class="text" width = "20%"><font style="font-size:9px">Loading</font>&nbsp;&nbsp;<input type="image" name="imageField" src="'+IMG_SERVER+'/images/loading.gif"/></td></tr><tr><td align="center">&nbsp;</td><td align="center">&nbsp;</td></tr></table>';
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}
	function showsms(serverPage, objID)
	{
		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var temp = new Array();
		temp = objID.split('_');
		var newdiv = 'div_f' + temp[1];
		if (document.getElementById(newdiv) != null && document.getElementById(newdiv) != "undefined") {
			if(document.getElementById(newdiv).style.display != 'none') {
				var obj = document.getElementById(newdiv);
			} else {
				var obj = document.getElementById(objID);
			}
		} else {
				var obj = document.getElementById(objID);
		}

		try
		{
			xmlhttp.open("GET", serverPage,true);

			xmlhttp.onreadystatechange = function()

			{
				if (xmlhttp.readyState==4)
				{
					obj.innerHTML = xmlhttp.responseText;
					return true;
				}
				else
				{
					document.getElementById(objID).innerHTML = '<table width="100%" class="whitefill"><tr><td height="10" valign="center" align="center" class="text" style="color:000000;"><font style="font-size:9px">Loading</font>&nbsp;&nbsp;<input type="image" name="imageField" src="'+IMG_SERVER+'/images/loading.gif"/></td></tr></table>';
				}
			}
			xmlhttp.send(null);
			//alert("six");
		}
		catch(e)
		{
		}
	}

	// This function is a general function for any where use

	function makeajaxrequest(serverPage,objID)
	{
		//alert(objID);
		//alert(serverPage);



		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("GET",serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
				if (xmlhttp.readyState==4)
				{
					obj.innerHTML = xmlhttp.responseText;
					//(obj.innerHTML);
				}
				else
				{
					document.getElementById(objID).innerHTML = "<table border=0 height='50' width='100%'><tr><td valign='middle' align='center'> <img src='http://www.mymsg.in/mymsg/images/loading_wh.gif'></td></tr></table>";
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}

function makeajaxrequestcat(serverPage,objID)
	{
		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("GET",serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
				if (xmlhttp.readyState==4)
				{
					obj.innerHTML = xmlhttp.responseText;
				}
				else
				{
					document.getElementById(objID).innerHTML = "Loading ... Please wait>";
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}

function makecityajaxrequest(serverPage,objID)
	{
		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("GET",serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
				if (xmlhttp.readyState==4)
				{
					obj.innerHTML = xmlhttp.responseText;
					//(obj.innerHTML);
				}
				else
				{
					document.getElementById(objID).innerHTML = "Processing.........please wait";
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}



	function ajaxrequest(serverPage,objID)
	{
		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("GET",serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
			if (xmlhttp.readyState==4)
				{
					obj.innerHTML = xmlhttp.responseText;
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
    }

	function makeajaxpostrequest(serverPage,objID)
	{
		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("POST",serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
			if (xmlhttp.readyState==4)
				{
					obj.innerHTML = xmlhttp.responseText;
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
    }

	// This function is a general function for any where use
	function ajaxlogin(serverPage,objID,type,mode,currentpage,show,propertyid,mobilepage)
	{
		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		if(currentpage == '' || currentpage == 'undefined')
		{
			currentpage = 'listing';
		}
		if(!mobilepage) mobilepage=0;
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("GET",serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
				if (xmlhttp.readyState==4)
				{
					//obj.innerHTML = xmlhttp.responseText.substr(0,(xmlhttp.responseText.length-1));
					mystr = xmlhttp.responseText.substr(0,(xmlhttp.responseText.length-1));
					var thelength=xmlhttp.responseText.length;
					var last_char=xmlhttp.responseText.charAt(thelength-1);
					if(eval(last_char)=='0')
					{
						obj.innerHTML = mystr;
					}
					else
					{
						var b = xmlhttp.responseText;
						var temp = new Array();
						temp = b.split('#');
						if(currentpage == 'listing')
						{
							enableFormElement();
							var msg = "<table border = '0' width='95%' cellpadding='0' cellspacing='0' class='staticorangetb'>"
							msg += "<tr style='line-height:20px;'><td width='100%' class = 'columnhead paddingleft20'>";
							msg += "Welcome <b>" + temp[2] + "</b>,</td></tr><tr style='line-height:20px;'	><td class = 'columnhead paddingleft20'>";
							if(mode == "fast")
							{
								if(temp[15] == "0" || temp[16] == "0") {
									msg += "Balance Fast Response Listing(s) are <b>" + temp[1] + "</b>";
								} else {
									// Free Marker User with FR
									msg += "Balance Fast Response Listing(s) is " + temp[1] + ". You can use it to list property in any cities except  Delhi, Mumbai, Hyderabad, Bangalore, Kolkata and Pune.";
									document.listproperty_frm.city.onchange = function()
									{ 
										makerequest('/ssi/ajax/display-locations.php?cityid='+this.value,'div_loc');
										check_other_city(this.value,'tr_city_other','tr_location_other');
										showhidelistin(this.value);
									}

								}
							}
							else if(mode == "fastfree")
							{
							msg += "List Fast Response Listing for free*<div class='orange' align='right' style='padding-right:10px;'>* Special offer!&nbsp;&nbsp; This offer is valid only for listing done till midnight of 30th June, 2008&nbsp;&nbsp;</div>";
							}
							else if(temp[15] == "0")
							{
								msg += "Balance Basic Listing(s) are <b>" + temp[13] + "</b>";

								//document.getElementById('span_city').style.display = "none";
								//document.getElementById('span_city2').style.display = "";
							} else {
								msg += "You have <b>Unlimited Basic Listing</b> . You can use them to list property in any cities except  Delhi, Mumbai, Hyderabad, Bangalore, Kolkata and Pune.";
								document.listproperty_frm.city.onchange = function()
								{ 		
									makerequest('/ssi/ajax/display-locations.php?cityid='+this.value,'div_loc');
									check_other_city(this.value,'tr_city_other','tr_location_other');
									showhidelistin(this.value);
								}
							}
							msg += "</td></tr></table>";
							document.listproperty_frm.loginuser.value = temp[0];
							document.listproperty_frm.availListing.value = temp[1];
							document.getElementById('div_login_table').innerHTML = '';
							document.getElementById('div_login_table').innerHTML = msg;
							document.listproperty_frm.contact_name.value = temp[2];
							document.listproperty_frm.contact_email.value = temp[4];
							document.listproperty_frm.mob_country_code.value = temp[5];
							document.listproperty_frm.mobile1.value = temp[6];
							if(temp[7] != "" && temp[8] != "")
							{
								document.listproperty_frm.ph_country_code.value = temp[7];
								document.listproperty_frm.contact_mobile2.value = temp[8];
							}
							document.listproperty_frm.ph_area_code.value = temp[9];
							document.listproperty_frm.phone1.value = temp[10];
							if(temp[11] != "" && temp[12] != "")
							{
								document.listproperty_frm.ph_area_code2.value = temp[11];
								document.listproperty_frm.contact_phone2.value = temp[12];
							}
							document.getElementById('div_welcome').innerHTML = "Welcome <b>" + temp[2] + "</b>&nbsp;&nbsp;";
							document.getElementById('div_toplinks').innerHTML = "<a href=\"/\" class=\"toplinks\" >Home</a>&nbsp;|&nbsp;<a href=\"/help/about-us.php\" class=\"toplinks\" >About Us</a>&nbsp;|&nbsp;<a href=\"/help/faq.php\" class=\"toplinks\" >FAQ's</a>&nbsp;|&nbsp;<a href=\"/help/contact-us.php\" class=\"toplinks\" >Contact Us</a>&nbsp;|&nbsp;<a href=\"/member/logout.php\" class=\"toplinks\" >Logout</a>";
							document.getElementById('div_register_tab').innerHTML = "<a href=\"/member/my-makaan-account.php\" class=\"hrefheader\" style=\"color:#000;font-size:13px;text-decoration:none;\"><span class=\"menu-left\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-left\"></span><span class=\"menu-mid textnopad\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-mid\"><b><span class=\"tabtext\">My Makaan Account</span></b> </span><span class=\"menu-right\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-right\"></span></a>";

							//document.getElementById('div_msg').innerHTML = '';
							//document.getElementById('div_msg').innerHTML = msg;

							if(mode == "fast")
							{
								if(temp[1] != "0" && temp[1] != '')
								{
									//document.getElementById('div_frame').innerHTML  = '';
									document.getElementById('div_frame').style.display = 'none';
								}
								//var msg = "<br>Welcome " + temp[2] + ", Your available fast response listing balance is " +  temp[1] + "<br>";
							}
							else if(mode != "fastfree")
							{
								if(temp[13] != "0" && temp[13] != '')
								{
									document.getElementById('div_frame').innerHTML  = '';
									document.getElementById('div_frame').style.display = 'none';
								}
								else if(temp[15] == "1")
								{
									document.getElementById('div_frame').style.display = 'none';
								}
								else
								{
									document.getElementById('div_frame').style.display = '';
								}
								//var msg = "<br>Welcome " + temp[2] + ", Your available fast response listing balance is " +  temp[1] + "<br>";
							}
						}
						else if(currentpage == 'requirement')
						{
							enableFormElement();
							var msg = "<table border = '0' width='95%' cellpadding='0' cellspacing='0' class='staticorangetb'>"
							msg += "<tr style='line-height:20px;'><td width='100%' class = 'columnhead paddingleft20'>";
							msg += "Welcome <b>" + temp[2] + "</b>,</td></tr><tr style='line-height:20px;'	><td class = 'columnhead paddingleft20'>";
							msg += "Please fill in this form to post your requirement";
							msg += "</td></tr></table>";
							document.requiremant_frm.loginuser.value = temp[0];
							document.getElementById('div_login_table').innerHTML = '';
							document.getElementById('div_login_table').innerHTML = msg;
							document.getElementById('div_login_table').style.display = 'none';
							document.getElementById('tr_steplogin').style.display = 'none';
							document.requiremant_frm.contact_name.value = temp[2];
							document.requiremant_frm.contact_email.value = temp[4];
							document.requiremant_frm.mob_country_code.value = temp[5];
							document.requiremant_frm.mobile1.value = temp[6];
							if(temp[7] != "" && temp[8] != "")
							{
								document.requiremant_frm.ph_country_code.value = temp[7];
								document.requiremant_frm.contact_mobile2.value = temp[8];
							}
							document.requiremant_frm.ph_area_code.value = temp[9];
							document.requiremant_frm.phone1.value = temp[10];
							if(temp[11] != "" && temp[12] != "")
							{
								document.requiremant_frm.ph_area_code2.value = temp[11];
								document.requiremant_frm.contact_phone2.value = temp[12];
							}
							if(temp[14] == "" || temp[14] == "0")
							{
								document.getElementById('tr_loan').style.display = '';
							} else {
								document.getElementById('tr_loan').style.display = 'none';
								ins_loan(false);
							}
							document.getElementById('div_welcome').innerHTML = "Welcome <b>" + temp[2] + "</b>&nbsp;&nbsp;";
							document.getElementById('div_toplinks').innerHTML = "<a href=\"/\" class=\"toplinks\" >Home</a>&nbsp;|&nbsp;<a href=\"/help/about-us.php\" class=\"toplinks\" >About Us</a>&nbsp;|&nbsp;<a href=\"/help/faq.php\" class=\"toplinks\" >FAQ's</a>&nbsp;|&nbsp;<a href=\"/help/contact-us.php\" class=\"toplinks\" >Contact Us</a>&nbsp;|&nbsp;<a href=\"/member/logout.php\" class=\"toplinks\" >Logout</a>";
							document.getElementById('div_register_tab').innerHTML = "<a href=\"/member/my-makaan-account.php\" class=\"hrefheader\" style=\"color:#000;font-size:13px;text-decoration:none;\"><span class=\"menu-left\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-left\"></span><span class=\"menu-mid textnopad\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-mid\"><b><span class=\"tabtext\">My Makaan Account</span></b> </span><span class=\"menu-right\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-right\"></span></a>";
						}
						else if(currentpage == 'shortlist')
						{
							if (document.getElementById("div_welcome") != null && document.getElementById("div_welcome") != "undefined")
								document.getElementById('div_welcome').innerHTML = "Welcome <b>" + temp[2] + "</b>&nbsp;&nbsp;";
							document.getElementById('div_toplinks').innerHTML = "<a href=\"/\" class=\"toplinks\" >Home</a>&nbsp;|&nbsp;<a href=\"/help/about-us.php\" class=\"toplinks\" >About Us</a>&nbsp;|&nbsp;<a href=\"/help/faq.php\" class=\"toplinks\" >FAQ's</a>&nbsp;|&nbsp;<a href=\"/help/contact-us.php\" class=\"toplinks\" >Contact Us</a>&nbsp;|&nbsp;<a href=\"/member/logout.php\" class=\"toplinks\" >Logout</a>";
							if (document.getElementById("div_register_tab") != null && document.getElementById("div_register_tab") != "undefined"){
								document.getElementById('div_register_tab').innerHTML = "<a href=\"/member/my-makaan-account.php\" class=\"hrefheader\" style=\"color:#000;font-size:13px;text-decoration:none;\"><span class=\"menu-left\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-left\"></span><span class=\"menu-mid textnopad\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-mid\"><b><span class=\"tabtext\">My Makaan Account</span></b> </span><span class=\"menu-right\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-right\"></span></a>";
							}
							document.getElementById('div_login').innerHTML = '';
							if(show == '1')
							{
								showsms("/search/shortlist.php?show=1",'div_all');
							}
							else if(show == '2')
							{
								showsms("/search/shortlist.php?show=2",'div_all2');
							}
							else if(mobilepage == '1')
							{
								showsms("/search/mobileshortlist.php?pid="+propertyid,'div_'+propertyid);
							}
							else
							{
								showsms("/search/shortlist.php?pid="+propertyid,'div_'+propertyid);
							}
						}
						else if(currentpage == 'homeshortlist')
						{
							document.getElementById('div_all').innerHTML = '';
							showsms("/search/short-list-popup.php?pid="+propertyid,'div_all');
							window.opener.location.reload();
						}
						else if(currentpage == 'shortlistviewpage')
						{
							if (document.getElementById("div_welcome") != null && document.getElementById("div_welcome") != "undefined")
								document.getElementById('div_welcome').innerHTML = "Welcome <b>" + temp[2] + "</b>&nbsp;&nbsp;";
							document.getElementById('div_toplinks').innerHTML = "<a href=\"/\" class=\"toplinks\" >Home</a>&nbsp;|&nbsp;<a href=\"/help/about-us.php\" class=\"toplinks\" >About Us</a>&nbsp;|&nbsp;<a href=\"/help/faq.php\" class=\"toplinks\" >FAQ's</a>&nbsp;|&nbsp;<a href=\"/help/contact-us.php\" class=\"toplinks\" >Contact Us</a>&nbsp;|&nbsp;<a href=\"/member/logout.php\" class=\"toplinks\" >Logout</a>";
							if (document.getElementById("div_register_tab") != null && document.getElementById("div_register_tab") != "undefined")
								document.getElementById('div_register_tab').innerHTML = "<a href=\"/member/my-makaan-account.php\" class=\"hrefheader\" style=\"color:#000;font-size:13px;\"><span class=\"menu-mid textnopad\" style='font-size:15px;'><b>My Makaan Account</b> </span></a>";
							document.getElementById('div_login').innerHTML = '';
							if(show == '1')
							{
								showsms("/search/shortlist-propertylisting.php?show=1",'div_all');
							}
							else if(show == '2')
							{
								showsms("/search/shortlist-propertylisting.php?show=2",'div_all2');
							}
							else
							{
								showsms("/search/shortlist-propertylisting.php?pid="+propertyid,'div_'+propertyid);
							}
						}
						else if(currentpage == 'ppc_banner')
						{
							document.getElementById('div_toplinks').innerHTML = "<a href=\"/\" class=\"toplinks\" >Home</a>&nbsp;|&nbsp;<a href=\"/help/about-us.php\" class=\"toplinks\" >About Us</a>&nbsp;|&nbsp;<a href=\"/help/faq.php\" class=\"toplinks\" >FAQ's</a>&nbsp;|&nbsp;<a href=\"/help/contact-us.php\" class=\"toplinks\" >Contact Us</a>&nbsp;|&nbsp;<a href=\"/member/logout.php\" class=\"toplinks\" >Logout</a>";
							document.getElementById('div_register_tab').innerHTML = "<a href=\"/member/my-makaan-account.php\" class=\"hrefheader\" style=\"color:#000;font-size:13px;text-decoration:none;\"><span class=\"menu-left\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-left\"></span><span class=\"menu-mid textnopad\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-mid\"><b><span class=\"tabtext\">My Makaan Account</span></b> </span><span class=\"menu-right\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-right\"></span></a>";
							document.getElementById('div_login').innerHTML = '';
							document.getElementById('div_content').innerHTML = "<font class='text'>Welcome <b>" + temp[2] + "</b>&nbsp;&nbsp;</font>";
						}
						else
						{

							document.getElementById('div_welcome').innerHTML = "Welcome <b>" + temp[2] + "</b>&nbsp;&nbsp;";
							document.getElementById('div_toplinks').innerHTML = "<a href=\"/\" class=\"toplinks\" >Home</a>&nbsp;|&nbsp;<a href=\"/help/about-us.php\" class=\"toplinks\" >About Us</a>&nbsp;|&nbsp;<a href=\"/help/faq.php\" class=\"toplinks\" >FAQ's</a>&nbsp;|&nbsp;<a href=\"/help/contact-us.php\" class=\"toplinks\" >Contact Us</a>&nbsp;|&nbsp;<a href=\"/member/logout.php\" class=\"toplinks\" >Logout</a>";
							document.getElementById('div_register_tab').innerHTML = "<a href=\"/member/my-makaan-account.php\" class=\"hrefheader\" style=\"color:#000;font-size:13px;text-decoration:none;\"><span class=\"menu-left\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-left\"></span><span class=\"menu-mid textnopad\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-mid\"><b><span class=\"tabtext\">My Makaan Account</span></b> </span><span class=\"menu-right\" onmouseover=\"changetab('reg', true);\" onmouseout=\"changetab('reg', false);\" id=\"menu-reg-right\"></span></a>";
							document.getElementById('div_login').innerHTML = '';
						}

					}
				}
				else
				{

					document.getElementById(objID).innerHTML = 'Processing.....please wait';
				}
			}

			xmlhttp.send(null);
		}
		catch(e)
		{

		}
	}


function ajax_poll(serverPage,objID,quiz)
{
	// This is the function to call with serverPage as the page to dynamically call and objId is the div id
	var obj = document.getElementById(objID);
	try
	{
		xmlhttp.open("GET",serverPage,true);
		xmlhttp.onreadystatechange = function()
		{
		if (xmlhttp.readyState==4)
			{
				obj.innerHTML = xmlhttp.responseText;
			}
			else
			{
				document.getElementById('no_option').innerHTML= '<table width="100%"><tr><td height="20" valign="center" align="center" class="text" style="color:#ff0000;">Processing.....please wait</td></tr></table>';
			}
		}
		xmlhttp.send(null);
		//window.open('/ssi/popup/poll.php?quiz='+quiz,'title','toolbar=0,scrollbars=0,resize=no,width=630,height=450');
	}
	catch(e)
	{
	}
}


function compare_property_ajax(serverPage,objCmpID1, objCmpID2)
	{
		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var objCmp1 = document.getElementById(objCmpID1);
		var objCmp2 = document.getElementById(objCmpID2);
		try
		{
			xmlhttp.open("GET",serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
				if (xmlhttp.readyState==4)
				{
					objCmp1.innerHTML = xmlhttp.responseText;
					objCmp2.innerHTML = xmlhttp.responseText;
				}
				else
				{
					/*
					document.getElementById(objCmpID1).innerHTML = "Calculating..";
					document.getElementById(objCmpID2).innerHTML = "Calculating..";
					*/
					document.getElementById(objCmpID1).innerHTML = "<img src='"+IMG_SERVER+"/images/compare-button.gif' alt=\"Compare Property\" title=\"Compare Property\" border=\"0\" onmouseover=\"javascript:ajax_showTooltip('<font class=divmsgbold>Compare different properties</font><font class=divmsg><br>Please check atleast two listings that you would like to compare and click on this button.</font>',this);return false;\" onmouseout=\"ajax_hideTooltip();\" />";
					document.getElementById(objCmpID2).innerHTML = "<img src='"+IMG_SERVER+"/images/compare-button.gif' alt=\"Compare Property\" title=\"Compare Property\" border=\"0\" onmouseover=\"javascript:ajax_showTooltip('<font class=divmsgbold>Compare different properties</font><font class=divmsg><br>Please check atleast two listings that you would like to compare and click on this button.</font>',this);return false;\" onmouseout=\"ajax_hideTooltip();\" />";

				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}

	function update_session(checked,id)
	{
		/*
		var serverPage = '/ssi/ajax/add-session.php?pid=' + id + '&status=' + checked;
		xmlhttp.open("GET",serverPage,true);
		xmlhttp.onreadystatechange = function()
		{
			if (xmlhttp.readyState==4)
			{
				document.frm_search.count_id.value =  xmlhttp.responseText;
			}
		}
		xmlhttp.send(null);
		*/

		if(get_cookie('SELECTED_IDS')==null || get_cookie('SELECTED_IDS')=='')
		{
			var temp_array = new Array(1);
			temp_array[0] = id;
		}
		else
		{
			temp_array = get_cookie('SELECTED_IDS').split(',');
			if(checked == true && !temp_array.inArray(id)){
				temp_array.push(id);
			}else if(checked==false){
			//Remove it from the Session, if it is already there
				for(i = 0;i < temp_array.length; i++ )
				{
					if(temp_array[i] == id)
					{
						temp_array.splice(i,1);
						//unset(temp_array[i]);
					}
				}
			}
		}
		set_cookie('SELECTED_IDS', temp_array.join(","));
		count_sel_ids = temp_array.length;
		document.frm_search.count_id.value =  count_sel_ids;
	}

	function update_comparesession(checked,id)
	{
		if(get_cookie('SELECTED_COMP_IDS')==null || get_cookie('SELECTED_COMP_IDS')=='')
		{
			var temp_array = new Array(1);
			temp_array[0] = id;
		}
		else
		{
			temp_array = get_cookie('SELECTED_COMP_IDS').split(',');

			if(checked == true && !temp_array.inArray(id)){
				temp_array.push(id);
			}else if(checked==false){
			//Remove it from the Session, if it is already there
				for(i = 0;i < temp_array.length; i++ )
				{
					if(temp_array[i] == id)
					{
						temp_array.splice(i,1);
						//unset(temp_array[i]);
					}
				}
			}
		}
		set_cookie('SELECTED_COMP_IDS', temp_array.join(","));
		//count_sel_ids = temp_array.length;
	}

	function click_counter(id,page,city)
	{
		var serverPage = '/ssi/popup/clicks-counter.php?case=ppcbanner&id=' + id + '&city=' +city+'&page=' + page;
		xmlhttp.open("GET",serverPage,true);
		xmlhttp.onreadystatechange = function()
		{
			if (xmlhttp.readyState==4)
			{
			}
		}
		xmlhttp.send(null);
	}
	function makeajaxrequesnumber(serverPage,objID)
	{

		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("GET",serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
				if (xmlhttp.readyState==4)
				{
					obj.innerHTML = xmlhttp.responseText;
				}
				else
				{
				//	obj.innerHTML = '<font style="font-size:9px">Loading</font>&nbsp;&nbsp;<img src="images/loading.gif"/>';

				obj.innerHTML ="<table border=0 width='100%'><tr><td valign='top' class='columnhead' width='30%'></td><td   width='1%' ></td><td  width='79%' valign='middle'><font style='font-size:9px'>Processing.....please wait</font></td> </tr></table>";
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}

	function makeajaxrequest_ratingsystem(serverPage,objID)
	{
		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("GET",serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
				if (xmlhttp.readyState==4)
				{
					obj.innerHTML = xmlhttp.responseText;
				}
				else
				{
				//	obj.innerHTML = '<font style="font-size:9px">Loading</font>&nbsp;&nbsp;<img src="images/loading.gif"/>';

				obj.innerHTML ="<table border=0 height='100%' width='100%'><tr><td valign='middle' align='center'> <img src='http://img.mymsg.in/images/submit_process2.gif'></td></tr></table>";
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}


	function makeajaxrequest_homepagelocality(serverPage,objID)
	{
		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("GET",serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
				if (xmlhttp.readyState==4)
				{
					obj.innerHTML = xmlhttp.responseText;
					if(screen.width=="800") {
	
						var cla = 'hrefhomelinks';
						var myclass = new RegExp('\\b'+cla+'\\b');
						var elem = document.getElementsByTagName('*');
						for (var i = 0; i < elem.length; i++) {
							var classes = elem[i].className;
							if (myclass.test(classes)) {
								elem[i].className='smallhrefhomelinks cursor';
							}
						}
					}

				}
				else
				{
				//	obj.innerHTML = '<font style="font-size:9px">Loading</font>&nbsp;&nbsp;<img src="images/loading.gif"/>';
					obj.innerHTML ="<table border=0 height='50' width='100%'><tr><td valign='middle' align='center'> <img src='http://img.mymsg.in/images/loading.gif'></td></tr></table>";
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}


	/**
	 * function purpose : To capture single leads at single click
	 *
	 * @author Mohammad
	 * @param  filename   $param1		serverPage : This is a php file which process and display the result.
	 * @param  div id  $param2			objID : This (div id) is used for display the resultant content.
	 * @return string  getid			getid : This is a table id used for making all div id unique like div_19
	 *
	 * @usage $var_name = function_name($param);
	*/
	function makeajaxrequest_buyerlead(serverPage,objID,getid)
	{
		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		try
		{
			xmlhttp.open("GET",serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
				if (xmlhttp.readyState==4)
				{
					message=xmlhttp.responseText;

					
					var cla = 'dbuyerleadbutton';
					var myclass = new RegExp('\\b'+cla+'\\b');
					var elem = document.getElementsByTagName('*');
					for (var i = 0; i < elem.length; i++) {
						var classes = elem[i].className;
						if (myclass.test(classes)) {
							elem[i].style.display='none';
						}
					}
					var clb = 'buyerleadbutton';
					var myclass = new RegExp('\\b'+clb+'\\b');
					var elem = document.getElementsByTagName('*');
					for (var i = 0; i < elem.length; i++) {
						var classes = elem[i].className;
						if (myclass.test(classes)) {
							elem[i].style.display='';
						}
					}
					if(message=='counterfull')
					{
						message_display('','This lead can not be capture.');
						obj.style.display='none';
						document.getElementById('tr_'+getid).style.display='none';
						document.getElementById('captureimage_'+getid).innerHTML="<img src='http://img.mymsg.in/images/buyer-leads/capture-inact.gif' align='absmiddle' border='0' />";
					}
					else if(message=='nobalance')
					{
						message_display_nobalance('',"You don't have balance to purchase buyer lead(s). Contact your account manager for renewal of services.");
						obj.style.display='none';

						obj.style.display='none';
						document.getElementById('tr_'+getid).style.display='none';
					}
					else if(message=='alreadytaken')
					{
						message_display('','You have already captured this lead.');
						obj.style.display='none';
						document.getElementById('tr_'+getid).style.display='none';
						document.getElementById('captureimage_'+getid).innerHTML="<img src='http://img.mymsg.in/images/buyer-leads/capture-inact.gif' align='absmiddle' border='0' />";
					}
					else
					{
						obj.style.display='';
						array_string=Array();
						array_string=message.split('|#|');
						var mybalancelead = '';
						var mytotcapturelead = '';

						if(array_string[0]=='' || array_string[0]=='NA')
							leadctr=0;
						else if(array_string[0] != undefined)
							leadctr=array_string[0];

						if(array_string[1]=='' || array_string[1]=='NA')
							mybalancelead=0;
						else if(array_string[1] != undefined)
							mybalancelead=array_string[1];

						if(array_string[2]=='' || array_string[2]=='NA')
							mytotcapturelead=0;
						else if(array_string[2] != undefined)
							mytotcapturelead=array_string[2];

						//document.getElementById('div_leadctr_'+getid).innerHTML=leadctr+"/"+total_cnt;
						if(mybalancelead != '') {
							document.getElementById('balancelead').innerHTML=mybalancelead;
							document.getElementById('newleads').innerHTML=parseInt(document.getElementById('newleads').innerHTML)+1;
						}
						
						if(mytotcapturelead != '') {
							document.getElementById('totcapturelead').innerHTML="("+mytotcapturelead+")";
						}

						document.getElementById('captureimage_'+getid).style.backgroundImage="url('http://img.mymsg.in/images/buyer-leads/capture-inact.gif')";


						htmlcontent='';
						htmlcontent_text='';
						htmlcontent="<center><table width='99%' class='text' cellpadding='0' cellspacing='2' border='0'><tr>";

						htmlcontent+="<td width='17%' align='right'>Contact Details</td> <td width='1%' align='center'>:</td><td width='82%'>";

						var saparator='';

						if(array_string[3]!='NA' && array_string[3]!=undefined)
						{
							htmlcontent_text+="<b>"+array_string[3]+"</b>";
							saparator=',  ';
						}

						if(array_string[4]!='NA' && array_string[4]!=undefined)
						{
							htmlcontent_text+=saparator+"<b>"+array_string[4]+"</b>";
							saparator=',  ';
						}

						if(array_string[5]!='NA' && array_string[5]!=undefined)
						{
							htmlcontent_text+=saparator+"<b>"+array_string[5]+"</b>";
							saparator=',  ';
						}

						if(array_string[6]!='NA' && array_string[6]!=undefined)
						{
							htmlcontent_text+=saparator+"<b>"+array_string[6]+"</b>";
							saparator=',  ';
						}
						htmlcontent+=htmlcontent_text;
						htmlcontent+="</td>";
						htmlcontent+="</tr> </table></center>";
						
						if(htmlcontent_text!='')
						{
							obj.innerHTML=htmlcontent;
						}
						else
						{
							obj.innerHTML="<center><table width='99%' class='text' cellpadding='0' cellspacing='2' border='0'><tr><td align='center'><b>This lead could not be captured at this moment. Please try again later.</b></td></tr> </table></center>";
						}

						document.getElementById('captureimage_'+getid).innerHTML="<span style='color:#000000;'>&nbsp;Capture&nbsp;"+leadctr+"/"+total_cnt+"</span>";

						formObj = eval('document.frm');
						for (var i=1;i < formObj.length;i++)
						{
							fldObj = formObj.elements[i];
							if (fldObj.type=='checkbox')
							{
								if(fldObj.value==getid)
								{
									fldObj.disabled=true;
								}
							}
						}

						message_success='';
						if(htmlcontent_text!='') {
							message_success="You have successfully captured 1 lead(s). Buyer detail has been displayed in green background.";

							message_display_smily('',message_success);
						}
					}
				}
				else
				{
					obj.innerHTML ="<table border=0 align='center' cellpadding='0' cellspacing='0' width='80%'><tr><td align='center' valign='middle' class='text'><img src='http://img.mymsg.in/images/buyer-leads/buyer-process.gif'></td></tr></table>";
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}

	/**
	 * function purpose : To capture all the leads in single click
	 *
	 * @author Mohammad
	 * @param  filename   $param1		serverPage : This is a php file which process and display the result.
	 * @param  div id  $param2			objID : This (div id) is used for display the resultant content.
	 * @return string  getid			getid : This is a table id used for making all div id unique like div_19
	 *
	 * @usage $var_name = function_name($param);
	*/
	function makeajaxrequest_buyerlead_all(serverPage,objID,getid)
	{
		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		formObj = eval('document.frm');
		var alreadytaken_allmessage='';
		var counter_allmessage='';
		try
		{
			xmlhttp.open("GET",serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
				if(xmlhttp.readyState==4)
				{
					allmessage=xmlhttp.responseText;
					//alert(allmessage);

					array_string_all=Array();
					array_string_all=allmessage.split('|$|');
					array_string_alllength=0;
					array_string_alllength=array_string_all.length;
					//alert(array_string_alllength);

					array_regid=Array();
					array_regid=getid.split(",");
					getlength=array_regid.length;

					var cla = 'dbuyerleadbutton';
					var myclass = new RegExp('\\b'+cla+'\\b');
					var elem = document.getElementsByTagName('*');
					for (var i = 0; i < elem.length; i++) {
						var classes = elem[i].className;
						if (myclass.test(classes)) {
							elem[i].style.display='none';
						}
					}
					var clb = 'buyerleadbutton';
					var myclass = new RegExp('\\b'+clb+'\\b');
					var elem = document.getElementsByTagName('*');
					for (var i = 0; i < elem.length; i++) {
						var classes = elem[i].className;
						if (myclass.test(classes)) {
							elem[i].style.display='';
						}
					}

					if(allmessage=='nobalance')
					{
						message_display_nobalance('',"You don't have balance to purchase buyer lead(s). Contact your account manager for renewal of services.");
						obj.style.display='none';

						return false;
					}
					else
					{
						mycounter=0;
						//alert(array_string_all);
						for(var x=1;x<array_string_alllength;x++)
						{
							message='';
							message=array_string_all[x];
							getidindex=x-1;
							//alert("MESSAGE="+message);
							if(message=='counterfull')
							{
								counter_allmessage="This lead can not be capture.";
								obj.style.display='none';
								//alert('counterfull');

								//document.getElementById('tr_'+array_regid[getidindex]).style.display='none';
								//document.getElementById('captureimage_'+array_regid[getidindex]).innerHTML="<img src='http://img.mymsg.in/images/buyer-leads/capture-inact.gif' align='absmiddle' border='0' />";
							}
							else if(message=='alreadytaken')
							{
								alreadytaken_allmessage="You have already captured this lead(s).";
								obj.style.display='none';
								//alert('alreadytaken');
								//document.getElementById('tr_'+array_regid[getidindex]).style.display='none';
								//document.getElementById('captureimage_'+array_regid[getidindex]).innerHTML="<img src='http://img.mymsg.in/images/buyer-leads/capture-inact.gif' align='absmiddle' border='0' />";
							}
							else
							{
								//alert(message);
								obj.style.display='none';
								array_string=Array();
								array_string=message.split('|#|');
								array_string_length=array_string.length;
								//alert('ARRAYlen='+array_string_length);
								//alert("NEWVAL="+array_string[5]);
								get_divid='';
								get_divid=array_string[5];

								//alert(get_divid);

								document.getElementById('tr_'+get_divid).style.display='';
								//alert(array_string[0]);


								if(array_string[0]=='' || array_string[0]=='NA')
									leadctr=0;
								else
									leadctr=array_string[0];

								//document.getElementById('div_leadctr_'+get_divid).innerHTML=leadctr+"/"+total_cnt;
								document.getElementById('captureimage_'+get_divid).style.backgroundImage="url('http://img.mymsg.in/images/buyer-leads/capture-inact.gif')";

								htmlcontent='';
								htmlcontent_text='';
								htmlcontent="<center><table width='99%' class='text' cellpadding='0' cellspacing='2' border='0'><tr>";

								htmlcontent+="<td width='17%' align='right'>Contact Details</td> <td width='1%' align='center'>:</td><td width='82%'>";
								var saparator='';

								if(array_string[1]!='NA' && array_string[1]!=undefined)
								{
									htmlcontent_text+="<b>"+array_string[1]+"</b>";
									saparator=',  ';
								}

								if(array_string[2]!='NA' && array_string[2]!=undefined)
								{
									htmlcontent_text+=saparator+"<b> "+array_string[2]+"</b>";
									saparator=',  ';
								}

								if(array_string[3]!='NA' && array_string[3]!=undefined)
								{
									htmlcontent_text+=saparator+"<b> "+array_string[3]+"</b>";
									saparator=',  ';
								}

								if(array_string[4]!='NA' && array_string[4]!=undefined)
								{
									htmlcontent_text+=saparator+"<b> "+array_string[4]+"</b>";
									saparator=',  ';
								}

								htmlcontent+=htmlcontent_text;

								htmlcontent+="</td>";
								htmlcontent+="</tr> </table></center>";

								//alert(htmlcontent);
								if(htmlcontent_text!='')
								{
									document.getElementById('div_'+get_divid).innerHTML=htmlcontent;
								}
								else
								{
									document.getElementById('div_'+get_divid).innerHTML="<center><table width='99%' class='text' cellpadding='0' cellspacing='2' border='0'><tr><td align='center'><b>This lead could not be captured at this moment. Please try again later.</b></td></tr> </table></center>";
								}

							document.getElementById('captureimage_'+get_divid).innerHTML="<span style='color:#000000;'>&nbsp;Capture&nbsp;"+leadctr+"/"+total_cnt+"</span>";

								//formObj = eval('document.frm');
								for (var i=1;i < formObj.length;i++)
								{
									fldObj = formObj.elements[i];
									//alert(fldObj.name);
									if (fldObj.type=='checkbox' && fldObj.name=='id[]')
									{
										if(fldObj.value==get_divid)
										{
											fldObj.disabled=true;
										}
									}
								}
								mycounter++;
							}
						}
					}
					cal_array=array_string_all[0];
					array_string_leftpanel=cal_array.split('|#|');
					var mybalancelead = '';
					var mytotcapturelead = '';
					//alert("mytotcapturelead="+array_string_leftpanel[0]);
					//alert("mybalancelead="+array_string_leftpanel[1]);
					if(array_string_leftpanel[1]=='' || array_string_leftpanel[1]=='NA')
						mybalancelead=0;
					else if(array_string_leftpanel[1]!=undefined)
						mybalancelead=array_string_leftpanel[1];

					if(array_string_leftpanel[0]=='' || array_string_leftpanel[0]=='NA')
						mytotcapturelead=0;
					else if(array_string_leftpanel[0]!=undefined)
						mytotcapturelead=array_string_leftpanel[0];

					if(mybalancelead != '') {
						document.getElementById('balancelead').innerHTML=mybalancelead;
					}
					if(mytotcapturelead != '') {
						document.getElementById('totcapturelead').innerHTML="("+mytotcapturelead+")";
					}

					document.getElementById('newleads').innerHTML=parseInt(document.getElementById('newleads').innerHTML)+mycounter;

					message_success='';
					message_success="You have successfully captured "+mycounter+" lead(s). Buyer details have been displayed in green background.";

					if(alreadytaken_allmessage!='')
						message_display('',alreadytaken_allmessage);
					else if(counter_allmessage!='')
						message_display('',counter_allmessage);
					else if(htmlcontent_text!='')
						message_display_smily('',message_success);
				}
				else
				{
					obj.innerHTML ="<table border=0 align='center' cellpadding='0' cellspacing='0' width='80%'><tr><td align='center' valign='middle' class='text'><img src='http://img.mymsg.in/images/buyer-leads/buyer-process.gif'></td></tr></table>";
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}

	/**
	 * function purpose : If amount is not available then popup a message
	 *
	 * @author Mohammad
	 * @param  filename   $param1		serverPage : This is a php file which process and display the result.
	 * @param  div id  $param2			objID : This (div id) is used for display the resultant content.
	 * @return string  getid			getid : This is a table id used for making all div id unique like div_19
	 *
	 * @usage $var_name = function_name($param);
	*/
	function makeajaxrequest_buyerlead_nobalance(serverPage,objID,getid)
	{
		// This is the function to call with serverPage as the page to dynamically call and objId is the div id
		var obj = document.getElementById(objID);
		formObj = eval('document.frm');
		try
		{
			xmlhttp.open("GET",serverPage,true);
			xmlhttp.onreadystatechange = function()
			{
				if(xmlhttp.readyState==4)
				{
					obj.style.display='none';
					document.getElementById(objID).style.display='none';
					allmessage=xmlhttp.responseText;
					message_display_nobalance_close();
					
					var cla = 'dbuyerleadbutton';
					var myclass = new RegExp('\\b'+cla+'\\b');
					var elem = document.getElementsByTagName('*');
					for (var i = 0; i < elem.length; i++) {
						var classes = elem[i].className;
						if (myclass.test(classes)) {
							elem[i].style.display='none';
						}
					}
					var clb = 'buyerleadbutton';
					var myclass = new RegExp('\\b'+clb+'\\b');
					var elem = document.getElementsByTagName('*');
					for (var i = 0; i < elem.length; i++) {
						var classes = elem[i].className;
						if (myclass.test(classes)) {
							elem[i].style.display='';
						}
					}
				}
				else
				{
					obj.innerHTML ="<table border=0 align='center' cellpadding='0' cellspacing='0' width='80%'><tr><td align='center' valign='middle' class='text'><img src='http://img.mymsg.in/images/buyer-leads/buyer-leads2.gif'></td></tr></table>";
				}
			}
			xmlhttp.send(null);
		}
		catch(e)
		{
		}
	}

