function c_removeSelMakes() {
	var m1 = "";
	var m2 = "";
	var m3 = "";
	
	var mn1f = null;
	var mn2f = null;
	var mn3f = null;
	
	eval("mn1f = document.forms[0].MakeName");
	eval("mn2f = document.forms[0].MakeName2");
	eval("mn3f = document.forms[0].MakeName3");

	var m1f = null;
	var m2f = null;
	var m3f = null;

	//eval("m1f = document.forms[0].addMakeName1");
	eval("m2f = document.forms[0].addMakeName2");
	eval("m3f = document.forms[0].addMakeName3");


	if (mn1f != null)
		m1 = mn1f.value;
	if (mn2f != null)
		m2 = mn2f.value;
	if (mn3f != null)
		m3 = mn3f.value;

	/*if (m1f != null) {
	  for (var i = m1f.length - 1; i>=0; i--) {
	    if (m1f.options[i].text.toLowerCase() == m1.toLowerCase()) {
		  m1f.remove(i);
	    } else if (m1f.options[i].text.toLowerCase() == m2.toLowerCase()) {
		  m1f.remove(i);
	    }
		else if (m1f.options[i].text.toLowerCase() == m3.toLowerCase()) {
		  m1f.remove(i);
	    }
	  }
	}*/

	if (m2f != null) {
	  for (var i = m2f.length - 1; i>=0; i--) {
	    if (m2f.options[i].text.toLowerCase() == m1.toLowerCase()) {
	      m2f.remove(i);
	    } else if (m2f.options[i].text.toLowerCase() == m2.toLowerCase()) {
		  m2f.remove(i);
	    }
		else if (m2f.options[i].text.toLowerCase() == m3.toLowerCase()) {
		  m2f.remove(i);
	    }
	  }
	}
	if (m3f != null) {
	  for (var i = m3f.length - 1; i>=0; i--) {
	    if (m3f.options[i].text.toLowerCase() == m1.toLowerCase()) {
	      m3f.remove(i);
	    } else if (m3f.options[i].text.toLowerCase() == m2.toLowerCase()) {
		  m3f.remove(i);
	    }
		else if (m3f.options[i].text.toLowerCase() == m3.toLowerCase()) {
		  m3f.remove(i);
	    }
	  }
	}

}

function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function'){
        window.onload = func;
    } else {
        window.onload = function(){
        oldonload();
        func();
        }
    }
}

addLoadEvent(c_removeSelMakes);
