var clcks = 0;
var DEFAULT_WIDTH = "100px";

// Problems with tabbing issue

function checkclicks(id)
{
	if (clcks == 0) {
		clcks = 1;
	}
	else {
		document.getElementById("slt"+id).style.width = DEFAULT_WIDTH;
		clcks = 0;
	}
}

function revertDropDownWidth (id) 
{
	if (clcks == 0){
		document.getElementById("slt"+id).style.width = DEFAULT_WIDTH;
	}
}

function resizeDropDownWidth (id)
{
	var txt1 = "";
	var sze = 0;
	var sze1 = 0;

	for (i=0; i<document.getElementById("slt"+id).length; i++) {
		if (id == 1) {
			txt1 = document.quoteform.autoid1.options[i].text;
		}
		else {
			if (id == 2) {
				txt1 = document.quoteform.autoid2.options[i].text;
			}
			else {
				txt1 = document.quoteform.autoid.options[i].text;
			}
		}
		sze1 = txt1.length * 7;
		if (sze1 > sze){
			sze = sze1;
		}
	}

	sze += "px";
	document.getElementById("slt"+id).style.width = sze;
}