Coming from a VB background Im not used to all these curly braces
Is there a standard/accepted way to layout the code with curly braces to make things easy to read?
e.g. like this
PHP Code:
function update(){

    var 
intDUTs document.frmUpload.cboDUTs.value;
    
    
    try{
       var 
strEmail document.frmUpload.txtEmail.value;
    }
    catch(
err){
       
// alert("Email does not exist");
    
}

or like this?
PHP Code:
function update()
{
    var 
intDUTs document.frmUpload.cboDUTs.value;
    
    
    try
    {
       var 
strEmail document.frmUpload.txtEmail.value;
    }
    catch(
err)
    {
       
// alert("Email does not exist");
    
}

Or something different?