
/*add to the template_ .html

<script src="vspfiles/templates/custom/js/change_by_tag.js" type="text/javascript"></script>

after the item that you want to change and ad this file to a js folder in the template_name folder*/
	//the name of the tag type that you want to change
var tagName = 'table';
	
	//the name of the id that the tag appears in
	var idName = 'content_area';
	
	//the name of the attribute you want to check against - the original Attribute - the new Attribute
	var attributeName = 'width';	var origAttribute = 450;	var newAttribute = 'none';
	
	//the name or names of the page the item appears on separated by commas
	var pageName = new Array ('/OrderFinished.asp');

    for (var p = 0; p < pageName.length; p++) {
		if (location.pathname == pageName[p]) {
			//if you need something outside of the content_area you can change
			var tables = document.getElementById(idName).getElementsByTagName(tagName);
			for (var i = 0; i < tables.length; i++) {
				
			//unhide this to test the attribute values of each tag;
			//alert(tables[i].getAttribute(attributeName));
			
			   if (tables[i].getAttribute(attributeName) == origAttribute) {
					tables[i].style['display'] = 'none';
					//break;
				}
			}
		}
	}