function setMetatagDescriptionInForm( formName, fieldName )
{
	var node;
	var pos = 0;
	var pos2 = 0;
	var documentHead = document.getElementsByTagName("head").item( 0 );
	node = documentHead.childNodes[ pos ];
	
	var nameOfHeadNode;
	var attribute;
	
	while( node != null && node != "undefined" )
	{
		var nameOfHeadNode = node.nodeName;
		if ( nameOfHeadNode != null && ( nameOfHeadNode == "META" || nameOfHeadNode == "meta" ) )
		{	
			attribute = node.getAttribute( "name" );
			if ( attribute == "DESCRIPTION" || attribute == "description" )
			{
				attributeData = node.getAttribute("CONTENT" );
				document.forms[ formName ][ fieldName ].value = attributeData;
			}
		}
		pos ++;
		node = documentHead.childNodes[ pos ];
	}
}

function setTitleInForm( formName, fieldName )
{
	document.forms[ formName ][ fieldName ].value = document.title;
}