function tabSwitch(cellObj)
{
	var tabRow = cellObj.parentElement
	cIndex = cellObj.cellIndex;
	for (i=0;i<tabRow.cells.length - 1;i++)
	{
		if(tabRow.cells(i).background == "images/tab.gif")
			tabRow.cells(i).background = "images/ntab.gif";
	}
	
	tabRow.cells(cIndex).background = "images/tab.gif";
	
	for(i=0;i<tabContent.rows.length;i++)
	{
		tabContent.rows(i).style.display = "none";
	}
		tabContent.rows(cIndex).style.display = "";
}

function initTabs()
{
	if(tabList.rows(0).cells.length == 1) return false;
	tabList.rows(0).cells(0).click();
	for(i=0;i<tabList.rows(0).cells.length-1;i++)
		tabList.rows(0).cells(i).style.cursor="hand";
	//tabContent.rows(0).cells(0).firstChild.rows(0).cells(0).click(); ** Para que no dé el error 27 **
}

function openInput(dlgTitle, dlgMessage, dlgText)
{
	var dArgs = new Object();
	dArgs.Title = dlgTitle;
	dArgs.Message = dlgMessage;
	dArgs.Input = dlgText;
	dFeat = "dialogHeight: 140px; " +
			"dialogWidth: 380px; " +
			"edge: Raised; " + 
			"center: Yes; " +
			"help: No; " +
			"resizable: No; " +
			"status: No; "
			
	return window.showModalDialog("forms/input.htm",dArgs,dFeat)
}
