function del(val){
//		alert('debug5');
    selectTo=document.getElementById(val);
    clearLength=selectTo.options.length;
		while (clearLength--) selectTo.options[0]=null;
}

function addOption(selectId, txt, val, sel)
{
//		alert ('debug6');
		var objOption = new Option(txt,val, sel, sel);
		document.getElementById(selectId).options.add(objOption);
}

function autoResize(elementId)
{
	var iOffSet = 30;
	if($.browser.msie)
	{
		var iOffSet = 30;
	}
	var iW = $('#'+elementId).width();
	var iH = $('#'+elementId).height() + iOffSet;
	// debug: use alert below to get calc dimensions on load
	// alert("iframe: (w:" + iW + ", h:" + iH + ")");
	// limit the window height and enable scrollbars
	parent.$.fn.colorbox.myResize(iW, iH);
}
