﻿function changeskin()
{
	name = window.location.href; 
	name = name.toLowerCase();
	var a = name.substring(0, name.indexOf('content'));
	var b = "\index_CSH.htm#";
	var c = name.substring(name.indexOf('content') + 8);
	var d = "\|default";
	window.name = null;
	parent.location.href = a + b + c + d;
}

function mailpage(name)
{
	// get location of the document

	// Make sure title is OK
	var theTitle = (document.title) ? "\"" + document.title + "\"" :  " this";
	var mail_str = "?subject=For your review: "
		+ encodeURIComponent(theTitle)
		+ "&body="
		+ encodeURIComponent("I thought you might be interested in the following Technical Support article: ")
		+ encodeURIComponent("\n \n")
		+ encodeURIComponent("Article Title: ")
		+ encodeURIComponent(theTitle)
		+ encodeURIComponent("\n \n")
		+ encodeURIComponent("You can view it at: ")
		+ encodeURIComponent(name.substring(0,name.lastIndexOf('.htm') + 4));
	var mailstring = document.getElementById('mailthis').href;
	document.getElementById('mailthis').href = "mailto:" + mail_str
	return false;
}