This content is available to wirereport.ca subscribers
Already a subscriber? Sign in here
Unlock all the Canadian telecom, broadcasting and digital media news you need.
Take a free trial or subscribe to The Wire Report now.
FREE TRIAL
Two weeks free access to thewirereport.ca and our exlusive newsletters.
SUBSCRIBE
Unlimited access to thewirereport.ca and our exlusive newsletters.
$( "#sign-in-pop-up-link" ).on( "click", function(){
if( $( "#login-box" ).css("display") == 'none') {
$( "#login-box" ).css("display", "block");
$("#login_email").focus();
} else {
$( "#login-box" ).css("display", "none");
}
});
// Global
function validateField(strFieldName, errMsg)
{
strFieldNameErr = strFieldName + "Err";
strField = $( strFieldName ).val();
if(strField != '')
{
$(strFieldName).css("border-color", "black");
errSet = false;
}
else
{
$(strFieldName).attr("placeholder", errMsg);
$(strFieldName).css("border-color", "#f79279");
$(strFieldName).focus();
errSet = true;
}
return errSet;
}
function validateLoginForm()
{
// validate name, phone number and organization
if(validateField('#strUsername', 'Please enter your username.')) return false;
if(validateField('#strPassword', 'Please enter your password.')) return false;
$('#ftform').submit();
}
function submitTrialForm()
{
$.get('/wp-content/themes/wirereport/sendEmail.php?' + $('#ftform2').serialize());
$("#formContent").html('
Thanks for your interest!
We will contact you shortly to grant you access to
The Wire Report.
');
var FTanalyticsData = {
hitType: 'event',
eventCategory: 'free-trial-submit',
eventAction: 'button-click',
eventLabel: 'Free Trial Requested',
value: 1,
};
ga('send', FTanalyticsData);
}
function submitSubscribeForm()
{
$.get('/wp-content/themes/wirereport/sendEmail.php?' + $('#ftform3').serialize());
$("#formContent3").html('
Thanks for your interest!
We will contact you shortly to grant you access to
The Wire Report.
');
var FTanalyticsData = {
hitType: 'event',
eventCategory: 'subscribe-submit',
eventAction: 'button-click',
eventLabel: 'Subscription Requested',
value: 1,
};
ga('send', FTanalyticsData);
}
function validateTrialForm()
{
if(validateField('#strTrialEmail', 'Please enter your email address')) return false;
submitTrialForm();
}
function validateSubscribeForm()
{
if(validateField('#strSubscribeEmail', 'Please enter your email address')) return false;
submitSubscribeForm();
}
$( document ).ready(function() {
$( "#strName" ).focus();
});