
function bookmark(url,title) {
if (window.sidebar) {
window.sidebar.addPanel(title, url,"");
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}



var http = createRequestObject();
function createRequestObject() {
	var xmlhttp;
	try { xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); }
	catch(e) {
		try { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
		catch(f) { xmlhttp=null; }
	}
	if(!xmlhttp&&typeof XMLHttpRequest!="undefined") {
		xmlhttp=new XMLHttpRequest();
	}
	return  xmlhttp;
}
function doCheck() {
	full_nick = encodeURIComponent(document.getElementById("full_nick").value);
	if (full_nick == '' || full_nick == 'Enter%20Yahoo%20ID') {
		document.getElementById("result").innerHTML="Please enter Yahoo! ID";
	}
	else {
		http.open('POST',  'check2.php');
		document.getElementById("result").innerHTML="<div align='center'>This may take a few seconds. Please wait.<br><img src='images/loading.gif'></div>";
		http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		http.onreadystatechange = handleResponse;
		http.send('full_nick='+full_nick);
	}
	return false;
}
function handleResponse() {
	try {
		if((http.readyState == 4)&&(http.status == 200)){
			response = http.responseText;
			
			document.getElementById('result').innerHTML = '<div class="avatorbg"><div class="avator"><img src="http://img.msg.yahoo.com/avatar.php?yids='+full_nick+'&format=png" alt="Avatar" /></div></div><div class="resdetailres">'+full_nick+' is <span class="status">'+response+'</span></div>';
		}
  	}
	catch(e){}
	finally{}
}