rem: var element = document.getElementById("dialog.loginname"); param.SetString( 6, element.value );   element = document.getElementById("dialog.password"); param.SetString( 7, element.value );  
add: var element1, element2; var numEditfields = param.GetInt( 3 ); if (numEditfields == 2) { var editfield1Password = param.GetInt( 4 ); if ( editfield1Password == 1 ) { element1 = document.getElementById("dialog.password1"); } else { element1 = document.getElementById("dialog.loginname"); } param.SetString( 6, element1.value ); element2 = document.getElementById("dialog.password2"); param.SetString( 7, element2.value );   } else if (numEditfields == 1) { var editfield1Password = param.GetInt( 4 ); if ( editfield1Password == 1 ) { element1 = document.getElementById("dialog.password1"); param.SetString( 6, element1.value ); } else { element1 = document.getElementById("dialog.loginname"); param.SetString( 6, element1.value ); }  } 
context: function commonDialogOnOK(){//	dump("commonDialogOnOK \n");	param.SetInt(0, 0 );	var element = document.getElementById("dialog.loginname");	param.SetString( 6, element.value );//	dump(" login name - "+ element.value+ "\n");		element = document.getElementById("dialog.password");	param.SetString( 7, element.value );//	dump(" password - "+ element.value+ "\n");	return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/1557841fb0de0e93a262483ca65cfe28261592a3/commonDialog.js/buggy/xpfe/global/resources/content/commonDialog.js