








//##################################################################################################################
//## Global attributes & login functions
//##################################################################################################################

var marketingServicesURL = '/412568B30049A81F/alldocs/DOCdemo_intro';

function insertMarketingServicesMenu() {
	
		//##################################################################################################################
		//## marketingServices Menu
		//##################################################################################################################

		document.writeln(marketingServicesATag('<img src="/412568AF004881F2/alldocs/DOCURAN-6TJGT9/$File/demo_small.gif">'));
	
	document.close();
}

function marketingServicesATag(linkText) {
	return '<a href="' + marketingServicesURL + '?OpenDocument" onclick="disableLinksAndInvoke(this)">' + linkText + '</a>';
}

//##################################################################################################################
//## General functions
//##################################################################################################################

function secureUrl(url) {
	//<protocol>//<host>[:<port>]/<pathname>[<hash>][<search>] 
	if (document.location.protocol != 'HTTPS:') {
		return ('HTTPS://' + document.location.host + url);
	}
	else {
		return (url);
	}
}
