var statusm;
function closediv(){
/*				alert("REMOVING CHILD");
*/			document.body.removeChild(document.body.lastChild);
			statusm =0;
		     }
function mentorindia_redirect(){
/*	alert();
*/	

xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
			  {
			  alert ("Your browser does not support XMLHTTP!");
			  return;
			  }
 else         {
	          
				
				var url="mentorindia_redirect_window.php";
				
			    xmlhttp.open("GET",url,true);
				xmlhttp.onreadystatechange=stateChanged;
				
				xmlhttp.send(null);
			}

function stateChanged()
{
if (xmlhttp.readyState==4)
		  {
			  
			  
			  
			  
			  
	if (statusm==1){
	        
/*				alert("inside if");
*/			<!--document.body.removeChild(document.body.lastChild);-->
			<!--alert(div_id);-->
			document.getElementById(div_id).removeChild(document.getElementById(div_id).lastChild);
		
			statusm=0;
			
			
	       }//if status==1
   else{
/*			alert("inside else");
*/				var divaTag = document.createElement("div");
			   
				divaTag.id = "div_conv";
			   
				divaTag.setAttribute("align","left");
			   
				divaTag.style.margin = "0px auto";
			   
				divaTag.className ="div_box";
			
								
				
				
				document.body.appendChild(divaTag);
				statusm=1;
/*				alert(statusm)
*/				
		
			}//else
		
			  
			  
			  
			  
			  
			  
			  
			  
			  
		  document.getElementById('div_conv').innerHTML = xmlhttp.responseText;

		  }
}

function GetXmlHttpObject()
{
		if (window.XMLHttpRequest)
		  {
		  // code for IE7+, Firefox, Chrome, Opera, Safari
		  return new XMLHttpRequest();
		  }
		if (window.ActiveXObject)
		  {
		  // code for IE6, IE5
		  return new ActiveXObject("Microsoft.XMLHTTP");
		  }
		return null;
}


	
}