Quantcast
Subscription Pop Up

Subscription Pop Up

{source}
<script type="text/javascript">


var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1875487-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
<script language="javascript" type="text/javascript">

function GetFirstIndexFromDD(oDropDown, sValue)
{
for (i = 0 ; i < oDropDown.length ; i++)
{
if (oDropDown[i].value.toUpperCase() == sValue.toUpperCase())
{
return i;
}
}


return -1;
}

function trim(sTextToTrim){
var iStart;
var iEnd;
var userInput;
var cChar;

iStart = 0;

userInput = sTextToTrim;
iEnd = userInput.length - 1;
cChar = userInput.charAt(iStart);

while ((iStart <= iEnd) && ((cChar == "\n") || (cChar == "\r") || (cChar == "\t") || (cChar == " ")))
{
iStart ++;
cChar = userInput.charAt(iStart);
}
cChar = userInput.charAt(iEnd);
while ((iEnd >= 0) && ((cChar == "\n") || (cChar == "\r") || (cChar == "\t") || (cChar == " ")))
{
iEnd --;
cChar = userInput.charAt(iEnd);
}

if (iStart <= iEnd){
return userInput.substring(iStart,iEnd +1);
}
else
{
return "";
}
}

function OpenWindow(url)
{
popupWin = window.open(url,"BigCover","top=0,left=0,height=600,width=450,toolbar=no,menubar=no,location=no,directories=no,resizable=1,scrollbars=YES,status=no");

}

function ValidateEmail(sEmail)
{
var chkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.@_/";
var chkStr = sEmail;
var bValid = true;
var check_AtSign = false;
var check_Period = false;
for (i = 0; i < chkStr.length; i++)
{
ch = chkStr.charAt(i);
for (j = 0; j < chkOK.length; j++)
{
if (ch == chkOK.charAt(j))
break;
if (j == chkOK.length)
{
bValid = false;
break;
}
}

if (ch == '@') check_AtSign = true
if (ch == '.') check_Period = true
}
if (!bValid)
return false;


if (!check_AtSign || !check_Period)
return false;
return true;
}

function ValidatePhone(sPhone)
{
if (trim(sPhone) != "" )
{ var chkOK = "0123456789-(). ";
var chkStr = sPhone;
var bValid = true;
for (i = 0; i < chkStr.length; i++)
{ ch = chkStr.charAt(i);
for (j = 0; j < chkOK.length; j++)
if (ch == chkOK.charAt(j))
break;
if (j == chkOK.length)
{ bValid = false;
break;
}
}

if (!bValid)
return false;

}
return true;
}


/*
* Cross-browser event handling, by Scott Andrew
*/
function addEvent(element, eventType, lamdaFunction, useCapture) {
if (element.addEventListener) {
element.addEventListener(eventType, lamdaFunction, useCapture);
return true;
} else if (element.attachEvent) {
var r = element.attachEvent('on' + eventType, lamdaFunction);
return r;
} else {
return false;
}
}

/*
* Kills an event's propagation and default action
*/
function knackerEvent(eventObject) {
if (eventObject && eventObject.stopPropagation) {
eventObject.stopPropagation();
}
if (window.event && window.event.cancelBubble ) {
window.event.cancelBubble = true;
}

if (eventObject && eventObject.preventDefault) {
eventObject.preventDefault();
}
if (window.event) {
window.event.returnValue = false;
}
}

/*
* Safari doesn't support canceling events in the standard way, so we must
* hard-code a return of false for it to work.
*/
function cancelEventSafari() {
return false;       
}

/*
* Cross-browser style extraction, from the JavaScript & DHTML Cookbook
* <http://www.oreillynet.com/pub/a/javascript/excerpt/JSDHTMLCkbk_chap5/index5.html>
*/
function getElementStyle(elementID, CssStyleProperty) {
var element = document.getElementById(elementID);
if (element.currentStyle) {
return element.currentStyle[toCamelCase(CssStyleProperty)];
} else if (window.getComputedStyle) {
var compStyle = window.getComputedStyle(element, '');
return compStyle.getPropertyValue(CssStyleProperty);
} else {
return '';
}
}

