var currentUrl=location.href;
var BookmarkURL=location.href;
var BookmarkTitle=document.title;  
function bookMark(){
if (document.all)
window.external.AddFavorite(BookmarkURL,BookmarkTitle)
else
window.sidebar.addPanel(BookmarkTitle, BookmarkURL,""); 
}
/*************TEST IF AJAX WORKS************/
function getXhttp ( ){
	var ajax_request;
	if(window.ActiveXObject){
		var mSoftVersions = [
		'MSXML2.DOMDocument.5.0',
		'MSXML2.DOMDocument.4.0',
		'MSXML2.DOMDocument.3.0',
		'MSXML2.DOMDocument.2.0',
		'MSXML2.DOMDocument',
		'Microsoft.XmlDom',
		'Msxml2.XMLHTTP',
		'Microsoft.XMLHTTP'];
		for(i=0;i<mSoftVersions.length;i++){
			try {
			ajax_request = new ActiveXObject (mSoftVersions[i]);
			}
			catch (e){
			}
		}
	}
	else if(!ajax_request && typeof XMLHttpRequest!='undefined'){
		try {
		ajax_request = new XMLHttpRequest;
		}
		catch (e){
		}
	}
	else if(!ajax_request && window.createRequest){
		try {
		ajax_request = window.createRequest;
		}
		catch (e){
		}
	}
	else{
		ajax_request = false;
	}
	return ajax_request;
}
function updateProxies(){
	var updatexml=getXhttp( );
	if ( !updatexml )
       alert("error"); //Usually you alert something but I don't :d
	updatexml.onreadystatechange=function(){
		if(updatexml.readyState==4){
			if(updatexml.responseText=="success"){
				updateProxies();
			}
		}
	}
	updatexml.open('GET','update.php',true);
	updatexml.send(null);
}

