// show DHTML pop-up box
function GoToURL(URL,target,objId) {
	if(target=="new"){
	window.open(URL);
	}
	else {
	window.location = URL;
	}
	closeBox(objId);
}

function displayInfo(boxType,URL,target,objId) {
	var obj = document.getElementById(objId);
	obj.className = "discBox";
	var tmpStr = "";
	tmpStr += "<div class=\"disclaimBox\">\n";
	if (boxType == "offSite") 
	{
		tmpStr += "You are leaving NameMedia, Inc.'s corporate website. You may return to the NameMedia corporate website by closing the window to the third-party website that you have opened. Do you wish to continue?\n";
		tmpStr += "<p class=\"close\"><a href=\"javas" + "cript:GoToURL('" + URL + "', '" + target + "', '" + objId + "')\" class=\"close\">Yes</a> &nbsp; | &nbsp; <a href=\"javas" + "cript:closeBox('" + objId + "')\" class=\"close\">No</a></p>\n";
	} else if (boxType == "oldNews") 
		{
			tmpStr += "The press releases contained in this archive are provided for historical purposes only. The information contained in each press release is accurate only as of the date each press release was originally issued. NameMedia, Inc. disavows any obligation to update the information contained in such press releases after the date of their issuance.\n";
			tmpStr += "<p class=\"close\"><a href=\"javas" + "cript:GoToURL('" + URL + "', '" + target + "', '" + objId + "')\" class=\"close\">Proceed</a> &nbsp; | &nbsp; <a href=\"javas" + "cript:closeBox('" + objId + "')\" class=\"close\">Cancel</a></p>\n";
		}
		else if (boxType == "industryNews")
			{
			tmpStr += "You have selected a link to articles written and published by persons not affiliated with NameMedia, Inc. The views expressed in the articles are those of the authors and do not reflect the views of NameMedia. Additionally, the information contained in these articles may not be current. NameMedia disavows any obligation to correct or to update the information contained in these articles.\n";
			tmpStr += "<p class=\"close\"><a href=\"javas" + "cript:GoToURL('" + URL + "', '" + target + "', '" + objId + "')\" class=\"close\">Proceed</a> &nbsp; | &nbsp; <a href=\"javas" + "cript:closeBox('" + objId + "')\" class=\"close\">Cancel</a></p>\n";
		}
		else if (boxType == "offSiteNews")
			{
			tmpStr += "You have selected a link to an article written and published by persons not affiliated with NameMedia, Inc., and not appearing on NameMedia's website. The views expressed in the article are those of the author and do not reflect the views of NameMedia. You may return to the NameMedia website by closing the window to the third-party website that you have opened. Do you wish to continue?\n";
			tmpStr += "<p class=\"close\"><a href=\"javas" + "cript:GoToURL('" + URL + "', '" + target + "', '" + objId + "')\" class=\"close\">Yes</a> &nbsp; | &nbsp; <a href=\"javas" + "cript:closeBox('" + objId + "')\" class=\"close\">No</a></p>\n";
		}	
	tmpStr += "</div>";
	//obj.innerHTML = '';
	obj.innerHTML = tmpStr;
}


// hide DHTML pop-up box
function closeBox(objId) {
	var obj = document.getElementById(objId);
	obj.innerHTML = "";
	obj.className = "hidden";
}