function insertDisclaimer()
{
	var disclaimerText = 'This site is designed to work with certain browser versions as detailed below.  It has been detected that you are not using a compatible browser and therefore this site may not work properly.  It is highly recommended that you upgrade to a compatible browser before accessing this site. <br><br> In order to ensure we can provide you with our research we have designed a "Browser Compatibility" site that provides very limited functionality to Internet Explorer V4 and Netscape version 4.7. When logging in you will be taken to this site and not the full Research Desktop site. Please note that automatic browser detection is not 100% accurate and therefore a tick box is provided below for you to force the login process to load the full Research Desktop site. If you are sure you have a compatible browser please click on the below tick box (remove the tick) and continue with the login process as normal.';
	var tickbox = '<br><br><input type="checkbox" name="basicDesktopSite" value="true" checked="true">  Load "Browser Compatibility" site'

	document.write(disclaimerText);
	document.write(tickbox);
}

function insertContactLink(){
	if (is.ie4 || is.ns4){
		document.location.href = '/ing/login.asp?eventID=getPubContactUsPage&basicPubResearch=Yes'
	}
	else{
		document.location.href = '/ing/login.asp?eventID=getPubContactUsPage'
	}
}

function insertDisclaimerLink(){
	if (is.ie4 || is.ns4 ){
		document.location.href = '/ing/login.asp?eventID=getBasicPubDisclaimerPage'
	}
	else{
		document.location.href = '/ing/login.asp?eventID=getPubDisclaimerPage'
	}
}

function insertPoliciesLink(){
	if (is.ie4 || is.ns4 ){
		document.location.href = '/ing/login.asp?eventID=getPubPoliciesPag'
	}
	else{
		document.location.href = '/ing/login.asp?eventID=getPubPoliciesPage'
	}
}

function insertDisclosuresLink(){
	if (is.ie4 || is.ns4 ){
		document.location.href = '/ing/login.asp?eventID=getPubDisclosuresPag'
	}
	else{
		document.location.href = '/ing/login.asp?eventID=getPubDisclosuresPage'
	}	
}

//insert ccs
function mx_insertStyleSheet(baseURL){	
	document.write('<link rel="stylesheet" type="text/css" href="' + baseURL + '/ing.css"/>');
}

//insert different ccs if the third level nav if screen res is lower than 800x600
function mx_insertStyleSheetByScreenRes(baseURL){	
	if ( window.screen.height <= 600 ){
		document.write('<link rel="stylesheet" type="text/css" href="' + baseURL + '/ingMenu86.css"/>');
	} else {
		document.write('<link rel="stylesheet" type="text/css" href="' + baseURL + '/ingMenu.css"/>');
	}
}

function writeIframeData(dataMode)
{
	var element = parent.document.getElementById("iframe_" + dataMode + "_holder");
	if(element)
	{
		//var newDiv = parent.document.createElement("div");
		//newDiv.innerHTML = document.body.firstChild.innerHTML;
		//element.style.display = "none";
		////element.insertAdjacentElement("beforeBegin", newDiv);
		//element.parentElement.appendChild(newDiv);
		element.style.display = "none";
		element.insertAdjacentElement("beforeBegin", document.body.firstChild);
	}
}