﻿/**
 * Imtech JavaScript library | Compliancy functions
 * Composed 2007 by Waldek Mastykarz | Imtech ICT BS
 * All rights reserved  
 * @created		2007-11-24 14:46:00
 * @modified	2007-11-24 14:46:00
 * @version		1.0
 * 
 * CHANGES LOG:
 * 1.0			+ initial vesion
 */

Imtech.Compliancy = {}; // set own namespace

Imtech.Compliancy.ensureAttribute = function(element, attribute, value)
{
	if (!Imtech.isFunction ||
		!Imtech.isFunction(Imtech.$) ||
		!Imtech.isFunction(Imtech.isUndefined) ||
		Imtech.isUndefined(element) ||
		Imtech.isUndefined(attribute) ||
		Imtech.isUndefined(value))
		return false;
	
	element = Imtech.$(element);
	if (element != false)
		element.setAttribute(attribute, value);
}
