function InitAjax()
{
var ajax=false; 
try { 
ajax = new ActiveXObject("Msxml2.XMLHTTP"); 
} catch (e) { 
try { 
ajax = new ActiveXObject("Microsoft.XMLHTTP"); 
} catch (E) { 
ajax = false; 
} 
}
if (!ajax && typeof XMLHttpRequest!='undefined') { 
ajax = new XMLHttpRequest(); 
} 
return ajax;
} 

function openhtml(str,pp,divname){
var ajax = InitAjax();
var url=str;
var postStr="aa=&" + pp ;
  ajax.open("POST", url, true); 
  ajax.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  ajax.send(postStr);
  ajax.onreadystatechange = function() { 
   if (ajax.readyState == 4 && ajax.status == 200) { 
   document.getElementById(divname).innerHTML=ajax.responseText ;
 
	}
}


}

// show or hidden field description
function showdesc(str,b){
//alert(document.getElementById(str+"desc").display);
 document.getElementById(str+"desc").style.display=b;
 //alert(str);
 }

 