/*
* CamelCases CSS property names. Useful in conjunction with 'getElementStyle()'
* From <http://dhtmlkitchen.com/learn/js/setstyle/index4.jsp>
*/
function toCamelCase(CssProperty) {
var stringArray = CssProperty.toLowerCase().split('-');
if (stringArray.length == 1) {
return stringArray[0];
}
var ret = (CssProperty.indexOf("-") == 0)
? stringArray[0].charAt(0).toUpperCase() + stringArray[0].substring(1)
: stringArray[0];
for (var i = 1; i < stringArray.length; i++) {
var s = stringArray[i];
ret += s.charAt(0).toUpperCase() + s.substring(1);
}
return ret;
}

/*
* Disables all 'test' links, that point to the href '#', by Ross Shannon
*/
function disableTestLinks() {
var pageLinks = document.getElementsByTagName('a');
for (var i=0; i<pageLinks.length; i++) {
if (pageLinks[i].href.match(/[^#]#$/)) {
addEvent(pageLinks[i], 'click', knackerEvent, false);
}
}
}

/*
* Cookie functions
*/
function createCookie(name, value, days) {
var expires = '';
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
var expires = '; expires=' + date.toGMTString();
}
document.cookie = name + '=' + value + expires + '; path=/';
}

function readCookie(name) {
var cookieCrumbs = document.cookie.split(';');
var nameToFind = name + '=';
for (var i = 0; i < cookieCrumbs.length; i++) {
var crumb = cookieCrumbs[i];
while (crumb.charAt(0) == ' ') {
crumb = crumb.substring(1, crumb.length); /* delete spaces */
}
if (crumb.indexOf(nameToFind) == 0) {
return crumb.substring(nameToFind.length, crumb.length);
}
}
return null;
}

function eraseCookie(name) {
createCookie(name, '', -1);
}

/*
* Clear Default Text: functions for clearing and replacing default text in
* <input> elements.
*
* by Ross Shannon, http://www.yourhtmlsource.com/
*/

addEvent(window, 'load', init, false);

function init() {
var formInputs = document.getElementsByTagName('input');
for (var i = 0; i < formInputs.length; i++) {
var theInput = formInputs[i];

if (theInput.type == 'text' && theInput.className.match(/\bcleardefault\b/)) { 
/* Add event handlers */         
addEvent(theInput, 'focus', clearDefaultText, false);
addEvent(theInput, 'blur', replaceDefaultText, false);

/* Save the current value */
if (theInput.value != '') {
theInput.defaultText = theInput.value;
}
}
}
}

function clearDefaultText(e) {
var target = window.event ? window.event.srcElement : e ? e.target : null;
if (!target) return;

if (target.value == target.defaultText) {
target.value = '';
}
}

function replaceDefaultText(e) {
var target = window.event ? window.event.srcElement : e ? e.target : null;
if (!target) return;

if (target.value == '' && target.defaultText) {
target.value = target.defaultText;
}
}


</script>

<form name="subNewForm" method="post" action="https://www.pubservice.com/Subnew.aspx?PC=BS&PK=MPUJ11" language="javascript" onsubmit="javascript:return unDefault(this);javascript:_gaq.push(['_trackEvent', 'Pop-up Subscription', 'Submit']);javascript:return WebForm_OnSubmit();" id="subNewForm">

<script type="text/javascript">
<!--
var theForm = document.forms['subNewForm'];
if (!theForm) {
theForm = document.subNewForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
// -->
</script>


<script language="javascript"> document.title= 'Bust Magazine'; </script><script language="Javascript">
function ValidateDemos(){
var tbDoOther;
var tBul;
return true;
}
</script><script language="Javascript">
function ValidateNumericDemos(){
var tbDoOther;
var tBul;
return true;
}
</script>
<!--
<script type="text/javascript">
var StateStartIndexArray = new Array();
StateStartIndexArray["UNITED STATES"] = 0;
function GetStateStartIndex(CountryName) { var sStateStartIndex = StateStartIndexArray[CountryName]; var nStateStartIndex = parseInt(sStateStartIndex); if (isNaN(nStateStartIndex)) { return 0; } else { return nStateStartIndex; } }
function ST_OnCountryChanged(CountryName) { document.forms[0].ST.selectedIndex = GetStateStartIndex(CountryName); }
</script>
<script type="text/javascript">
var StateCountryArray = new Array();
StateCountryArray["01"] = "UNITED STATES";
StateCountryArray["AA"] = "UNITED STATES";
StateCountryArray["AE"] = "UNITED STATES";
StateCountryArray["AK"] = "UNITED STATES";
StateCountryArray["AL"] = "UNITED STATES";
StateCountryArray["AP"] = "UNITED STATES";
StateCountryArray["AR"] = "UNITED STATES";
StateCountryArray["AS"] = "UNITED STATES";
StateCountryArray["AZ"] = "UNITED STATES";
StateCountryArray["CA"] = "UNITED STATES";
StateCountryArray["CO"] = "UNITED STATES";
StateCountryArray["CT"] = "UNITED STATES";
StateCountryArray["DC"] = "UNITED STATES";
StateCountryArray["DE"] = "UNITED STATES";
StateCountryArray["FL"] = "UNITED STATES";
StateCountryArray["FM"] = "UNITED STATES";
StateCountryArray["GA"] = "UNITED STATES";
StateCountryArray["GU"] = "UNITED STATES";
StateCountryArray["HI"] = "UNITED STATES";
StateCountryArray["IA"] = "UNITED STATES";
StateCountryArray["ID"] = "UNITED STATES";
StateCountryArray["IL"] = "UNITED STATES";
StateCountryArray["IN"] = "UNITED STATES";
StateCountryArray["KS"] = "UNITED STATES";
StateCountryArray["KY"] = "UNITED STATES";
StateCountryArray["LA"] = "UNITED STATES";
StateCountryArray["MA"] = "UNITED STATES";
StateCountryArray["MD"] = "UNITED STATES";
StateCountryArray["ME"] = "UNITED STATES";
StateCountryArray["MH"] = "UNITED STATES";
StateCountryArray["MI"] = "UNITED STATES";
StateCountryArray["MN"] = "UNITED STATES";
StateCountryArray["MO"] = "UNITED STATES";
StateCountryArray["MP"] = "UNITED STATES";
StateCountryArray["MS"] = "UNITED STATES";
StateCountryArray["MT"] = "UNITED STATES";
StateCountryArray["NC"] = "UNITED STATES";
StateCountryArray["ND"] = "UNITED STATES";
StateCountryArray["NE"] = "UNITED STATES";
StateCountryArray["NH"] = "UNITED STATES";
StateCountryArray["NJ"] = "UNITED STATES";
StateCountryArray["NM"] = "UNITED STATES";
StateCountryArray["NV"] = "UNITED STATES";
StateCountryArray["NY"] = "UNITED STATES";
StateCountryArray["OH"] = "UNITED STATES";
StateCountryArray["OK"] = "UNITED STATES";
StateCountryArray["OR"] = "UNITED STATES";
StateCountryArray["PA"] = "UNITED STATES";
StateCountryArray["PR"] = "UNITED STATES";
StateCountryArray["PW"] = "UNITED STATES";
StateCountryArray["RI"] = "UNITED STATES";
StateCountryArray["SC"] = "UNITED STATES";
StateCountryArray["SD"] = "UNITED STATES";
StateCountryArray["TN"] = "UNITED STATES";
StateCountryArray["TX"] = "UNITED STATES";
StateCountryArray["UT"] = "UNITED STATES";
StateCountryArray["VA"] = "UNITED STATES";
StateCountryArray["VI"] = "UNITED STATES";
StateCountryArray["VT"] = "UNITED STATES";
StateCountryArray["WA"] = "UNITED STATES";
StateCountryArray["WI"] = "UNITED STATES";
StateCountryArray["WV"] = "UNITED STATES";
StateCountryArray["WY"] = "UNITED STATES";
function GetCountryIndex(StateCode) { var sCountryName = StateCountryArray[StateCode]; if (sCountryName == "" || sCountryName == "UNITED STATES") { return 0; } else { return GetFirstIndexFromDD(document.forms[0].shipCountry_ddCountry, sCountryName); } }
function shipCountry_ddCountry_OnStateChanged(StateCode) { document.forms[0].shipCountry_ddCountry.selectedIndex = GetCountryIndex(StateCode); }
</script>

<script src="https://www.pubservice.com//WebResource.axd?d=_e3j7dnnqEV12FZTxPkTDRVez7M27D4r9sqjA1FJ0IU1KNwsVmUyQsSYcnUisaFCg8We3VwPiZsxcGwsICxtjZ3KzOg1&t=634244938914809245" type="text/javascript"></script>
<script type="text/javascript">
-->
<!--
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;return ValidationSetFocusOnSubmit();
return true;
}
// -->
</script>
<input id="selectedRateKey" type="hidden" name="selectedRateKey">
<input id="isHandlingCodeOnline" type="hidden" value="False" name="isHandlingCodeOnline">
<input id="hiddenpromoKey" type="hidden" value="MPUN11" name="hiddenpromoKey">
<input id="hiddenAcctNo" type="hidden" name="hiddenAcctNo">

<table width="570" border="0" cellspacing="0" cellpadding="0" bgcolor="#e9007b">
<tr>
<td><img src="http://www.bust.com/images/pop_ups/tavi-pop2.jpg" width="570"></td>
</tr>
<tr>
<td><table width="568" border="0" cellpadding="10" cellspacing="0" bgcolor="#DD026A">
<tr>
<td style="color: white; font-weight: bold; font-family: Georgia,"Times New Roman",Times,serif; font-size: 14px;color=white;" colspan="2">Yes! Please rush me my full year of BUST magazine for just $19.95! </td>
</tr>
<tr>
<td width="200">
<input id="FN" name="FN" type="text" value="First Name" size="30" maxlength="30" class="cleardefault">
</td>
<td width="282"><input id="LN" name="LN" type="text" value="Last Name" size="30" maxlength="30" class="cleardefault"></td>
</tr>
<tr>
<td><input id="A1" name="A1" type="text" value="Address 1" size="30" class="cleardefault"><span controltovalidate="A1" enabled="False" id="RequiredADD1validator" evaluationfunction="RequiredFieldValidatorEvaluateIsValid" initialvalue="" style="color:Red;visibility:hidden;"></td>
<td><input id="A2" name="A2" type="text" value="Address 2" size="30" class="cleardefault"></td>
</tr>
<tr>
<td><input id="CT" name="CT" type="text" value="City" size="30" class="cleardefault"> </td>
<td><select id="ST" class="DropDown" name="ST">

<option selected="selected" value="01">State</option>
<option value="AL">AL</option>
<option value="AK">AK</option>
<option value="AS">AS</option>
<option value="AZ">AZ</option>
<option value="AR">AR</option>
<option value="AA">AA</option>
<option value="AE">AE</option>
<option value="AP">AP</option>
<option value="CA">CA</option>
<option value="CO">CO</option>
<option value="CT">CT</option>
<option value="DE">DE</option>
<option value="DC">DC</option>
<option value="FM">FM</option>
<option value="FL">FL</option>
<option value="GA">GA</option>
<option value="GU">GU</option>
<option value="HI">HI</option>
<option value="ID">ID</option>
<option value="IL">IL</option>
<option value="IN">IN</option>
<option value="IA">IA</option>
<option value="KS">KS</option>
<option value="KY">KY</option>
<option value="LA">LA</option>
<option value="ME">ME</option>
<option value="MH">MH</option>
<option value="MD">MD</option>
<option value="MA">MA</option>
<option value="MI">MI</option>
<option value="MN">MN</option>
<option value="MS">MS</option>
<option value="MO">MO</option>
<option value="MT">MT</option>
<option value="NE">NE</option>
<option value="NV">NV</option>
<option value="NH">NH</option>
<option value="NJ">NJ</option>
<option value="NM">NM</option>
<option value="NY">NY</option>
<option value="NC">NC</option>
<option value="ND">ND</option>
<option value="OH">OH</option>
<option value="OK">OK</option>
<option value="OR">OR</option>
<option value="PW">PW</option>
<option value="PA">PA</option>
<option value="PR">PR</option>
<option value="RI">RI</option>
<option value="SC">SC</option>
<option value="SD">SD</option>
<option value="TN">TN</option>
<option value="TX">TX</option>
<option value="UT">UT</option>
<option value="VT">VT</option>
<option value="VI">VI</option>
<option value="VA">VA</option>
<option value="WA">WA</option>
<option value="WV">WV</option>
<option value="WI">WI</option>
<option value="WY">WY</option>

</select>

<span style="color:Red;display:none;" evaluationfunction="CustomValidatorEvaluateIsValid" id="Customstatevalidator" display="Dynamic"></span> <input id="ZP" name="ZP" type="text" value="Zip" size="10" maxlength="10" class="cleardefault"></td>
</tr>
<tr>
<td><input id="EM" name="EM" type="text" value="Email" size="30" maxlength="30" class="cleardefault"><input type="hidden" value="4890" name="Rates:RateCode" id="Rates_RateCode_0"></td>
<td><input onclick="return ValidateNumericDemos(); if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(''); " name="shippingSubmitBtn" id="shippingSubmitBtn" class="Button" value="Submit" type="submit">
</td>
</tr>
</table></td
</tr>
</table>





</div>

<script type="text/javascript">
<!--
var Page_ValidationSummaries = new Array(document.getElementById("valSum"));
var Page_Validators = new Array(document.getElementById("CustomFormValidator"), document.getElementById("RequiredADD1validator"), document.getElementById("RequiredCityvalidator"), document.getElementById("Customstatevalidator"), document.getElementById("Customzipvalidator"), document.getElementById("RequiredEMailValidator"), document.getElementById("CustomEMailvalidator"));
// -->
</script>


<script type="text/javascript">
<!--

var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
ValidatorOnLoad();
}

