function getxmlHttp()
 {
  var xmlHttp;
  try
    {
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }

    return(xmlHttp);
 }
function getPage(str,str1)
 {
 var url=str;
 var element=str1;
 var xmlHttp;
 document.getElementById(str1).innerHTML="<div class='text1'>Loading...</div>";
xmlHttp=getxmlHttp();
          xmlHttp.onreadystatechange=function()
            { 
             if(xmlHttp.readyState==4)
               {
              document.getElementById(str1).innerHTML=xmlHttp.responseText;
               }
              
           }   
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
    
 }
    
	
	
function  ChangeTab(pageid)
 {
  
  if(pageid=="1")
   {
     alert("Haris");
    document.getElementById('holder').src="mystory.html";
	alert("Haris PP"); 
    }
  
 // if(id=="compose")
 // {
//    document.getElementById('ifm').src="SendSms.jsp?custid="+custid+"&random="+rand_no;
 //  document.getElementById('general').className="newsrch";
//    document.getElementById('compose').className="tabchkmail";
//    document.getElementById('group').className="newsrch";
 //   document.getElementById('contact').className="newsrch";
 //   document.getElementById('sent').className="newsrch";
  // }
}
 