| |
 |
| |
");
//call the validation function that references the alternative validation
function validateForm(theForm)
{
var errors = "";
if (document.forms.optIn.XXDESXXsubscribe_op[0].checked == true)
{
//set validation for subscribing
if (!check_StateStreetEmail(theForm.XXDESXXemail_address))
{
errors += 'THE EMAIL ADDRESS YOU ENTERED APPEARS TO BE A STATE STREET ADDRESS \n\n Due to technical issues, State Street employees cannot sign up for automatic email delivery at this time.' + "\n";
} else {
if (!check_RequiredTextField(theForm.M_organizati))
{
errors += '- Please enter your company name' + "\n";
}
if (!check_EmailField(theForm.XXDESXXemail_address))
{
errors += '- Please enter your email address' + "\n";
}
if (!check_RadioField(theForm.role))
{
errors += '- Please select an investor type (I am a...)' + "\n";
}
}
//check for errors
if(errors != "")
{
showErrors(errors);
return false;
} else {
preSubmit();
return true;
}
} else {
//set validation for unsubscribing
if (!check_EmailField(theForm.XXDESXXemail_address))
{
errors += '- Please enter your email address' + "\n";
}
//check for errors
if(errors != "")
{
showErrors(errors);
return false;
} else {
preSubmit();
return true;
}
}
}
var pageErrors = "";
} else {
//set up code to handle complex validation
var pageErrors = formProcessor.getErrorHTML();
}
if(pageErrors == "") {
document.write("");
document.write("Our monthly market Perspectives newsletter provides a concise yet thorough overview of the world's lending markets and our corresponding collateral investment strategy. The content is based on feedback from our traders worldwide, and focuses on events that specifically impact the securities lending industry.
For a broader perspective on the world's markets, please read State Street's Economic Perspectives.
");
document.write("  ");
document.write("  ");
document.write("  ");
document.write(" ");
//document.write(" ");
//document.write("If you are a current Market Perspectives subscriber and need assistance or would like to provide feedback, please click here.");
//document.write("
");
}
else {
document.write(pageErrors + "
Please try again:<\span>");
document.write("
");
}
//-->
|
|
|
|
|