function ValidatorOnSubmit() {
if (Page_ValidationActive) {
return ValidatorCommonOnSubmit();
}
else {
return true;
}
}
// -->
</script>
<script type="text/javascript">document.getElementById("FN").focus();</script></form>
















<script language="javascript">

function ValidationSetFocusOnSubmit()
{
var ElementToFocus = "";

if (typeof(Page_ValidationSummaries) == "undefined")
return;

/*
if (! ValidateDemos())
{
return false;
}
*/
if (!Page_IsValid)
{
for (i=0; i<Page_Validators.length; i++)
{
if (!Page_Validators[i].isvalid && ElementToFocus == "") {
ElementToFocus = Page_Validators[i].controltovalidate;
break;
}
}
}

if (ElementToFocus != "")
{
var control = document.all[ElementToFocus];
if (control)
{
if (control.focus)
{
control.focus();
}
}
}
}

function DisableMe()
{
setTimeout('DisableButton()', 10)
}

function DisableButton()
{
document.subNewForm.billingSubmitBtn.disabled = true;
}
function billMe_OnSelected()
{
if (document.getElementById("billMe").checked)
{
if (document.getElementById("ccType"))
{
document.getElementById("ccType").selectedIndex = 0;
}
}
}


function ccType_OnSelectIndexChanged()
{
if (document.getElementById("ccType").selectedIndex > 0)
{
document.getElementsByName("paymentType").item(0).checked = true;
if (document.getElementById("billMe"))
{
document.getElementById("billMe").checked = false;
}
}
}

