/*
 * IE has always been a rebel browser consitently avoiding or ignoring javascript and w3c 
 * standards compliance. This file is a place for cross-browser solutions to live
 */
 
//Use prototype.js's class functionality
var CrossBrowser = Class.create();

/* 
	Mimics select.add  
	@param theSelect the select to work on
	@param theOpt a new Option to add to the select
	@param index the insertion index
*/
CrossBrowser.selectAdd = function(selectElement,opt,index) {
	try { 
		// standards compliant
		selectElement.add(opt,selectElement.options[index]); 
	} 
	catch(ex) {
		// IE 6 & 7 
		selectElement.add(opt, index); 
	}
} 