/* 
Class Name: 	
				Div
Purpose:		
				To simplify and tidy up the use of HTML injection into div/span objects.
Description:	
				The idea behind this class is to simply add this script to your page. 

				From there you can set a default div "id" that requires alteration. This is
				useful if the class is only really being used for one specific purpose, or you'd
				prefere it to be addressed automatically to an error display for example.
				
				div.id =  "testdiv";
				
				The HTML to be injected into the div/span can also be set to a default text.
				
				div.snippet = "some test html to inject";
*/

var div = new function()
{
	this.snippet = "enter text to inject here";
	this.id = "enter the div id here";
	this.inject = function(s, i)
	{
		if(s!=null) this.snippet = s;
		if(i!=null) this.id = i;
		document.getElementById(this.id).innerHTML = this.snippet;
	};
};
