 function makeRequest4(url,obj)
	{  
		 showobj2=obj;
		/*$(function() {
			$('#'+showobj2).fadeOut("slow"); 
		 });*/
		var http_request = false;
		if (window.XMLHttpRequest) 
		{ // Mozilla, Safari, ...
		  http_request = new XMLHttpRequest();
			if (http_request.overrideMimeType) 
			{
				http_request.overrideMimeType('text/xml');
				// See note below about this line
			}
		} 
	
		else if (window.ActiveXObject) 
		{ // IE
			try 
			{
				http_request = new ActiveXObject("Msxml2.XMLHTTP");
			} 
	
			catch (e) 
			{
				try 
				{
					http_request = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e) {}
			}
		}
	
		if (!http_request) 
		{
			alert('Giving up :( Cannot create an XMLHTTP instance');
			return false;
		}
	
		http_request.onreadystatechange = function() { alertContents4(http_request,obj); };
		http_request.open('GET', url, true);
		http_request.send(null);
	}



	function alertContents4(http_request,obj) 	
	{
		if (http_request.readyState == 4) 
		{
			if (http_request.status == 200) 
			{	/* $(function() {
							$('#'+showobj2).fadeIn("slow"); 
						 });*/
				document.getElementById(obj).innerHTML = http_request.responseText;
			}
			else 
			{
				alert('There was a problem with the request.');
			}
		}
	}
	
	
//--------------------------------------------------------------
 // -----
//--------------------------------------------------------------
function submitProspectForm()
{
	 document.prospectForm.submit();
}

function share_this_div_show()
{
   $("#share_this_div").css("display","block");
	window.scrollTo(100,250);
}


function clearSearch(myform)
{   
   
    document.getElementById('search').value='';
	document.myform.submit();

}

function previousFunc(pageNo,sevayId)
{     

   
  pageNumber=Number(pageNo)-1;
   if(pageNumber<1)
	{
		return false;
	}else{
	    
		window.location=RU+"member/Display/"+sevayId+"/"+pageNumber;
	
	}
}




function ContentHome(id , page)
{
	    $('#replace_page').fadeOut(300);
		var myRandom = parseInt(Math.random()*99999999);
		url =RU+"ajax_php/pages.php?id="+encodeURI(id)+"&rand="+myRandom+"&type="+page;
		makeRequest4(url,'replace_page'); 
		$('#replace_page').fadeIn('slow');
		
}
	
function AlertFunc()
{


 alert("Please complete the signup below to access your members area");
  
}	
	/*var actuallysubmitted=false;
function unloadCheck()
{
	if(actuallysubmitted){
	return 'We will remember your details so you can finish adding your business later.';	}
}
*/
	
	
/*function passFunc() 
{
	
	
   document.getElementById('password').value='';
	input = document.getElementById('password');
	//alert(input.type);
    input.setAttribute('type','password');  
	
}
function cpassFunc() 
{
	
	
   document.getElementById('cpassword').value='';
	input = document.getElementById('cpassword');
	//alert(input.type);
    input.setAttribute('type','password');  
	
}*/
	
	
