function unsubscribe(email)
{
	
	if(email != '')
	{
	
	var check_c_status_object ;
	try
	{	
		check_c_status_object = new XMLHttpRequest();
	}
	catch(e)
	{
		try
		{
			check_c_status_object = new ActiveXObject("Msxml2.XMLHTTP");	
			
		}
		catch (e)
		{
			try
			{
				check_c_status_object = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert('Not Supporting in ie');
				return false;
			}
		}
	}

	check_c_status_object.onreadystatechange = function(){
		if(check_c_status_object.readyState == 4)
		{
			var valid = check_c_status_object.responseText;
			document.getElementById('unsub').style.display="inline";
			document.getElementById("unsub").innerHTML=valid;
					
		}
	} 
		var url="unsubscribe.php?email="+email;
			url=url+"&sid="+Math.random();

		check_c_status_object.open("GET", url, true);
		check_c_status_object.send(null); 
	}
}
