function populatediv(urlval,divval) { try { var xmlhttp=false; var status=0; //CHECKING VALUE OF xmlhttp IS TRUE var str_temp = ''; str_temp = str_temp + '
Loading'; str_temp = str_temp + '
'; document.getElementById(divval).innerHTML = str_temp; xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP"); if (xmlhttp) { //checking the state of http object xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { if (xmlhttp.status==200) { document.getElementById(divval).innerHTML=xmlhttp.responseText; } else if (xmlhttp.status==404) status=0 else status=0 } } xmlhttp.open("GET",urlval,true); xmlhttp.send(null); } } catch (e) { xmlhttp = false; } } function populatedivnoL(urlval,divval) { try { var xmlhttp=false; var status=0; //CHECKING VALUE OF xmlhttp IS TRUE xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP"); if (xmlhttp) { //checking the state of http object xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { if (xmlhttp.status==200) { document.getElementById(divval).innerHTML=xmlhttp.responseText; } else if (xmlhttp.status==404) status=0 else status=0 } } xmlhttp.open("GET",urlval,true); xmlhttp.send(null); } } catch (e) { xmlhttp = false; } }