﻿// Creates an attribute string for the tag created.
function SwitchPhoto(  )
{
    
}

// Used for single select grids.
function GridPanel_Clear ( strGridPanelIdentifier, objSourceCheckBox )
{
	// Iterate through all form elements:-
	for ( var i = 0; i < document.forms [ 0 ].elements.length; i++ ) 
	{
		// Get that specific element:
		var objElement = document.forms [ 0 ].elements [ i ];
      
		// Check whether the control is a checkbox, and starts with the data grid identifier:-
		if ( objElement.type == 'checkbox' &&
			 objElement.id.match ( strGridPanelIdentifier ) != null &&  
			 objElement.id != objSourceCheckBox.id )
		{
			// Uncheck it:
			objElement.checked = false;
		}
	}
}
