function callbackImportYahoo(e) {
	if (e.length>0) {
		document.getElementById('import_yahoo_onemomentplease').style.visibility="hidden";
		document.getElementById('import_yahoo_onemomentplease').style.display = "none";
		document.getElementById('import_yahoo_success').style.visibility="visible";
		document.getElementById('import_yahoo_success').style.display = "inline";
	
	
		for (var i=0; i<e.length; i++) {
			//alert(e[i].firstChild.data);
			if (document.invite.email_friends.value == "") {
				prefix = "";
			} else {
				prefix = ", ";
			}
			document.invite.email_friends.value = document.invite.email_friends.value + prefix + e[i].firstChild.data;
		}
	
	}
}

function callbackImportYahooError(error) {

	if (error.length>0) {

		document.getElementById('import_yahoo_onemomentplease').style.visibility="hidden";
		document.getElementById('import_yahoo_onemomentplease').style.display = "none";
		document.getElementById('import_yahoo_form').style.visibility="visible";
		document.getElementById('import_yahoo_form').style.display="inline";
		document.getElementById('import_yahoo_error').style.visibility="visible";
		document.getElementById('import_yahoo_error').style.display="inline";

		
		
		for (var i=0; i<error.length; i++) {		
			//alert(error[i].firstChild.data);
			//seymt = document.getElementById('import_yahoo_onemomentplease')
			
			seymt = document.createTextNode(error[i].firstChild.data);
			
		}
		
		syem = document.getElementById('yahoo_error_msg');
		removeChildren(syem);
		syem.appendChild(seymt);
	}
}

function importYahoo(yid, ypwd) {
	
	document.getElementById('import_yahoo_intro').style.visibility="hidden";
	document.getElementById('import_yahoo_intro').style.display="none";
	document.getElementById('import_yahoo_form').style.visibility="hidden";
	document.getElementById('import_yahoo_form').style.display="none";
	document.getElementById('import_yahoo_error').style.visibility="hidden";
	document.getElementById('import_yahoo_error').style.display="none";
	document.getElementById('import_yahoo_onemomentplease').style.visibility="visible";
	document.getElementById('import_yahoo_onemomentplease').style.display = "inline";
	
	xmlreqPOST("inc/import_yahoo/ajax_import_yahoo.php", "login="+encodeURIComponent(yid)+"&password="+encodeURIComponent(ypwd)+"&random="+Math.round(999999*Math.random()));

}