function  setTitleScript(value)
{
	var title = value;
	var content = document.getElementById('RSJpagecontent');

	if(content != null)
	{	

		var heading = content.getElementsByTagName("h1")[0];
		if (heading != null)
		{
			str = new String(heading.innerHTML);
			var setTitle = 'true';

			if(str.length > 33)
			{
				if(str.substr(0,32) == '<DIV class=ms-formfieldcontainer')
				{
					setTitle = 'false';				
				}
			}

			if(setTitle == 'true')
			{
				var spacing = '';
				str = str.replace(/(&nbsp;)/g,'');
				
				str = str.replace(/^\s+|\s+$/g, '') 
				
				if(str != "")
				{
					spacing = ' - ';
				}
				
				title =  str +  spacing + title;
			}
		}		

	}
	else
	{
		content = document.getElementById('RSJtwocol');
		if(content != null)
		{
			heading = content.getElementsByTagName('h3')[0];
			if(heading != null)
			{				
				str = new String(heading.innerHTML);
				if(str.match('<SPAN>') != null && str.match('</SPAN>') != null)
				{				
					str = str.substr((str.indexOf('<SPAN>') + 6), (str.length-1));
					str = str.substr(0,str.indexOf('</SPAN>'));
				
					str = str.replace(/(&nbsp;)/g,'');
					title =  str +  ' - ' + title;
				}
			}	
		}

	}

	document.title = title;
}