function isDemoChecked(demoType)
{
var iLength = 0;

for (iLength = 0; iLength < document.subNewForm[demoType].length; iLength ++)
{
if (document.subNewForm[demoType][iLength].checked)
{
if (document.subNewForm[demoType][iLength].value == "Y")
{
return true;
}
else
{
return false;
}
}
}
}

function selectedDemoCountForBM()
{
var selectedDemoCount = 0;

if (isDemoChecked("T4"))
{
selectedDemoCount += 1;
}

if (isDemoChecked("CN"))
{
selectedDemoCount += 1;
}



}

function submitFormForNewRates()
{
var noOfDemosSelected = 0;

noOfDemosSelected = selectedDemoCountForBM();

if (noOfDemosSelected == 0)
{
alert("Please select atleast one edition.");
return false;
}
else
{
document.subNewForm.submit();
}
}
</script>

<script language="JavaScript">
function checkNumeric(objName,minval, maxval,comma,period,hyphen)
{
var numberfield = objName;
if (chkNumeric(objName,minval,maxval,comma,period,hyphen) == false)
{
numberfield.select();
numberfield.focus();
return false;
}
else
{
return true;
}
}

function chkNumeric(objName,minval,maxval,comma,period,hyphen)
{
// only allow 0-9 be entered, plus any values passed
// (can be in any order, and don't have to be comma, period, or hyphen)
// if all numbers allow commas, periods, hyphens or whatever,
// just hard code it here and take out the passed parameters
var checkOK = "0123456789" + comma + period + hyphen;
var checkStr = objName;
var allValid = true;
var decPoints = 0;
var allNum = "";

for (i = 0; i < checkStr.value.length; i++)
{
ch = checkStr.value.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
if (ch != ",")
allNum += ch;
}
if (!allValid)
{
alertsay = "Please enter only these values \""
alertsay = alertsay + checkOK + "\" in the \"" + checkStr.name + "\" field."
//alert(alertsay);
return (false);
}

// // set the minimum and maximum
// var chkVal = allNum;
// var prsVal = parseInt(allNum);
// if (chkVal != "" && !(prsVal >= minval && prsVal <= maxval))
// {
// alertsay = "Please enter a value greater than or "
// alertsay = alertsay + "equal to \"" + minval + "\" and less than or "
// alertsay = alertsay + "equal to \"" + maxval + "\" in the \"" + checkStr.name + "\" field."
// alert(alertsay);
// return (false);
// }

return (true);
}
</script>


<script type="text/javascript" language="javascript">
function AlertTotalAmt(oThis, orderAmt, freightAmt) {
var totalOrderAmt = 0
totalOrderAmt = parseFloat(orderAmt) + parseFloat(freightAmt);

alert('Your total order amount will be : $' + totalOrderAmt.toFixed(2));
}

function OnChange(dropdown) {
var myindex = dropdown.selectedIndex
var SelValue = dropdown.options[myindex].value
var SelText = dropdown.options[myindex].text

document.getElementById("disbankaccttype").innerHTML = "<B>" + SelText + "</b>";

return true;
}
function unDefault(form){
var editables={'text':true, 'textarea':true}
for(var e=0; e<form.elements.length; e++){
if(editables[form.elements[e].type] && form.elements[e].value==form.elements[e].defaultValue){form.elements[e].value='';}
}
return true;
/*keep this comment to reuse freely
http://www.fullposter.com/?1*/}
</script>









</form>


{/source}