// JavaScript Document
function shareOnFacebook(U, T)
{
	//alert( U );
	//window.open('http://ww.google.com'+blank,'mywin','left=20,top=20,width=500,height=500,toolbar=1,resizable=0');
	var targetUrl = 'http://www.facebook.com/share.php?u=' + encodeURIComponent(U) + '&t=' + encodeURIComponent(T);
	window.open(targetUrl);
}

function shareOnMySpace(T, C, U, L)
{
    var targetUrl = 'http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + encodeURIComponent(T)
    + '&c=' + encodeURIComponent(C) + '&u=' + encodeURIComponent(U) + '&l=' + L;
    window.open(targetUrl);
}



function getFacebook(U, T)
{
	var targetUrl = 'http://www.facebook.com/share.php?u=' + encodeURIComponent(U) + '&t=' + encodeURIComponent(T);
	
	return targetUrl;
}

function getOnMySpace(T, C, U, L)
{
    var targetUrl = 'http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + encodeURIComponent(T)
    + '&c=' + encodeURIComponent(C) + '&u=' + encodeURIComponent(U) + '&l=' + L;
    
	return targetUrl;
}

var jsReady = false;
function pageInit()
{
	//alert( 'pageInit' );
	jsReady = true;
}

function isReady()
{
	return jsReady;
}