function checkPowermailValidation() {
	var error = 0;
	var arr = new Array();
	arr = document.documentElement.getElementsByTagName('*');
	
	for (var i=0; i < arr.length; i++) {
		var tagName = document.getElementsByTagName('*').item(i).nodeName; 
		
		switch (tagName) {
			case 'INPUT':
			case 'TEXTAREA':
				var tagObj = document.getElementsByTagName('*').item(i); // object: tag
				var attributes = tagObj.attributes; // object: attributes
				if (attributes.getNamedItem('class') != undefined) {
					var class = attributes.getNamedItem('class').value; // get class
				}
				
				if (class.indexOf('required') != -1) { // this is a required field
					if (tagObj.value == '') { // if this field ist empty
						error = class;
					}
				}
				break;
				
		}
	}
		
	if (error) {
		alert('Your request can not be submitted because one or more of the mandatory fields is missing.');
	}
	
	return true;
}
