function addDomains() {
	var formObj = arguments[0].form
	var mainDomain = arguments[0].value
	var mail = "mail." + mainDomain.replace("http://", "").replace("www.", "")
	var ftp = "ftp." + mainDomain.replace("http://", "").replace("www.", "")
	formObj.MailDomain.value = mail;
	formObj.FTPDomain.value = ftp;
	}
	
	
Number.prototype.decimalFormat = function () {
	var val =  (this * 100) / 100;;
	var bits = val.toString().split(".");
	if (bits.length == 1) {
		bits[1] = "00";
		}
	val = bits[0] + "." + (bits[1].length == 1 ? bits[1].toString() + "0" : bits[1]);
	return val;
	}
	
	
function dynamicWindow(str, w, h)
	{
	dynamicPopup = window.open("about:blank","dynamicPopup","status=1,width=" + w + ",height=" + h);
	docStyle = document.getElementsByTagName("link");

	docStyles = "";
	for (i=0; i < docStyle.length; ++i) {
		//docStyles += docStyle[i].outerHTML;
		}

	dynamicPopup.document.write(docStyles + str);
	dynamicPopup.document.title = document.title;
	dynamicPopup.document.close();
	}
	
function openVC() {
	var content = "<html><title>What are Credit Card Verification Numbers</title></html><body><style>body,li,ul,ol,p,div,td,a {font-family:arial; font-size:9pt;}</style><h2>Credit Card Verification Numbers</h2><p>The Credit Card Verification (CCV) Number is printed on your credit card and provides you with extra security.</p><p>The location of the number varies from card to card:</p><ul><li><strong>Visa, Mastercard and Bankcard</strong><br><br>- Several digits are printed in the signature area on the back of your card. The last three digits make up the CCV Number. <br><img src=\"/images/cvv.jpg\" title=\"Credit Card Verification (CCV) Number\" alt=\"Credit Card Verification (CCV) Number\" /></li></ul><br><a href=\"javascript:window.close()\"><strong>close window</strong></a></body></html>";
	dynamicWindow(content, 400, 400);
	}