﻿function setupMetaDescr(val)
{
	// 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
		//document.write (name + " = " + content + "");
				// Update the Title meta tag
		if (metatags [cnt].getAttribute ("name") == "Description") {			
		metatags [cnt].setAttribute ("content", val);
	}

	}
}

function setupMetaKey (val)
{
	// 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
	if (metatags [cnt].getAttribute ("name") == "Keywords"){
	metatags [cnt].setAttribute ("content", val);
	}

	}
}
