I'm trying to get this Javascript Confirm Box to work? Basically it sends the user a message. They are given an option to either correct it or leave it as is.

Here is the script below. What could I be doing wrong?

<script language="JavaScript" type="text/javascript">

var text = "You have an SOHH Account, but you still need to fill out your address properly. Would you like to update your profile?";

document.write(confirm(text)) {

top.location.href = "http://www.sohh.com/members/profile/";



Also with CSS is there a way to change to colors of an alert box? Just wondering.