📄 reg3.htm
字号:
var contryobj;
var usertypeobj;
var dropdown = new downListCreator();
</script>
<body id="body">
<textarea id="debug_2" style="display:none;"></textarea>
<div id="Layer1" style="cursor:pointer;" onClick="window.external.OnClose();">
<div align="center"></div>
</div>
<div id="Layer2" style="border:solid #000066 1px; display:none;">
<div id="pleasewait">please wait...</div>
</div>
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="toptd" width="600" height="45" background="img/3.JPG" onMouseDown="window.external.OnMoveWindow();"> </td>
</tr>
<tr>
<td height="474" background="img/2.JPG">
<div>
<table width="100%" border="0" cellpadding="0" style="padding:0 20px">
<tr>
<td width="51%" height="40" class="PageStep STYLE3">
<span id="reg3_title">
<!--Product Registration-->
</span>
</td>
<td width="49%" height="25" class="PageStep"> </td>
</tr>
<tr>
<td height="25" colspan="2" class="PageStep STYLE2">
<span id="reg3_des">
<!--Please enter the following customer infomation. Required fields are with an asterisk.
--></span>
</td>
</tr>
<tr>
<td height="25" class="PageStep STYLE2">
<div style="float:left; padding-top:5px; width:95px;" id="reg3_utype" ><!--user type--></div>
<div id="usertypediv" style="float:left"></div>
</td>
<td height="25" class="PageStep STYLE2"> </td>
</tr>
<tr>
<td height="25" class="PageStep STYLE2" id="td_fname">
<div id="reg3_fname" style="float:left;padding-top:5px; width:95px;">
<!--First Name-->
</div>
<input name="fname" type="text" id="fname" maxlength="90" >
<span class="STYLE4">*</span></td>
<td height="25" class="PageStep STYLE2">
<div id="reg3_company" style="float:left;padding-top:5px; width:95px;">
<!--company -->
</div>
<input name="company" type="text" id="company" maxlength="190" ></td>
</tr>
<tr>
<td height="25" class="PageStep STYLE2" id="td_lname">
<div id="reg3_lname" style="float:left;padding-top:5px; width:95px;">
<!--Last Name -->
</div>
<input name="lname" type="text" id="lname" maxlength="90" >
<span class="STYLE4">*</span></td>
<td height="25" class="PageStep STYLE2" id="td_city">
<div id="reg3_city" style="float:left;padding-top:5px; width:95px;">
<!--City-->
</div>
<input name="city" type="text" id="city" maxlength="90" >
<span class="STYLE4">*</span></td>
</tr>
<tr>
<td height="25" class="PageStep STYLE2" id="td_add1">
<div id="reg3_add1" style="float:left;padding-top:5px; width:95px;">
<!--Address1-->
</div>
<input name="add1" type="text" id="add1" maxlength="190" >
<span class="STYLE4">*</span></td>
<td height="25" class="PageStep STYLE2">
<div id="reg3_state" style="float:left;padding-top:5px; width:95px;">
<!--State/Province-->
</div>
<input name="state" type="text" id="state" maxlength="90"></td>
</tr>
<tr>
<td height="25" class="PageStep STYLE2">
<div id="reg3_add2" style="float:left;padding-top:5px; width:95px;">
<!--Address2-->
</div>
<input name="add2" type="text" id="add2" maxlength="190" ></td>
<td height="25" class="PageStep STYLE2"><div style="float:left; padding-top:5px; width:95px;" id="reg3_country"><!--country--></div>
<div id="contrydiv" style="float:left"></div>
<div class="STYLE4" style="padding-top:7px;">*</div></td>
</tr>
<tr>
<td height="25" class="PageStep STYLE2" id="td_zip">
<div id="reg3_zip" style="float:left;padding-top:5px; width:95px;">
<!--Zip/Postal Code-->
</div>
<input name="zip" type="text" id="zip" maxlength="40" >
<span class="STYLE4">*</span></td>
<td height="25" class="PageStep STYLE2"> </td>
</tr>
<tr>
<td height="25" class="PageStep STYLE2" id="td_phone">
<div id="reg3_phone" style="float:left;padding-top:5px; width:95px;">
<!--Phone Number--></div>
<input name="phone" type="text" id="phone" maxlength="40" >
<span class="STYLE4">*</span></td>
<td height="25" class="PageStep STYLE2"> </td>
</tr>
<tr>
<td height="25" colspan="2" class="PageStep STYLE2" id="td_email" >
<div id="reg3_email" style="float:left;padding-top:5px; width:95px;">
<!--Email Address-->
</div>
<input name="email" type="text" id="email" maxlength="190">
<span class="STYLE4">*</span></td>
</tr>
<tr>
<td height="25" colspan="2" class="PageStep STYLE2">
<div style="float:left; width:110" id="reg3_newsletter">
<!--Newsletter Signup --> </div>
<div style="float:left; padding-left:10px;"><script>newuser.displayButton();</script></div>
<span onClick="newuser.check();" id="reg3_new1"><!--Please add me to Farstone's mailing list--></span></td>
</tr>
<tr>
<td height="25" colspan="2" class="PageStep STYLE2">
<div style="float:left; width:110">
</div>
<div style="float:left; padding-left:10px;"><script>olduser.displayButton();</script></div>
<span onClick="olduser.check();" id="reg3_new2"> <!--Do not add me to Farstone's mailing list--></span></td>
</tr>
<tr>
<td height="50" colspan="2" class="PageStep STYLE2">
<span id="reg3_botm">
<!--Registering your product helps us keep you informed of product updates and upgrades,and qualifies you for full technical support.--><br>
<!--Farstone respects your night to privacy and does not share or sell your personal information.-->
</span>
</td>
</tr>
<tr>
<td colspan="2">
<div style="padding-left:290px; padding-top:5px; float:left;">
<button cstyle="rit" onClick="history.go(-1);" id="per"><!--Previous--></button>
<button cstyle="rit" onClick="btn_submit();" id="reg"><!--Register--></button>
</div> </td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
<script>
var isOnline = true;
var isupdate = Request("regid");
//alert(isupdate);
var contryobj;
switch(langid)
{
case 2052:
contryobj = dropdown.getCtrl(contryArr,"bt_contryarr","contrydiv",contryArr[42].split("|")[0],14);
break;
case 1028:
contryobj = dropdown.getCtrl(contryArr,"bt_contryarr","contrydiv",contryArr[196].split("|")[0],14);
break;
case 1033:
contryobj = dropdown.getCtrl(contryArr,"bt_contryarr","contrydiv",contryArr[212].split("|")[0],14);
break;
}
usertypeobj = dropdown.getCtrl(usertypearr,"bt_usertypediv","usertypediv",usertypearr[0].split("|")[0],14);
document.body.onload=function()
{
applyButton();
showui();
$("toptd").style.backgroundImage ="url(img/3"+langid+".jpg)";
getinfo();
if(isupdate!="")
{
//$("reg").setValue("Update");
$("reg").setValue(GS("update"));
}
}
function showui()
{
$("reg3_title").innerText=GS("reg3_title");
$("reg3_des").innerText=GS("reg3_des");
$("reg3_utype").innerText=GS("reg3_utype");
$("reg3_fname").innerText=GS("reg2_fname");
$("reg3_lname").innerText=GS("reg2_lname");
$("reg3_add1").innerText=GS("reg3_add1");
$("reg3_add2").innerText=GS("reg3_add2");
$("reg3_zip").innerText=GS("reg3_zip");
$("reg3_phone").innerText=GS("reg3_phone");
$("reg3_email").innerText=GS("reg2_email");
$("reg3_company").innerText=GS("reg3_company");
$("reg3_city").innerText=GS("reg3_city");
$("reg3_state").innerText=GS("reg3_state");
$("reg3_country").innerText=GS("reg3_country");
$("reg3_newsletter").innerText=GS("reg3_newsletter");
$("reg3_new1").innerText=GS("reg3_new1");
$("reg3_new2").innerText=GS("reg3_new2");
$("reg3_botm").innerHTML=GS("reg3_botm");
$("reg").setValue(GS("reg"));
//$("cancel").setValue(GS("Cancel"));
$("per").setValue(GS("per"));
$("pleasewait").innerHTML=GS("pleasewait");
}
function getinfo()
{
var result="";
if(isupdate!="")
{
var callpage="http://www.farstone.com/support/user-profile/api-product-getinfo.php?regid="+isupdate;
//document.write(callpage);
var XMLSender = new ActiveXObject("Microsoft.XMLHTTP");
XMLSender.Open("GET",callpage,false);
XMLSender.send();
//alert(XMLSender.responseText);
result=XMLSender.responseText;
}
else
{
if(window.external.GetRegisterInfo()!="")
{
result=window.external.GetRegisterInfo();
}
}
//alert(result);
var userobj = analyseXml(result);
//alert(userobj.usertype);
if(userobj.usertype!=null)
{
if(userobj.usertype==0)
{
usertypeobj.setValue("Personal");
}
else
{
usertypeobj.setValue("Business");
}
}
if(userobj.FirstName!=null)
{
$("fname").value=userobj.FirstName;
}
if(userobj.LastName!=null)
{
$("lname").value=userobj.LastName;
}
if(userobj.Address1)
{
$("add1").value=userobj.Address1;
}
if(userobj.Address2)
{
$("add2").value=userobj.Address2;
}
if(userobj.Postal!=null)
{
$("zip").value=userobj.Postal;
}
if(userobj.PhoneNumber!=null)
{
$("phone").value=userobj.PhoneNumber;
}
if(userobj.email2!=null)
{
$("email").value=userobj.email2;
}
else if(userobj.email!=null)
{
$("email").value=userobj.email;
}
if(userobj.Company!=null)
{
$("company").value=userobj.Company;
}
if(userobj.City!=null)
{
$("city").value=userobj.City;
}
if(userobj.State!=null)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -