Please put numerators and denominators in parentheses. Without parentheses what you posted meant: \n" );
document.write( " \n" );
document.write( "which I very much doubt is what you meant.
Please re-post your question using parentheses and including the instructions. \n" );
document.write( "