";
document.getElementById("div_addonDomainsInAccount").innerHTML = html_account;
//document.getElementById("div_addonDomainsInAccount").innerHTML = "You must login to see the domains in your account
Username
Password
";
document.getElementById("input_username").focus();
}
}
}
function checkAllCheckOut(domains, prefix, checked)
{
for (var i = 0; i < domains.length; i++)
{
if(box = document.getElementById(prefix + domains[i]))
{
if(box.checked != checked)
{
box.checked = checked;
box.onclick();
}
}
}
}
function processCheckoutPageSubmit()
{
resetLoadingDiv();
document.getElementById("LoadingDiv").style.display = 'block';
if(document.getElementById("span_agreementText")) document.getElementById("span_agreementText").style.color = '';
if(document.getElementById("span_billingOptionsText")) document.getElementById("span_billingOptionsText").style.color = '';
if(!document.getElementById("agreement_checkbox").checked)
{
if(document.getElementById("span_agreementText")) document.getElementById("span_agreementText").style.color = 'red';
alert("You must agree to the registration terms and conditions.");
return;
}
if(document.getElementById("idn_tag_default"))
{
idnTagDefault = document.getElementById("idn_tag_default").value.trim();
}
if(document.getElementById("payment_method_credit_card").checked)
processCreditCard();
else if(document.getElementById("payment_method_paypal").checked)
processPayPal();
else if(document.getElementById("payment_method_account_credit").checked)
processAccountCredit();
else
{
if(document.getElementById("span_billingOptionsText")) document.getElementById("span_billingOptionsText").style.color = 'red';
alert("Invalid payment option.");
}
}
function processAddOnServices(handler)
{
// addons disabled
//return;
if(!handler)
{
handler = processAddOnServicesPopupHandler;
}
document.getElementById("LoadingDiv").style.display = 'block';
getURL('/products-pricing/services/productCart.php?action=processaddonservices&promoCode='+document.getElementById("promo_code").value.trim(), handler, 1);
}
function processAddOnServicesInlineHandler(status, content, contentType)
{
if(status != 200 && status != 0)
{
resetLoadingDiv();
return;
}
var results = eval('('+content+')');
if(!results["status"])
{
resetLoadingDiv();
return;
}
var addOnProducts;
var addOnProductsAdditional;
if(results["haveAddOnProducts"])
{
addOnProducts = results["addOnProductsArray"]["addOnProducts"]["products"];
addOnProductsAdditional = results["addOnProductsArray"]["addOnProducts"]["additional"];
resetLoadingDiv();
}
else
{
resetLoadingDiv();
return;
}
var addOnProductsLength = 0;
if(!addOnProducts)
{
resetLoadingDiv();
return;
}
else
addOnProductsLength = addOnProducts.length;
if(!addOnProductsLength)
{
resetLoadingDiv();
return;
}
// addon HTML
var html = "";
if(addOnProductsLength > 0)
document.getElementById("span_addOnProducts").style.display = "";
for(var i = 0; i < addOnProductsLength; i++)
{
var product = addOnProducts[i];
var productName = product["name"];
var productType = product["type"];
var productPrice = product["price"];
var productTeaser = product["teaser"];
var productDetails = product["details"];
var productImage = product["image"];
var productContentPagePath = product["contentPagePath"];
var productCount = addOnProductsAdditional[productType]["count"];
var durationDropBox = "";
var currentQty = 0;
var style = "";
var moreHtml = "More ";
var css_id = productName.substring(0,3);
var add_link = "";
//html += "
"+productTeaser+"
"+moreHtml+"Add To Cart
";
if(productName != "Rapid Blog")
add_link = moreHtml+"Add To Cart";
html += "
"+productTeaser+"
"+add_link+"
";
}
document.getElementById("span_addOnProducts_inner").innerHTML = html;
resetLoadingDiv();
}
function processAddOnServicesDomainSelect(productType, productName)
{
getURL('/products-pricing/services/productCart.php?action=getaddondomainlist&name='+productName+'&type='+productType, processAddOnServicesDomainSelectHandler, 0);
}
function processAddOnServiceDomainsPopup(productType)
{
if(document.getElementById("input_addOnServiceDomainsPopupSubmit_1"))
document.getElementById("input_addOnServiceDomainsPopupSubmit_1").disabled = true;
if(document.getElementById("input_addOnServiceDomainsPopupSubmit_2"))
document.getElementById("input_addOnServiceDomainsPopupSubmit_2").disabled = true;
getURL('/products-pricing/services/productCart.php?action=getaddonextendedrequirements&type='+productType, processAddOnServiceDomainsPopupHandler, 0);
}
function processAddOnServiceDomainsPopupHandler(status, content, contentType)
{
if(status != 200 && status != 0)
{
alert("Something went wrong. Please refresh the page and try again. ("+status+")");
return;
}
var results = eval('('+content+')');
if(document.getElementById("input_addOnServiceDomainsPopupSubmit_1"))
document.getElementById("input_addOnServiceDomainsPopupSubmit_1").disabled = false;
if(document.getElementById("input_addOnServiceDomainsPopupSubmit_2"))
document.getElementById("input_addOnServiceDomainsPopupSubmit_2").disabled = false;
if(!results["status"])
{
alert("Something went wrong. Please try again.");
return;
}
var addonExtended = results["addonExtended"];
if(!addonExtended)
{
doNotRestLoadingDiv = 0;
resetLoadingDiv();
return;
}
var fieldsLength = addonExtended.length;
var addOnFields;
var data;
var productType = results["type"];
if(fieldsLength > 0)
{
addOnFields = new Object;
for(var i = 0; i < fieldsLength; i++)
{
var fieldName = addonExtended[i]["name"];
var fieldRequired = addonExtended[i]["required"];
if(document.getElementById(fieldName) && document.getElementById(fieldName).value)
addOnFields[fieldName] = document.getElementById(fieldName).value.trim();
}
}
if(addOnFields)
{
getURL('/products-pricing/services/productCart.php?action=submitaddonextendedrequirements&type='+productType+"&jsondata="+encodeURIComponent(addOnFields.toJSONString()), processAddOnServiceDomainsPopupHandlerSubmitHandler, 0);
return;
}
doNotRestLoadingDiv = 0;
resetLoadingDiv();
}
function processAddOnServiceDomainsPopupHandlerSubmitHandler(status, content, contentType)
{
if(status != 200 && status != 0)
{
alert("Something went wrong. Please refresh the page and try again. ("+status+")");
return;
}
var results = eval('('+content+')');
if(!results["status"])
{
alert(results["message"]);
return;
}
doNotRestLoadingDiv = 0;
resetLoadingDiv();
}
function processAddOnServicesDomainSelectHandler(status, content, contentType)
{
if(status != 200 && status != 0)
{
resetLoadingDiv();
return;
}
var results = eval('('+content+')');
if(!results["status"])
{
resetLoadingDiv();
return;
}
var addOnDomainsArray = results["addOnDomainsArray"];
var addonExtendedInfo = results["addonExtendedInfo"];
var productPrice = results["price"];
var productType = results["type"];
var productName = addonExtendedInfo["name"];
var productDetails = addonExtendedInfo["details"];
globalCurrentAddOnDomainListType = "account";
globalCurrentAddOnProductType = productType;
globalCurrentAddOnProductName = productName;
document.getElementById("span_addOnProducts_domainSelect").style.display = "block";
var html = "";
/*
html += "
";
html += "
";
html += "
";
html += "
";
html += "
"+productName+"
";
html += productDetails;
html += "
Price: $"+formatCurrency(productPrice, true)+" / domain";
html += "
";
html += "
";
html += "
";
html += "
";
html += "Add To Domains In Cart | Add To Domains In Account
";
html+="
";
html += (addOnDomainsArray.length) ? "" : "Empty Cart";
html+="
";
for(var i = 0; i < addOnProductsLength; i++)
{
var product = addOnProducts[i];
var productName = product["name"];
var productType = product["type"];
var productPrice = product["price"];
var productDetails = product["details"];
var productCount = addOnProductsAdditional[productType]["count"];
var durationDropBox = "";
if(productCount)
{
durationDropBox += "
Number of this product to add: ";
}
html += "" + productName + "
";
html += " ";
document.getElementById("span_loading_content").innerHTML = html;
document.getElementById("LoadingDiv_inner").style.height = 600;
document.getElementById("LoadingDiv_inner").style.width = 400;
document.getElementById("LoadingDiv").style.paddingTop = "50px";
document.getElementById("LoadingDiv").style.background = "url(/javascript/images/transbg.png)";
document.getElementById("LoadingDiv").style.display = 'block';
document.getElementById("LoadingDiv").style.overflow = 'auto';
if(document.getElementById("outer"))
{
document.getElementById("LoadingDiv").style.height = document.getElementById("outer").offsetHeight;
}
}
function processAccountCredit()
{
document.getElementById("LoadingDiv").style.display = 'block';
getURL('/products-pricing/services/productCart.php?action=processaccountcredit&promoCode='+document.getElementById("promo_code").value.trim()+"&idnTagDefault="+idnTagDefault, processAccountCreditHandler);
}
function processAccountCreditHandler(status, content, contentType)
{
if(status != 200 && status != 0)
{
alert("Something went wrong. Please refresh the page and try again. ("+status+")");
resetLoadingDiv();
return;
}
var results = eval('('+content+')');
if(!results["status"])
{
alert(results["message"]);
//if(!results["accountId"])
location.reload();
resetLoadingDiv();
return;
}
window.location = ("/management/view_invoice.php?checkout=1&id="+results["orderId"]);
}
function processPayPal()
{
document.getElementById("LoadingDiv").style.display = 'block';
getURL('/products-pricing/services/productCart.php?action=processpaypal&promoCode='+document.getElementById("promo_code").value.trim()+"&idnTagDefault="+idnTagDefault, processPayPalHandler);
}
function processPayPalHandler(status, content, contentType)
{
if(status != 200 && status != 0)
{
alert("Something went wrong. Please refresh the page and try again. ("+status+")");
resetLoadingDiv();
return;
}
var results = eval('('+content+')');
if(!results["status"])
{
alert(results["message"]);
//if(!results["accountId"])
location.reload();
resetLoadingDiv();
return;
}
window.location = ("https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token="+results["payPalToken"]);
}
function processCreditCard()
{
var fieldsLength = currentCreditCardFormFields.length;
var data = new Object;
var validated = 1;
for(var i = 0; i < fieldsLength; i++)
{
data[currentCreditCardFormFields[i]["name"]] = (document.getElementById(currentCreditCardFormFields[i]["name"]).value.trim());
if(data[currentCreditCardFormFields[i]["name"]] || !currentCreditCardFormFields[i]["required"])
{
document.getElementById("td_"+currentCreditCardFormFields[i]["name"]).style.color = "#000000";
}
else
{
validated = 0;
document.getElementById("td_"+currentCreditCardFormFields[i]["name"]).style.color = "red";
}
}
if(validated)
{
document.getElementById("LoadingDiv").style.display = 'block';
getURL('/products-pricing/services/productCart.php?action=processcreditcard&promoCode='+document.getElementById("promo_code").value.trim()+'&jsondata='+encodeURIComponent(data.toJSONString())+"&idnTagDefault="+idnTagDefault, processCreditCardHandler);
}
else
alert("Please complete the billing items in red.");
}
function processCreditCardHandler(status, content, contentType)
{
if(status != 200 && status != 0)
{
alert("Something went wrong. Please refresh the page and try again. ("+status+")");
resetLoadingDiv();
return;
}
var results = eval('('+content+')');
if(!results["status"])
{
if(results["notCompletedArray"])
{
var fieldsLength = results["notCompletedArray"].length;
for(var i = 0; i < fieldsLength; i++)
{
document.getElementById("td_"+results["notCompletedArray"][i]).style.color = "red";
}
}
alert(results["message"]);
//if(!results["accountId"])
location.reload();
resetLoadingDiv();
return;
}
window.location = ("/management/view_invoice.php?checkout=1&id="+results["orderId"]);
}
function prepareCreditCardForm()
{
var data = getBillingFormDataObject();
creditCardFormInnerHTMLSwap = document.getElementById("div_creditCardForm").innerHTML;
creditCardFormDataSwap = getBillingFormDataObject();
document.getElementById("div_creditCardForm").innerHTML = "
Loading billing information...";
getURL('/products-pricing/services/productCart.php?action=getCreditCardFormFields', prepareCreditCardFormHandler);
}
function prepareCreditCardFormHandler(status, content, contentType)
{
if(status != 200 && status != 0)
{
alert("Something went wrong. Please refresh the page and try again. ("+status+")");
document.getElementById("div_creditCardForm").innerHTML = creditCardFormInnerHTMLSwap;
populateCreditCardForm(creditCardFormDataSwap);
creditCardFormInnerHTMLSwap = "";
creditCardFormDataSwap = "";
return;
}
var results = eval('('+content+')');
if(!results["status"])
{
alert(results["message"]);
document.getElementById("div_creditCardForm").innerHTML = creditCardFormInnerHTMLSwap;
populateCreditCardForm(creditCardFormDataSwap);
creditCardFormInnerHTMLSwap = "";
creditCardFormDataSwap = "";
return;
}
var html = "";
var credtCardFormFieldsLeft = results["credtCardFormFields"]["left"];
var credtCardFormFieldsLeftLength = credtCardFormFieldsLeft.length;
var credtCardFormFieldsRight = results["credtCardFormFields"]["right"];
var credtCardFormFieldsRightLength = credtCardFormFieldsRight.length;
var credtCardFormFieldsLength = 0;
currentCreditCardFormFields = new Array();
(credtCardFormFieldsLeftLength > credtCardFormFieldsRightLength) ? credtCardFormFieldsLength = credtCardFormFieldsLeftLength : credtCardFormFieldsLength = credtCardFormFieldsRightLength;
document.getElementById("div_creditCardForm").innerHTML = creditCardFormInnerHTMLSwap;
html+= "";
document.getElementById("span_creditCardForm").innerHTML = html;
if(document.getElementById("payment_method_credit_card").checked)
document.getElementById("div_creditCardForm").style.display = "";
creditCardFormInnerHTMLSwap = "";
creditCardFormDataSwap = "";
}
function getInputHtml(type, name, options, value)
{
var html = "";
if(!value) value = "";
if(type == "text")
{
var textValue = "";
html += "";
}
else if(type == "hidden")
{
var textValue = "";
html += "";
}
else if(type == "select")
{
var optionsLengh = options.length;
var selected = "";
html += "";
}
else if(type == "radio")
{
var optionsLengh = options.length;
var selected = "";
var hiddenInput = "";
for(var j = 0; j < optionsLengh; j++)
{
selected = "";
var onClick = "document.getElementById(\""+name+"\").value = this.value;";
if(value == options[j]["value"])
{
selected = "checked";
hiddenInput = "";
}
html += " "+options[j]["string"]+"
";
}
html += hiddenInput;
}
return(html);
}
function specialRequirementsForm(tld)
{
scroll(0,0);
loadingDivInnerHTMLSwap = document.getElementById("span_loading_content").innerHTML;
document.getElementById("span_loading_content").innerHTML = "
Preparing special ."+tld+" requirements...";
document.getElementById("LoadingDiv_inner").style.height = 600;
document.getElementById("LoadingDiv_inner").style.width = 400;
document.getElementById("LoadingDiv").style.paddingTop = "50px";
document.getElementById("LoadingDiv").style.background = "url(/javascript/images/transbg.png)";
document.getElementById("LoadingDiv").style.display = 'block';
document.getElementById("LoadingDiv").style.overflow = 'auto';
if(document.getElementById("outer"))
{
document.getElementById("LoadingDiv").style.height = document.getElementById("outer").offsetHeight;
}
getURL('/products-pricing/services/productCart.php?action=getSpecialTldRequirementsForTld&tld='+tld, specialRequirementsFormPrepareHandler);
}
function specialRequirementsFormPrepareHandler(status, content, contentType)
{
if(status != 200 && status != 0)
{
alert("Something went wrong. Please refresh the page and try again. ("+status+")");
return;
}
var results = eval('('+content+')');
if(!results["status"])
{
alert(results["message"]);
return;
}
currentSpecialTld = results["tld"];
currentSpecialTldFields = results["specialTldInfo"]["fields"];
document.getElementById("span_loading_content").style.textAlign = "left";
var type = results["specialTldInfo"]["type"];
var fieldsLength = results["specialTldInfo"]["fields"].length;
var html = "";
html += " Special requirement for ."+results["tld"]+"
Required sections are highlighted in orange. ";
html += "
";
for(var i = 0; i < fieldsLength; i++)
{
var fields = results["specialTldInfo"]["fields"][i];
var required = fields["required"];
var borderHtml = "";
if(required)
borderHtml = "border:1px solid #FF6800;";
html += "
"+""+fields["label"]+"
";
html += getInputHtml(fields["type"], fields["name"], fields["options"], results["specialTldInfo"]["data"][fields["name"]]);
html += "
";
}
html += "
";
html += "
";
document.getElementById("span_loading_content").innerHTML = html;
}
function processSpecialTldForm()
{
var fieldsLength = currentSpecialTldFields.length;
var data = new Object;
var validated = 1;
for(var i = 0; i < fieldsLength; i++)
{
data[currentSpecialTldFields[i]["name"]] = (document.getElementById(currentSpecialTldFields[i]["name"]).value.trim());
if(data[currentSpecialTldFields[i]["name"]] || !currentSpecialTldFields[i]["required"])
{
document.getElementById("td_"+currentSpecialTldFields[i]["name"]).style.color = "#000000";
}
else
{
validated = 0;
document.getElementById("td_"+currentSpecialTldFields[i]["name"]).style.color = "red";
}
}
if(validated)
getURL('/products-pricing/services/productCart.php?action=processSpecialTldData&tld='+currentSpecialTld+"&jsondata="+encodeURIComponent(data.toJSONString()), processSpecialTldFormHandler);
else
alert("Please complete the items in red.");
}
function processSpecialTldFormHandler(status, content, contentType)
{
if(status != 200 && status != 0)
{
alert("Something went wrong. Please refresh the page and try again. ("+status+")");
return;
}
var results = eval('('+content+')');
if(!results["status"])
{
alert(results["message"]);
return;
}
resetLoadingDiv();
prepareCheckoutLoggedIn();
}
function nullHandler(status, content, contentType)
{
}
function getBillingFormDataObject()
{
var data = new Object;
if(document.getElementById("input_cc_type")) data["cc_type"] = (document.getElementById("input_cc_type").value);
if(document.getElementById("input_cc_exp_m")) data["cc_exp_m"] = (document.getElementById("input_cc_exp_m").value);
if(document.getElementById("input_cc_exp_y")) data["cc_exp_y"] = (document.getElementById("input_cc_exp_y").value);
if(document.getElementById("input_cc_country")) data["cc_country"] = (document.getElementById("input_cc_country").value);
if(document.getElementById("input_cc_phone")) data["cc_phone"] = (document.getElementById("input_cc_phone").value);
if(document.getElementById("input_cc_address")) data["cc_address"] = (document.getElementById("input_cc_address").value);
if(document.getElementById("input_cc_city")) data["cc_city"] = (document.getElementById("input_cc_city").value);
if(document.getElementById("input_cc_state")) data["cc_state"] = (document.getElementById("input_cc_state").value);
if(document.getElementById("input_cc_zip")) data["cc_zip"] = (document.getElementById("input_cc_zip").value);
if(document.getElementById("input_cc_name")) data["cc_name"] = (document.getElementById("input_cc_name").value);
if(document.getElementById("input_cc_number")) data["cc_number"] = (document.getElementById("input_cc_number").value);
if(document.getElementById("input_cc_cvm")) data["cc_cvm"] = (document.getElementById("input_cc_cvm").value);
if(document.getElementById("input_cc_email")) data["cc_email"] = (document.getElementById("input_cc_email").value);
return(data);
}
function saveBilling()
{
var data = getBillingFormDataObject();
creditCardFormInnerHTMLSwap = document.getElementById("div_creditCardForm").innerHTML;
creditCardFormDataSwap = getBillingFormDataObject();
document.getElementById("div_creditCardForm").innerHTML = "
Saving billing information...";
getURL('/products-pricing/services/productCart.php?action=saveBillingData&jsondata='+encodeURIComponent(data.toJSONString()), saveBillingHandler);
}
function saveBillingHandler(status, content, contentType)
{
if(status != 200 && status != 0)
{
alert("Something went wrong. Please refresh the page and try again. ("+status+")");
document.getElementById("div_creditCardForm").innerHTML = creditCardFormInnerHTMLSwap;
populateCreditCardForm(creditCardFormDataSwap);
creditCardFormInnerHTMLSwap = "";
creditCardFormDataSwap = "";
return;
}
var results = eval('('+content+')');
if(!results["status"])
{
alert(results["message"]);
document.getElementById("div_creditCardForm").innerHTML = creditCardFormInnerHTMLSwap;
populateCreditCardForm(creditCardFormDataSwap);
creditCardFormInnerHTMLSwap = "";
creditCardFormDataSwap = "";
return;
}
document.getElementById("div_creditCardForm").innerHTML = creditCardFormInnerHTMLSwap;
if(results["jsondata"])
populateCreditCardForm(results["jsondata"]);
else
populateCreditCardForm(creditCardFormDataSwap);
creditCardFormInnerHTMLSwap = "";
creditCardFormDataSwap = "";
prepareCreditCardForm();
}
function prepareCheckoutLoggedInDisplay(accountId, accountCredit)
{
var html = "";
prepareBillingOptions(accountCredit);
prepareCreditCardForm();
}
function prepareBillingOptions(accountCredit)
{
if(accountCredit > 0)
{
document.getElementById("span_accountCreditAvailable").innerHTML = formatCurrency(accountCredit, true);
document.getElementById("span_accountCreditOption").style.display = "block";
}
}
function populateCreditCardForm(data)
{
if(document.getElementById("option_ccType_"+data["cc_type"])) document.getElementById("option_ccType_"+data["cc_type"]).selected = "true";
if(document.getElementById("option_ccExpM_"+data["cc_exp_m"])) document.getElementById("option_ccExpM_"+data["cc_exp_m"]).selected = "true";
if(document.getElementById("option_ccExpY_"+data["cc_exp_y"])) document.getElementById("option_ccExpY_"+data["cc_exp_y"]).selected = "true";
if(document.getElementById("option_ccCountry_"+data["cc_country"])) document.getElementById("option_ccCountry_"+data["cc_country"]).selected = "true";
if(document.getElementById("input_cc_phone")) document.getElementById("input_cc_phone").value = data["cc_phone"]
if(document.getElementById("input_cc_address")) document.getElementById("input_cc_address").value = data["cc_address"]
if(document.getElementById("input_cc_city")) document.getElementById("input_cc_city").value = data["cc_city"]
if(document.getElementById("input_cc_state")) document.getElementById("input_cc_state").value = data["cc_state"]
if(document.getElementById("input_cc_zip")) document.getElementById("input_cc_zip").value = data["cc_zip"]
if(document.getElementById("input_cc_name")) document.getElementById("input_cc_name").value = data["cc_name"]
if(document.getElementById("input_cc_number")) document.getElementById("input_cc_number").value = data["cc_number"]
if(document.getElementById("input_cc_cvm")) document.getElementById("input_cc_cvm").value = data["cc_cvm"]
if(document.getElementById("input_cc_email")) document.getElementById("input_cc_email").value = data["cc_email"]
}
function prepareCheckoutLoggedIn(ignorePrepareCheckoutLoggedIn)
{
if(!ignorePrepareCheckoutLoggedIn) ignorePrepareCheckoutLoggedIn = "";
document.getElementById("LoadingDiv").style.display = 'block';
getURL('/products-pricing/services/productCart.php?action=checkSpecialTldRequirements&ignorePrepareCheckoutLoggedIn='+ignorePrepareCheckoutLoggedIn, checkSpecialTldRequirementsHandler);
}
function checkSpecialTldRequirementsHandler(status, content, contentType)
{
if(status != 200 && status != 0)
{
alert("Something went wrong. Please refresh the page and try again. ("+status+")");
document.getElementById("LoadingDiv").style.display='none';
return;
}
var results = eval('('+content+')');
var haveIncomplete = 0;
if(results["status"])
{
var html = "";
var specialTldArrayLength = results["specialTldArray"].length;
html += "
Special TLD Requirements
";
html += "The following TLDs have special requirements. Before continuing you must complete the requirements for each of them if you have not already done so. Items with an orange border require completion.
";
html += "
";
html += "
TLD
Requirements
Action
";
for(var i = 0; i < specialTldArrayLength; i++)
{
var tld = results["specialTldArray"][i];
var editRequirementsLink = (results["specialTldInfoArray"][tld]["complete"]) ? "Edit Requirements" : "Complete Requirements";
var borderHtml = "";
if(!results["specialTldInfoArray"][tld]["complete"])
{
borderHtml = "border:2px solid #FF6800;"
haveIncomplete = 1;
}
html += "