<!--

// Validate user's email address
function ROMcheckNewUser() {
if (myEmail == 'ncis') return false;
var ROMvalid = 1;
var ROMerrorMsg = '';
var ROMfocusField = '';

if (document.ROMnewuser.ROMfirstname.value == '') {
ROMerrorMsg += 'First Name\n';
ROMvalid = 0;
ROMfocusField = document.ROMnewuser.ROMfirstname;
}
if (document.ROMnewuser.ROMlastname.value == '') {
ROMerrorMsg += 'Last Name\n';
ROMvalid = 0;
if (ROMfocusField == '') { ROMfocusField = document.ROMnewuser.ROMlastname; }
}

var ROMemailValue = document.ROMnewuser.ROMn_email.value
if (ROMemailValue == '') {
ROMerrorMsg += 'Email address\n';
ROMvalid = 0;
if (ROMfocusField == '') { ROMfocusField = document.ROMnewuser.ROMn_email; }
} else {

var ROMaSpace = ROMemailValue.indexOf(' ');
var ROMatPos = ROMemailValue.indexOf('@');
var ROMdotAtPos = ROMemailValue.indexOf('.');
var ROMafterAt = ROMemailValue.substr(ROMatPos+1,ROMemailValue.length);
var ROManotherAt = ROMafterAt.indexOf('@');
var ROMdotPos = ROMafterAt.indexOf('.');
var ROMafterDot = ROMafterAt.substr(ROMdotPos+1,ROMafterAt.length);
var ROMdot2At = ROMdotAtPos-ROMatPos;

if ( (ROMaSpace>0) || (ROMatPos<=0) || (ROManotherAt>=0) || (ROMdotPos<=0) || (ROMafterDot.length<1) ) {
ROMerrorMsg += 'A valid email address\n';
ROMvalid = 0;

if (ROMfocusField == '') { 
ROMfocusField = document.ROMnewuser.ROMn_email; 
ROMfocusField.select();
}
}
}

// if valid, submit form, else alert errors
if (ROMvalid) {
document.ROMnewuser.submit();
} else { 
alert('Please enter the following:\n' + ROMerrorMsg);
ROMfocusField.focus();
}

}
function ROMgetRefURL() {
  var ROMurl = new String(window.location.href);
  var ROMqparts = ROMurl.split("#");
  var ROMpre = ROMqparts[0];
  var ROMqparts = ROMpre.split("?");
  var ROMvalue = ROMqparts[0];
  return ROMvalue;
}

function ROMgetValue(ROMvarname)
{
  var ROMurl = new String(window.location.href);
  var ROMqparts = ROMurl.split("#");
  var ROMpre = ROMqparts[0];
  var ROMqparts = ROMpre.split("?");
  if (ROMqparts.length <= 1)
  {
    return "";
  }
  var ROMquery = ROMqparts[1];
  var ROMvars = ROMquery.split("&");
  var ROMvalue = "";
  for (i=0;i<ROMvars.length;i++)
  {
    var ROMparts = ROMvars[i].split("=");
    if (ROMparts[0] == ROMvarname)
    {
      ROMvalue = ROMparts[1];
      break;
    }
  }
  ROMvalue = unescape(ROMvalue);
  ROMvalue.replace(/\+/g," ");
  return ROMvalue;
}

var ROMstatus = ROMgetValue("ROMid");
var ROMfirstname = ROMgetValue("ROMfirstname");
var ROMRefURL = ROMgetRefURL();


var ROMmessage=new String();
if (ROMstatus=="1") {
ROMmessage="<font color=red>The Email address is already registered</font>";
} else if (ROMstatus=="2") {
ROMmessage="Thank you for registering with remodelormove.com.  An email has been sent to the address you provided with your login information.  You can access the Remodel or Move Calculator now by clicking <a href=\"http://www.remodelormove.com/affiliate.cfm?bid=7&login=1&ROMlocationemail=" + myEmail + "&ROMcurrentURL=" + ROMRefURL + "\" style=\"color: #1F7F25;\">here</a>";
} else { ROMmessage=null;}

