<!--

function ROMstandard(str) {
  if (str == 'First Name')    return 1;
  if (str == 'Last Name')     return 2;
  if (str == 'Email Address') return 3;
  return 0;
}
function ROMclear(el) {
  if (ROMstandard(el.value)) {
    el.value = '';
    el.style.color = '#000000';
    el.style.fontStyle = 'normal';
  }
}
// Validate user's email address
function ROMcheckNewUser() {
if (myEmail == 'ncis') return false;
var ROMvalid = 1;
var ROMerrorMsg = '';
var ROMfocusField = '';

if (document.ROMnewuser.ROMfirstname.value == '' || ROMstandard(document.ROMnewuser.ROMfirstname.value)) {
ROMerrorMsg += 'First Name\n';
ROMvalid = 0;
ROMfocusField = document.ROMnewuser.ROMfirstname;
}
if (document.ROMnewuser.ROMlastname.value == '' || ROMstandard(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 == '' || ROMstandard(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) {
return true;
} else { 
alert('Please enter the following:\n' + ROMerrorMsg);
ROMfocusField.focus();
return false;
}

}
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<br />already registered</font>";
} else if (ROMstatus=="2") {
ROMmessage="<p style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;\">Thank you for<br>registering with remodelormove.com.<br />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=16&login=1&ROMlocationemail=" + myEmail + "&ROMcurrentURL=" + ROMRefURL + "\" style=\"color: #1F7F25;\">here</a></p>";
} else { ROMmessage=null;}


if (myEmail != 'ncis')
{
document.writeln('<a name="ROMSIGNUP"></a>');
document.writeln('<script type="text/javascript" src="http://remodelormove.com/buttons/track.cfm?bid=16&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="169" border="0" cellspacing="0" cellpadding="0">');
document.writeln('  <tr>');
document.writeln('    <td><img src="http://remodelormove.com/img/border/green/left_top.gif" alt="bathroom, paint, mortgage, homeowner" width="10" height="10" border="0" /></td>');
document.writeln('    <td height="10" style="background:url(http://remodelormove.com/img/border/green/top_bg.gif) repeat-x;" width="100%"></td>');
document.writeln('    <td><img src="http://remodelormove.com/img/border/green/right_top.gif" alt="moving, kitchen, contractor, house" width="10" height="10" border="0" /></td>');
document.writeln('  </tr>');
document.writeln('  <tr>');
document.writeln('    <td width="10" style="background:url(http://remodelormove.com/img/border/green/left_bg.gif) repeat-y;" height="100%"></td>');
document.writeln('    <td valign="top" width="100%">');
document.writeln('      <p style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #6E8238; font-weight:bold; line-height: 16px;" align="center">');
document.writeln('      Should you Remodel?<br>');
document.writeln('      Should you Move?</p>');
document.writeln('      <p align="center"><img src="http://remodelormove.com/img/buttons/calculator_logo2.gif" hspace="5" alt="Remodel of Move? Calculator" border="0" /></p>');
document.writeln('      <p style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #6E8238; font-weight:bold; line-height: 16px;" align="center">Find out instantly!</p>');
document.writeln('    </td>');
document.writeln('    <td width="10" height="100%" style="background:url(http://remodelormove.com/img/border/green/right_bg.gif) repeat-y;"></td>');
document.writeln('  </tr>');
document.writeln('  <tr bgcolor="#F2F4E2">');
document.writeln('    <td width="10" style="background:#F2F4E2 url(http://remodelormove.com/img/border/green_bg/left_bg.gif) repeat-y;" height="100%"></td>');
document.writeln('    <td valign="top" width="100%">');
if (ROMstatus=="2")
{
document.writeln('       <br /><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><br /');
}
else
{
document.writeln('      <p style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #07264F; font-weight:bold; line-height: 14px;" align="center"><br>');
document.writeln('      New web tool<br>');
document.writeln('      provides:</p>');
document.writeln('      <table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.writeln('         <tr valign="top">');
document.writeln('           <td width="3%" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">&bull;&nbsp;</td>');
document.writeln('           <td width="97%"><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">Instant remodel and move cost estimates</span></td>');
document.writeln('         </tr>');
document.writeln('         <tr valign="top">');
document.writeln('           <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">&bull;&nbsp;</td>');
document.writeln('           <td><span 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</span></td>');
document.writeln('         </tr>');
document.writeln('         <tr valign="top">');
document.writeln('           <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">&bull;&nbsp;</td>');
document.writeln('           <td><span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">Analysis of your &quot;gut&nbsp;feelings&quot;</span></td>');
document.writeln('         </tr>');
document.writeln('         <tr valign="top">');
document.writeln('           <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">&bull;&nbsp;</td>');
document.writeln('           <td><span 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!</span></td>');
document.writeln('         </tr>');
document.writeln('      </table>');
document.writeln('      <p style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #911115; line-height: 14px;"><strong>It&rsquo;s a special service we are offering local homeowners, so try it now!</strong> <br>');
document.writeln('        <span style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; line-height: 14px;">(It\'s free and we protect your information)</span></p>');
document.writeln('      <table border="0" cellspacing="0" cellpadding="3" align="center">');
if (ROMmessage)
{
document.writeln('        <tr><td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #AA0000; line-height: 14px;">' + ROMmessage + '</td></tr>');
}
document.writeln('        <tr><td><input name="ROMfirstname" value="First Name" type="text" style="width:130px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #5D5D5D; font-style:italic;" onclick="ROMclear(this)" onselect="ROMclear(this)" /></td></tr>');
document.writeln('        <tr><td><input name="ROMlastname" value="Last Name" type="text" style="width:130px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #5D5D5D; font-style:italic;" onclick="ROMclear(this)" onselect="ROMclear(this)" /></td></tr>');
document.writeln('        <tr><td><input name="ROMn_email" value="Email Address" type="text" style="width:130px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #5D5D5D; font-style:italic;" onclick="ROMclear(this)" onselect="ROMclear(this)" /></td></tr>');
document.writeln('        <tr><td align="center"><input type="image" onClick="return ROMcheckNewUser();" src="http://remodelormove.com/img/buttons/submit_g2.gif" width="97" height="27" alt="Submit" border="0" /><br><br></td></tr>');
document.writeln('      </table>');
}
document.writeln('    </td>');
document.writeln('    <td width="10" height="100%" style="background:#F2F4E2 url(http://remodelormove.com/img/border/green_bg/right_bg.gif) repeat-y;"></td>');
document.writeln('  </tr>');
document.writeln('  <tr>');
document.writeln('    <td width="10" style="background:url(http://remodelormove.com/img/border/green/left_bg.gif) repeat-y;" height="100%"></td>');
document.writeln('    <td valign="top" width="100%">');
document.writeln('      <table border="0" cellspacing="0" cellpadding="2">');
document.writeln('        <tr>');
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" valign="top" nowrap><br>Powered by:</td></tr>');
document.writeln('                <tr><td align="center"><img src="http://remodelormove.com/img/buttons/logo_mini.gif" alt="RemodelOrMove.com" width="140" height="36" border="0" /></td>');
document.writeln('              </tr>');
document.writeln('            </table>');
document.writeln('          </td>');
document.writeln('        </tr>');
document.writeln('      </table>');
document.writeln('    </td>');
document.writeln('    <td width="10" height="100%" style="background:url(http://remodelormove.com/img/border/green/right_bg.gif) repeat-y;"></td>');
document.writeln('  </tr>');
document.writeln('  <tr>');
document.writeln('    <td><img src="http://remodelormove.com/img/border/green/left_bottom.gif" alt="calculator, room addition, dan fritschen, real estate" width="10" height="10" border="0" /></td>');
document.writeln('    <td height="10" style="background:url(http://remodelormove.com/img/border/green/bottom_bg.gif) repeat-x;" width="100%"></td>');
document.writeln('    <td><img src="http://remodelormove.com/img/border/green/right_bottom.gif" alt="move, remodel, renovate, home" width="10" height="10" border="0" /></td>');
document.writeln('  </tr>');
document.writeln('</table>');
if (myEmail != 'ncis') document.writeln('</form>');

//-->
