customer page validation

javascript validation function