if (myEmail != 'ncis')
{
document.writeln('<a name="ROMSIGNUP"></a>');
//document.writeln('<table width="310"  border="0" cellpadding="20" cellspacing="0">');
//document.writeln(' <tr>');
//document.writeln('   <td valign="top">');
document.writeln('<script type="text/javascript" src="http://remodelormove.com/buttons/track.cfm?bid=7&ROMlocationemail=' + myEmail + '&ROMcurrentURL=' + ROMRefURL + '"></script>');
document.writeln('     <form method="post" action="http://www.remodelormove.com/newuserRemote.cfm" name="ROMnewuser">');
document.writeln('     <input type="hidden" name="ROMaction" value="1">');
document.writeln('     <input type="hidden" name="ROMlocationemail" value="' + myEmail + '">');
document.writeln('     <input type="hidden" name="ROMcurrentURL" value="' + ROMRefURL + '">');
}
document.writeln('      <table width="270" border="0" cellspacing="1" cellpadding="15" style="background-color:#A6A887">');
document.writeln('        <tr style="background-color:#EBEED3">');
document.writeln('         <td valign="top">');
document.writeln('            <p style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 18px; color: #6E8238; font-weight:bold; line-height: 20px;"><img src="http://remodelormove.com/img/buttons/calculator_logo3.gif" align="right" hspace="10" alt="Remodel of Move? Calculator">Should you Remodel?<br />Should you Move?</p>');
document.writeln('            <p style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 18px; color: #6E8238; font-weight:bold; line-height: 20px;" align="center">Find out instantly!</p>');
if (ROMstatus=="2")
{
document.writeln('           <table  border="0" cellspacing="0" cellpadding="2">');
if (ROMmessage)
{
document.writeln('             <tr>');
document.writeln('               <td colspan=2 style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">' + ROMmessage + '</td>');
document.writeln('             </tr>');
}
document.writeln('           </table>');
}
else
{
document.writeln('           <p style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #07264F; font-weight:bold; line-height: 14px; ">New web tool provides:</p>');
document.writeln('           <ul>');
document.writeln('             <li style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">Instant remodel and move cost estimates</li>');
document.writeln('             <li style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">Comparison of the costs and tips to save money</li>');
document.writeln('             <li style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">Analysis of your &quot;gut feelings&quot;</li>');
document.writeln('             <li style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">Recommendation on what is best for you..remodel or move!</li>');
document.writeln('           </ul>');
document.writeln('           <p style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">It&rsquo;s a special service we are offering local homeowners, so try it now! (It\'s free and we protect your information)</p>');
document.writeln('           <table  border="0" cellspacing="0" cellpadding="2">');
if (ROMmessage)
{
document.writeln('             <tr>');
document.writeln('               <td colspan=2 style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #AA0000; line-height: 14px; text-align:center;">' + ROMmessage + '</td>');
document.writeln('             </tr>');
}
document.writeln('             <tr>');
document.writeln('                <td align="right" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px; text-align:right;">First Name</td>');
document.writeln('               <td><input name="ROMfirstname" type="text" /></td>');
document.writeln('             </tr>');
document.writeln('             <tr>');
document.writeln('                <td align="right" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px; text-align:right;">Last Name</td>');
document.writeln('               <td><input name="ROMlastname" type="text" /></td>');
document.writeln('             </tr>');
document.writeln('             <tr>');
document.writeln('                <td nowrap align="right" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px; text-align:right;">Email Address</td>');
document.writeln('               <td><input name="ROMn_email" type="text" /></td>');
document.writeln('             </tr>');
document.writeln('             <tr>');
document.writeln('               <td>&nbsp;</td>');
document.writeln('               <td><input name="" type="button" value="submit" onClick="ROMcheckNewUser();" style="border: #817B5A 1px solid; font-size: 11px; color: #565045; font-weight: normal; font-family: verdana; background-color: #DBDEC5; text-decoration: none;" /></td>');
document.writeln('             </tr>');
document.writeln('           </table>');
}
document.writeln('           <p style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">Compare moving costs and remodeling costs at <a href="http://www.remodelormove.com/affiliate.cfm?bid=7&ROMlocationemail=' + myEmail + '&ROMcurrentURL=' + ROMRefURL + '" style=\"color: #1F7F25;\">www.remodelormove.com</a></p>');
document.writeln('           <p style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">See our moving checklist at remodelormove.com</p>');
document.writeln('         </td>');
document.writeln('       </tr>');
document.writeln('        <tr style="background-color:#FFFFFF">');
document.writeln('         <td>');
document.writeln('           <table border="0" cellspacing="0" cellpadding="0" width="100%">');
document.writeln('             <tr>');
document.writeln('               <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #5D5D5D; line-height: 14px; vertical-align:top" nowrap>Powered by:</td>');
document.writeln('               <td align="center"><img src="http://remodelormove.com/img/buttons/logo_sm.gif" alt="RemodelOrMove.com" width="167" height="43"></td>');
document.writeln('             </tr>');
document.writeln('           </table>');
document.writeln('         </td>');
document.writeln('       </tr>');
document.writeln('     </table>');
if (myEmail != 'ncis') document.writeln('     </form>');
//document.writeln('   </td>');
//document.writeln(' </tr>');
//document.writeln('</table>');

//-->
