function makeRequest(div,url,parameters,truelink){var truelink=(truelink==null)? true : false;scroll(0,0);xmlHttpReq=false;if(window.XMLHttpRequest){xmlHttpReq=new XMLHttpRequest();if(xmlHttpReq.overrideMimeType){xmlHttpReq.overrideMimeType('text/html');}
}else if(window.ActiveXObject){try{xmlHttpReq=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlHttpReq=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
if(!xmlHttpReq){alert('Cannot create XMLHTTP instance');return false;}
xmlHttpReq.open('POST',url+parameters,true);xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlHttpReq.send(null);xmlHttpReq.onreadystatechange=function(){if(xmlHttpReq.readyState==4){document.getElementById(div).innerHTML=xmlHttpReq.responseText;}}
if(truelink==false){return false;}}
function get(div,url,obj){var getstr="";var children=obj.getElementsByTagName('input');var children2=obj.getElementsByTagName('select');var children3=obj.getElementsByTagName('textarea');for(w=0;w<children3.length;w++){getstr+=children3[w].name+"="+encodeURI(children3[w].value)+"&";}
for(q=0;q<children2.length;q++){var sel=children2[q];getstr+=sel.name+"="+sel.options[sel.selectedIndex].value+"&";}
for(i=0;i<children.length;i++){if(children[i].type=="checkbox"){if(children[i].checked){getstr+=children[i].name+"="+encodeURI(children[i].value)+"&";}else{getstr+=children[i].name+"=&";}}
else if(children[i].type=="radio"){if(children[i].checked){getstr+=children[i].name+"="+encodeURI(children[i].value)+"&";}}
else{getstr+=children[i].name+"="+encodeURI(children[i].value)+"&";}}
makePost(div,url,getstr);}
function makePost(div,url,parameters){scroll(0,0);xmlHttpReq=false;if(window.XMLHttpRequest){xmlHttpReq=new XMLHttpRequest();if(xmlHttpReq.overrideMimeType){xmlHttpReq.overrideMimeType('text/html');}
}else if(window.ActiveXObject){try{xmlHttpReq=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlHttpReq=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
if(!xmlHttpReq){alert('Cannot create XMLHTTP instance');return false;}
xmlHttpReq.open('POST',url,true);xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlHttpReq.send(parameters);xmlHttpReq.onreadystatechange=function(){if(xmlHttpReq.readyState==4){document.getElementById(div).innerHTML=xmlHttpReq.responseText;}}}
