
function tellAFriend( baseDir, prid )
{
	if( undefined == prid )
		prid = "";
	else
		prid = "?prid="+prid;
		
var initHTML = 
'<html>'+
'	<head>'+
'		<script>'+
'function Init(){'+
'	if (window.XMLHttpRequest)'+
'		xhr = new XMLHttpRequest();'+
'	else if (window.ActiveXObject)'+
'		xhr = new ActiveXObject("Microsoft.XMLHTTP");'+
'		'+
'	xhr.onreadystatechange = function(){'+
'		if( 4 == xhr.readyState ){'+
'			document.write(xhr.responseText);'+
'			document.close();'+
'		};'+
'	};'+
'		'+
'	xhr.open("GET", "http://'+baseDir+'tellafriend.php'+prid+'", true); '+                 
'	xhr.send(null); 	'+	
'}'+
'		</script>'+
'	</head>'+
'	<body onload="Init()">'+
'		<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">'+
'		  <tr>'+
'			<td align="center" valign="middle"><img src="http://'+baseDir+'images/lding.gif"/></td>'+
'		  </tr>'+
'		</table>'+
'	</body>'+
'</html>';	

	popWnd = window.open('about:blank','mywindow','scrollbars=1,width=300,height=400,left=100,top=100;');
	popWnd.document.writeln(initHTML);
	popWnd.document.close();
	
	return false;
}