rem: 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 ); }  } 
add: var element = document.getElementById("dialog.loginname"); param.SetString( 6, element.value );   element = document.getElementById("dialog.password"); param.SetString( 7, element.value );  
context: function commonDialogOnOK(){//	dump("commonDialogOnOK \n");	param.SetInt(0, 0 );	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 );//			dump(" login name - "+ element1.value+ "\n");//			dump(" password - "+ element2.value+ "\n");	} 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 );		}//			dump(" login name - "+ element2.value+ "\n");	}	return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/30ac695d6720e6cb9b6a27ec67d987bebf1d4d7d/commonDialog.js/buggy/xpfe/global/resources/content/commonDialog.js