var cForm = {
	DynamicInput:		function(sFormID, sFieldID, sDefValue)
						{
						    var oForm = document.getElementById(sFormID);
						
						    if (oForm) {
						        if (oForm[sFieldID].value.length == 0) {
						            oForm[sFieldID].value = sDefValue;
						        }
						        oForm[sFieldID].onfocus = function z () {
						            if(oForm[sFieldID].value == sDefValue) { cForm.CaretToStart(this); this.style.color = "#cecbcb"; }
						        }
						        oForm[sFieldID].onkeydown = function z () { 
						            if(oForm[sFieldID].value == sDefValue) { this.value = ''; this.style.color = "#929191"; }
						        }
						        oForm[sFieldID].onblur = function z () {
						            if(oForm[sFieldID].value == '') { this.value = sDefValue; }
						            this.style.color = "#929191";
						        }
						    }
							
						},
						
	CaretToStart:		function(oTarget)
						{
						    if (oTarget.createTextRange)
						    {
						    	var range = oTarget.createTextRange();
						        range.collapse(true);
						        range.select();
						    }
						    else if (oTarget.setSelectionRange)
						    {
						        oTarget.focus();
						        oTarget.setSelectionRange(0, 0);
						    }
						},
						
	StyleSelect:		function(sSelectElementID, sSelectStyledElementID)
						{
							var oSelectElement = document.getElementById(sSelectElementID);
							var oSelectStyledElement = document.getElementById(sSelectStyledElementID);
							
							if (oSelectElement != undefined
								&& oSelectStyledElement != undefined)
							{
								oSelectElement.style.position = 'absolute';
								oSelectElement.style.opacity = '0';
								
								oSelectStyledElement.innerHTML = oSelectElement.value;
								oSelectStyledElement.style.display = 'inline-block';
								
								oSelectElement.styledElement = oSelectStyledElement;
	
								oSelectElement.onchange = function()
								{
									this.styledElement.innerHTML = this.value;
								}
							}
						}
};
