
function RemoveWatching1(maxNum){for(z=0;z<maxNum;z++){var option=document.getElementById('CheckOption'+z).value;if(option>0&&document.getElementById('CheckOption'+z).checked==true){loadHTML3('mbitemwatch.php?option=delete&aid='+option+'&close=true','','noLoad');Loading("WatchingLayer","Removing Watched Lot from List...");}}}
function RemoveWatching2(lotno,thisID){if(confirm("Would you like to remove Lot "+lotno+" from your 'Watch List'?")){loadHTML4('mbitemwatch.php?option=delete&aid='+thisID+'&close=true','','noLoad');Loading("WatchingLayer","Removing Watched Lot from List...");}}
function Loading(DivID,message)
{document.getElementById(DivID).innerHTML="<font color=\"RED\"><b>"+message+"<\/b>";}
function processStateChange3(){if(request.readyState==4){contentDiv=document.getElementById(dest);if(request.status==200){response=request.responseText;contentDiv.innerHTML=response;}else{contentDiv.innerHTML="Error: Status "+request.status;}}}
function loadHTML3(URL,destination1,load){dest=destination1;if(window.XMLHttpRequest){request=new XMLHttpRequest();request.onreadystatechange=processStateChange3;request.open("POST",URL,true);request.send(null);}else if(window.ActiveXObject){request=new ActiveXObject("Microsoft.XMLHTTP");if(request){request.onreadystatechange=processStateChange3;request.open("POST",URL,true);request.send();}}
if(load!="noLoad")
getWatching1();}
function loadHTML4(URL){if(window.XMLHttpRequest){request=new XMLHttpRequest();request.open("POST",URL,true);request.send(null);}else if(window.ActiveXObject){request=new ActiveXObject("Microsoft.XMLHTTP");if(request){request.open("POST",URL,true);request.send();}}}
function aVoid()
{}