
	/*
	 *	Javascript utilities library for GTTB
	 *	
	 *
	 */
	 
	 // set the content of a div...
	 function SetDivContent( sDivId, htmlContent )
	 {
	 	var divToWrite = document.getElementById( sDivId );
	 	divToWrite.innerHTML = htmlContent;
	 }
	 
	 // add to the content of the div
	 function addDivContent( sDivId, htmlContent ) 
	 {
	 	var divToAdd = document.getElementById( sDivId );
	 	divToAdd.innerHTML += htmlContent;
	 }
	 
	 // remove a div by id...
	 function RemoveNode( sNode )
	 {
	 	try {
			var oParent = document.getElementById( sNode ).parentNode;
			var oChild = document.getElementById( sNode );
			//oChild.innerHTML = "";
			//alert("We should be removing " + sNode + " from " + oParent);
			//alert("here is the HTML: " + oChild.innerHTML );
			oParent.removeChild( oChild );
	 	} catch( err ) {  }
	 }
	 
	 function RemoveElement( sParent, sNode ) 
	 {
	 	try {
	 		var parentDiv = document.getElementById( sParent );
	 		var childDiv = document.getElementById( sNode );
	 		parentDiv.removeChild( childDiv );
	 		return( true );
	 	} catch( err ) {
	 		return( false );
	 	}
	 }
	 
	 function addYuiButton( divId, sLabel, action, argument ) {
		// default the argument to the function...
		argument || ( argument = null );
		action || ( action = null );
		var oButton = new YAHOO.widget.Button( divId, { label: sLabel } );
		if ( argument && action ) {
			// alert("arg: " + argument.id);
			// oButton.addListener("click", action, eval('(' + argument + ')') );
			oButton.addListener("click", action, eval('("' + argument.id + '")') );
		} else if ( action ) {
			oButton.addListener("click", action );
		} else {
			// do nothing...
		}
	}
	
	function clearBackground( e ) {
		e.target.style.background = "white";
	}
	
	/*
	 *
	 * Check the string for basic functionality
	 * ---------------------------------------------------------------------------------------------
	 */
	function checkStr( str ) {
		if ( str.length == 0 ) return false;
		
		return true;
	}
	
	/*
	 *
	 * Check the title
	 * ---------------------------------------------------------------------------------------------
	 */
	function checkTitle( str ) {
	
	 	if ( checkStr( str.value ) ) { 
	 		return true; 
	 	} else {
	 		return false;
	 	}
	
	}
	
	// save the editor content...
	function SaveEditorContent( ) {
		myEditor.saveHTML(); /* global variable myEditor which is the YUI RTE */
		return( myEditor.get('element').value );
	}
	
	 // historical function....  should be removed
	 // -------------------------------------------
	 function setMainContent( sText ) {
	 	SetDivContent( "gttb_content", sText );
	 }
	 
	 function InsertIntoForm( sText ) {
	 	if ( document.getElementById("deleteImage") ) { return; }
	 	RemoveElement("gttb_main_user_content", "gttb_main_user_form");
	 	var formEl = document.getElementById("gttb_main_user_content");
	 	var divEl = document.createElement("div");
	 	divEl.innerHTML = sText;
	 	divEl.setAttribute("id","imageList");
	 	divEl.setAttribute("name","imageList");
	 	formEl.appendChild( divEl );
	 }
	 // ------------------------------------------
	 
	 // add an input
	 function AddInput( divParent, id, name, type, size )
	 {
	 	if ( document.getElementById( id ) ) {
	 		return; // don't add a redundant input field 
	 	}
	 	var inputField = document.createElement("input");
	 	inputField.setAttribute("type",type);
	 	inputField.setAttribute("id", id );
	 	inputField.setAttribute("name", name );
	 	inputField.setAttribute("size", size );
	 	divParent.appendChild( inputField );
	 }
	 
	 // create a list of file inputs for supporting files
	 function CreateFileInputs( divParentId, numberInputs ) {
	 	var divParent = document.getElementById( divParentId );
	 	for ( var i = 0; i < 25; i++ ) {
	 		var sName = eval('"file_' + i + '"');
	 		if ( i < numberInputs ) {
	 			AddInput( divParent, sName, sName, "file", 50 ); 
	 		} else {
	 			RemoveNode( sName );
	 		}
	 	}
	 	
	 }
	 
	 // open the YUI RTE 
	 function OpenEditor() {
		
		RemoveElement("gttb_content","articleUploadType");
		RemoveNode("articleUploadForm");
		
		editorOpen = true;
		if ( document.getElementById("gttb_editor_content_to_load") ) {
			var htmlCode = document.getElementById("gttb_editor_content_to_load").innerHTML;
		} else if ( editorContent ) {
			var htmlCode = editorContent;
			editorContent = null;
		} else {
			var htmlCode = "";
		}
		
		if ( htmlCode ) myEditor.setEditorHTML( htmlCode );
		myEditor.toolbar.collapse( false ); /* Close the toolbar for IE */
		Dom.setStyle('gttb_editor_container', 'position', 'static');
		Dom.setStyle('gttb_editor_container', 'top', '');
		Dom.setStyle('gttb_editor_container', 'left', '');
		//Dom.setStyle('editable', 'display', 'none');
		myEditor._focusWindow();	
		}
			
	/*
	 *	
	 * ---------------------------------------------------------------------------------------------
	 */
	function WriteArticleForm( username, editorOpen, getData ) {
	
		var content = '<table>';
		content += '<tr><td colspan="2">&nbsp</td></tr>';
		content += '<tr><td>Title</td><td><input size="60" type="text" id="title" name="title" onkeypress="clearBackground(event);"></td></tr>';
		content += '<tr><td>Authors</td><td><input size="60" type="text" id="authors" name="authors" value="' + username + '" onkeypress="clearBackground(event);"><input type="button" id="add-author" name="add-author" onclick="GetUsersList();" value="Add An Author"/></td></tr>';
		content += '<tr><td>Keywords</td><td><input size="60" type="text" id="keywords" name="keywords" onkeypress="clearBackground(event);"></td></tr>';
		content += '<tr><td>Please Choose A Subject</td><td><div id="subjectsfromjs" name="subjectsfromjs"></div><div id="custom-one" name="custom-one" style="display: inline;"></div></td></tr>';
		content += '<tr><td>A Second Subject</td><td><div id="secondSubjectContainer" name="secondSubjectContainer"></div><div id="custom-two" name="custom-two" style="display: inline;"></div></td></tr>';
		content += '<input type="hidden" name="selectedSubject" id="selectedSubject" value="Subjects"/>';
		content += '<input type="hidden" name="secondSubject" id="secondSubject" value="Second Subject"/>';
		if ( !editorOpen ) {
			// add the html code to allow uploading of a file... 
			content += '<tr><td>HTML File</td><td><input type="file" name="htmlFile" id="htmlFile" size="50" /></td></tr>';
			content += '<tr><td>Number Of Supporting Files</td><td><select id="numFiles" name="numFiles" onchange="CreateFileInputs( \'formInputs\', this.value );"><option value="0">None</option>';
			content += '<option value="1">One</option><option value="2">Two</option><option value="3">Three</option><option value="4">Four</option>';
			content += '<option value="5">Five</option><option value="6">Six</option><option value="7">Seven</option><option value="8">Eight</option>';
			content += '<option value="9">Nine</option><option value="10">Ten</option><option value="11">Eleven</option><option value="12">Twelve</option>';
			content += '<option value="13">Thirteen</option><option value="14">Fourteen</option><option value="15">Fifteen</option><option value="16">';
			content += 'Sixteen</option><option value="17">Seventeen</option><option value="18">Eighteen</option><option value="19">Nineteen</option>';
			content += '<option value="20">Twenty</option><option value="21">Twenty One</option><option value="22">Twenty Two</option><option value="23">';
			content += 'Twenty Three</option><option value="24">Twenty Four</option><option value="25">Twenty Five</option>';
			content += '</select></td></tr>';
		}
		content += '<tr><td>Anything for the reader to Download?</td><td><input type="file" size="50" name="attachment" id="attachment"></td></tr>';
		content += '<tr><td>&nbsp</td><td><input type="checkbox" id="draft" name="draft"/>&nbsp Is this a draft to save for later?</td></tr>';
		content += '<tr><td colspan="2">&nbsp</td></tr>';
		content += '</table>';
		if ( !editorOpen ) {
			content += '<input type="hidden" name="uploadtype" id="uploadtype" value="files"/>';
			content += '<div id="formInputs" name="formInputs" style="margin-left: 175px;"></div><br/>';
			content += "<div style=\"display: block; margin-left: 250px;\"><input type=\"submit\" id=\"submit-files\" value=\"Submit Your Article\" onclick=\"onSubmitFiles();\"></div>";
		} else {
			content += '<input type="hidden" name="uploadtype" id="uploadtype" value="editorOpen"/>';
		}
	
		return( content );
	}
	
	/*
	 * create a business section listing button
	 * ---------------------------------------------------------------------------------------------
	 */
	 function CreateBizButton( idLabel, buttonLabel, buttonName, buttonContainer, divToUpdate ) {
	 	
	 	// define the two callbacks for the selects...
			function OnSubjectSelect( p_sType, p_aArgs, p_oItem ) {
				// first get the label
				var strLabel = p_oItem.cfg.getProperty("text");
				oSubjectMenu.set("label", strLabel );
				var hiddenValue = document.getElementById( divToUpdate );
				hiddenValue.value = strLabel;
				if ( hiddenValue.value != strLabel ) { hiddenValue.value = strLabel; }
				// alert("The subject value is " + document.getElementById("selectedSubject").value );
			}
			
	 	var addedLabel = "-" + idLabel;
	 	var oSelectData =  [ 
                        
									{ text:"About Me",  value: "about", onclick: { fn: OnSubjectSelect } },
									{ text: "Career/Business Goals", value: "goals", onclick: {fn: OnSubjectSelect } },
                            		{ text: "Recently...", value: "recent", onclick: {fn: OnSubjectSelect } },
                            		{ text: "References", value: "referrals", onclick: {fn: OnSubjectSelect }}
                            
  							];
  			var oSubjectMenu = new YAHOO.widget.Button( {  type: "menu", 
														   label: buttonLabel, 
														   name: buttonName, 
														   menu: oSelectData,
														   container: buttonContainer });
  			return( oSubjectMenu );
	 }
	

	/*
	 * create a subject listing button
	 * ---------------------------------------------------------------------------------------------
	 */
	 function CreateSubjectButton( idLabel, buttonLabel, buttonName, buttonContainer, divToUpdate ) {
	 	
			// define the two callbacks for the selects...

			function OnSubjectSelect( p_sType, p_aArgs, p_oItem ) {
				// first get the label
				var strLabel = p_oItem.cfg.getProperty("text");
				oSubjectMenu.set("label", strLabel );
				var hiddenValue = document.getElementById( divToUpdate );
				hiddenValue.value = strLabel;
				if ( hiddenValue.value != strLabel ) { hiddenValue.value = strLabel; }
				// alert("The subject value is " + document.getElementById("selectedSubject").value );
			}
			
			function OpenCustomInput( p_sType, p_Args, p_oItem ) {
				
				
				var id = "custom" + p_oItem;
				oSubjectMenu.set("label","Define Your Own" );
				
				if ( document.getElementById(id) ) {
					document.getElementById(id).innerHTML = "<input type=\"text\" size=\"25\" name=\"userdefinedsubject" + id + "\" id=\"userdefinedsubject" + id + "\"/>";
				} 
			}
			
	 	var addedLabel = "-" + idLabel;
	 	var oSelectData =  [ 
                        	{ text: "Animal Sciences", value: "Animal Sciences", onclick: {fn: OnSubjectSelect }, submenu: { id: "animalsciences" + addedLabel, itemdata: [
                        		{ text: "Evolutionary Theory", value: "Evolutionary Theory", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Paleontology", value: "Paleontology", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Veterinary Medicine", value: "Veterinary Medicine", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Zoology", value: "Zoology", onclick: {fn: OnSubjectSelect } }
                        		]}
                        	},
                        	{ text: "Architecture", value: "Architecture", onclick: {fn: OnSubjectSelect } },
                        	{ text: "Art", value: "Art", onclick: {fn: OnSubjectSelect }, submenu: { id: "art" + addedLabel, itemdata: [
                        		{ text: "Digital Art", value: "Digital Art", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Painting", value: "Painting", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Photography", value: "Photography", onclick: {fn: OnSubjectSelect } }
                        		]}
                        	},
                        	{ text: "Business", value: "Business", onclick: {fn: OnSubjectSelect }, submenu: { id: "biz" + addedLabel, itemdata: [
                        		{ text: "Management", value: "Management", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Small Business", value: "Small Business", onclick: {fn: OnSubjectSelect } }
                        		]}
                        	},
                        	{ text: "Chemistry", value: "Chemistry", onclick: {fn: OnSubjectSelect } },
                        	{ text: "Computer Science", value: "Computer Science", onclick: {fn: OnSubjectSelect }, submenu: { id: "computerscience" + addedLabel, itemdata: [
                        		{ text: "Computer Languages", value: "Computer Languages", onclick: {fn: OnSubjectSelect }, submenu: { id: "complangs" + addedLabel, itemdata: [
                        			{ text: "C/C++", value: "C/C++", onclick: {fn: OnSubjectSelect } },
                        			{ text: "Cocoa", value: "Cocoa", onclick: {fn: OnSubjectSelect } },
                        			{ text: "Fortran", value: "Fortran", onclick: {fn: OnSubjectSelect } },
                        			{ text: "Java", value: "Java", onclick: {fn: OnSubjectSelect } },
                        			{ text: "Javascript", value: "Javascript", onclick: {fn: OnSubjectSelect } },
                        			{ text: "Perl", value: "Perl", onclick: {fn: OnSubjectSelect } },
                        			{ text: "Python", value: "Python", onclick: {fn: OnSubjectSelect } },
                        			{ text: "Tcl", value: "Tcl", onclick: {fn: OnSubjectSelect } }
                        			]}
                        		},
                        		{ text: "Operating Systems", value: "Operating Systems", onclick: {fn: OnSubjectSelect }, submenu: {id: "ossystems" + addedLabel, itemdata: [
                        			{ text: "Linux", value: "Linux", onclick: {fn: OnSubjectSelect } },
                        			{ text: "Mac OS X", value: "Mac OS X", onclick: {fn: OnSubjectSelect } },
                        			{ text: "Solaris", value: "Solaris", onclick: {fn: OnSubjectSelect } },
                        			{ text: "UNIX", value: "UNIX", onclick: {fn: OnSubjectSelect } },
                        			{ text: "Windows", value: "Windows", onclick: {fn: OnSubjectSelect } }
                        			]}
                        		}
                        		]}
                        	},
                        	{ text: "Education", value: "Education", onclick: {fn: OnSubjectSelect } },
                        	{ text: "Engineering", value: "Engineering", onclick: {fn: OnSubjectSelect }, submenu: { id: "engineering" + addedLabel, itemdata: [
                        		{ text: "Aeronautical Engineering", value: "Aeronautical Engineering", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Biological Engineering", value: "Biological Engineering", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Chemical Engineering", value: "Chemical Engineering", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Civil Engineering", value: "Civil Engineering", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Electrical Engineering", value: "Electrical Engineering", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Mechanical Engineering", value: "Mechanical Engineering", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Manufacturing Engineering", value: "Manufacturing Engineering", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Plastics Engineering", value: "Plastics Engineering", onclick: {fn: OnSubjectSelect } }
                        		]}
                        	},
                        	{ text: "Finance", value: "Finance", onclick: {fn: OnSubjectSelect } },
                        	{ text: "History", value: "History", onclick: {fn: OnSubjectSelect } },
                        	{ text: "Humanities", value: "Humanities", onclick: {fn: OnSubjectSelect }, submenu: { id: "humanities" + addedLabel, itemdata: [
                        		{ text: "Classics", value: "Classics", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Linguistics", value: "Linguistics", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Literature", value: "Literature", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Music", value: "Music", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Theatre", value: "Theatre", onclick: {fn: OnSubjectSelect } }
                        		]}
                        	},
                        	{ text: "Law", value: "Law", onclick: {fn: OnSubjectSelect } },
                        	{ text: "Lifestyle", submenu: { id: "lifestyle" + addedLabel, itemdata: [
                    			{ text: "Automotive", value: "Automotive", onclick: {fn: OnSubjectSelect } },
                    			{ text: "Cooking", value: "Cooking", onclick: {fn: OnSubjectSelect } },
                    			{ text: "Fine Living", value: "Fine Living", onclick: {fn: OnSubjectSelect } },
                    			{ text: "Fitness", value: "Fitness", onclick: {fn: OnSubjectSelect } },
                    			{ text: "Health", value: "Health", onclick: {fn: OnSubjectSelect } },
                    			{ text: "Home", value: "Home", onclick: {fn: OnSubjectSelect } },
                    			{ text: "Sports", submenu: { id: "sports", itemdata: [
                    				{ text: "Baseball", value: "Baseball", onclick: {fn: OnSubjectSelect } },
                    				{ text: "Basketball",  value: "Basketball", onclick: {fn: OnSubjectSelect } },
                    				{ text: "Football", value: "Football", onclick: {fn: OnSubjectSelect } },
                    				{ text: "Hockey", value: "Hockey, onclick: {fn: OnSubjectSelect }" }
                    				]}
                    			},
                    			{ text: "Travel", value: "Travel", onclick: {fn: OnSubjectSelect } },
                    			]}
                    		},
                        	{ text: "Mathematics", value: "Mathematics", onclick: {fn: OnSubjectSelect }, submenu: { id: "math" + addedLabel, itemdata: [
                        		{ text: "Algebra", value: "Algebra", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Calculus", value: "Calculus", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Numerical Analysis", value: "Numerical Analysis", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Statistics", value: "Statistics", onclick: {fn: OnSubjectSelect } }
                        		]}
                        	},
                        	{ text: "Media Studies", value: "Media Studies", onclick: {fn: OnSubjectSelect }, submenu: { id: "media" + addedLabel, itemdata: [
                        		{ text: "Communications", value: "Communications", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Internet", value: "Internet", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Journalism", value: "Journalism", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Radio", value: "Radio", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Television", value: "Television", onclick: {fn: OnSubjectSelect } }
                        		]}
                        	},
                        	{ text: "Medicine", value: "Medicine", onclick: {fn: OnSubjectSelect }, submeun: {id: "medicine" + addedLabel, itemdata: [
                        		{ text: "Alternative Medicine", value: "Alternative Medicine", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Brain and Cognitive Sciences", value: "Brain and Cognitive Sciences", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Health", value: "Health", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Fitness", value: "Fitness", onclick: {fn: OnSubjectSelect } },
                        		{ text: "General Medicine", value: "General Medicine", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Psychology", value: "Psychology", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Specialty Medicine", value: "Specialty Medicine", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Veterinary Medcine", value: "Veterinary Medicine", onclick: {fn: OnSubjectSelect } }
                        		]}
                        	},
                        	{ text: "News", value: "News", onclick: {fn: OnSubjectSelect } },
                        	{ text: "Philosophy", value: "Philosophy", onclick: {fn: OnSubjectSelect } },
                        	{ text: "Physical Sciences", submenu: { id: "physical" + addedLabel, itemdata: [
                        		{ text: "Biology", value: "Biology", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Chemistry", value: "Chemistry", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Environmental Sciences", value: "Environmental Sciences", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Geology", value: "Geology", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Nuclear Sciences", value: "Nuclear Sciences", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Physics", value: "Physics", onclick: {fn: OnSubjectSelect } }
                        		]}
                        	},
                        	{ text: "Social Sciences", submenu: { id: "social" + addedLabel, itemdata: [
                        		{ text: "Anthropology", value: "Anthropology", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Economics", value: "Economics", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Linguistics", value: "Linguistics", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Poltical Science", value: "Political Science", onclick: {fn: OnSubjectSelect } },
                        		{ text: "Psychology", value: "Psychology", onclick: {fn: OnSubjectSelect } }
                        		]}
                        	},
                        	{ text: "Define Your Own", value: "custom" + addedLabel, onclick: {fn: OpenCustomInput, obj: addedLabel } }
                        	];
                        	
  			var oSubjectMenu = new YAHOO.widget.Button( {  type: "menu", 
														   label: buttonLabel, 
														   name: buttonName, 
														   menu: oSelectData,
														   container: buttonContainer });
  			return( oSubjectMenu );
	 }
	
	/*
	 * Add the new article form to the div....
	 * ---------------------------------------------------------------------------------------------
	 */
	 function AddArticleForm() {
		
			if ( AddArticleForm.arguments.length ) {
				editor = AddArticleForm.arguments[0];
			} else {
				editor = true;
			}
			
			if ( !editor ) {
				CloseEditor();
			}
		
			// set the query type as articles, just in case they changed from
			// editing to a new article...
			SetSubmitType( 'query', 'articles' );
			
				
  			
  			var articleForm = WriteArticleForm( editor, false );
			
													
			/* Open the text editor */
			if ( editor ) {
			
				SetDivContent( "userFormDiv", articleForm);
				OpenEditor( );
				
			} else {
	
				RemoveElement("gttb_content","articleUploadType");
				
				var divParent = document.getElementById("gttb_content");
				var divToAdd = document.createElement("div");
				divToAdd.setAttribute("id","articleUploadForm");
				divToAdd.setAttribute("name","articleUploadForm");
				divToAdd.innerHTML = articleForm;
				divParent.appendChild( divToAdd );
			}
			
			// create the javascript select button
			var oSubjectMenu = CreateSubjectButton( "one", "Subjects", "subjects", "subjectsfromjs", "selectedSubject" );
			// create the secondary select button
			var oSecondSubjectMenu = CreateSubjectButton( "two", "Secondary Subject", "secondSubjects", "secondSubjectContainer", "secondSubject" );
			
		}
	
	/*
	 *
	 * ---------------------------------------------------------------------------------------------
	 */
	function AddBusinessType () {
	
		//alert("Adding a Select Type");
		
		var htmlToAdd = '<table><tr><td>Which Part of Your Business You\'d like to Update</td><td><div id="bizDiv" name="bizDiv"></div>';
		htmlToAdd += '</td></tr></table>';
		htmlToAdd += '<input type="hidden" name="bizUpdate" id="bizUpdate" />';
	
		var BizBtn = CreateBizButton( "biz", "Update Your Business or Career Section", "bizSection", "bizDiv", "bizUpdate" );
		
		var divParent = document.getElementById("userFormDiv");
		divParent.innerHTML = htmlToAdd;
		
		
		CreateBizButton( idLabel, buttonLabel, buttonName, buttonContainer, divToUpdate );
	}
	