// jQuery Code

jQuery(document).ready(function($) {

	// just add class="autoclear" to your input
$(".autoclear").click(function() {
	if($(this).val() == $(this).attr('defaultValue')) $(this).val("");
});
// if the user enters nothing, this will restore default text
$(".autoclear").blur(function() {
	if($(this).val() == "") $(this).val($(this).attr('defaultValue'));
});

	if ($('.additional-images-list').length > 0) {
	}
});

function TextBox_AddToIntValue(targetId,addToValue)
{
    var input = document.getElementById(targetId);
    var textInt = parseInt(input.value);
    if(isNaN(textInt))
    {
        textInt = 0;
    }
    input.value = textInt + addToValue;
    if (input.value <= 0) {
        input.value = 0;
    }
}
