function update_meta_tags(tag_name, tag_content) {
	// First, get the array of meta-tag elements
    metatags = document.getElementsByTagName("meta");

    // Iterate through the array, listing them all
    // Update only the Title meta tag
    for (cnt = 0; cnt < metatags.length; cnt++)
    {
        var name = metatags[cnt].getAttribute("name");
        var content = metatags[cnt].getAttribute("content");

        // List the original meta tag name=content
        //alert(name + " = " + content + "");

        // Update the Title meta tag
        if (metatags[cnt].getAttribute("name") == tag_name)
              metatags[cnt].setAttribute("content", tag_content);

    }
} // function update_meta_tags(tag_name, tag_content)



function fbs_click(u, t, d) {
	//u=location.href;
	update_meta_tags("Title", t);
	t=document.title;
	update_meta_tags("Description",d);
	d=document.description;
	
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function GetThis(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 GetCellContent(tdid) {
	var tdvar = document.getElementById(tdid)
	alert(tdvar.innerHTML);
	return tdvar.innerHTML;
}

