function CheckForm() {
	//!temporary
	if (document.getElementById("product").value == 8) {
		//if hosted edition
		if (document.getElementById("license_kmp_hosted").selectedIndex == 0) {
			//if no license selected
			alert("You need to choose desired plan first");
			return false;
		}
		if (
			document.getElementById('suport_kmp_hosted_5').selectedIndex == 0 &&
			document.getElementById('suport_kmp_hosted_10').selectedIndex == 0 &&
			document.getElementById('suport_kmp_hosted_25').selectedIndex == 0 &&
			document.getElementById('suport_kmp_hosted_50').selectedIndex == 0 &&
			document.getElementById('suport_kmp_hosted_100').selectedIndex == 0 &&
			document.getElementById('suport_kmp_hosted_250').selectedIndex == 0 &&
			document.getElementById('suport_kmp_hosted_500').selectedIndex == 0 &&
			document.getElementById('suport_kmp_hosted_1000').selectedIndex == 0 &&
			document.getElementById('suport_kmp_hosted_2500').selectedIndex == 0 &&
			document.getElementById('suport_kmp_hosted_5000').selectedIndex == 0 &&
			document.getElementById('suport_kmp_hosted_10000').selectedIndex == 0
			) {
			// if billing option is no selected
			alert("You need to choose billing option first");
			return false;
		}
		if (!check_domain('http://www.web-site-scripts.com/member-area/check_domain.php', '.h4kb.com')) {
			// if domain is not valid
			alert("You need to choose available desired subdomain first");
			return false;
		}
		if(!isEmail('email')) {
			// if email is not valid
			alert("You need to enter your contact email first");
			return false;
		}
	} else {
		// if owned edition
		if (document.getElementById("selected_license_price").value == 0) {
			alert("You need to choose license type first");
			return false;
		}
	}
	//!temporary
/*
    if (document.getElementById("selected_license_price").value == 0) {
        alert("You need to choose license type first");
        return false;
    }
	*/
    return true;
}

function showMySupports(licenseID) {
    var s_tables = document.getElementsByTagName("table");
    for (var i in s_tables) {
        if (s_tables[i].id) {
            if (s_tables[i].id.match("t_support_"+licenseID)) {
                s_tables[i].style.display = "";
            } else if (s_tables[i].id.match("t_support_")) {
                s_tables[i].style.display = "none";
            }
        }
        
    }
    var s_inputs = document.getElementsByTagName("input");
    for (i=0;i<s_inputs.length;i++) {
        if (s_inputs[i].type == "radio" && s_inputs[i].name == "support" && s_inputs[i].value == '0') {
            s_inputs[i].checked = "checked";
        } else if (s_inputs[i].type == "radio" && s_inputs[i].name == "support") {
            s_inputs[i].checked = false;
        }
        
    }
    document.getElementById('selected_support_price').value = '0';
}

function hideMySupports() {
    var s_tables = document.getElementsByTagName("table");
    for (var i in s_tables) {
        if (s_tables[i].id) {
            if (s_tables[i].id.match("t_support_")) {
                s_tables[i].style.display = "none";
            } else if (s_tables[i].id.match("t_support_")) {
                s_tables[i].style.display = "none";
            }
        }
        
    }
	document.getElementById('t_support_0').style.display = 'block';
	document.getElementById('t_support_02').style.display = 'block';
    document.getElementById('selected_support_price').value = '0';
}

function CalcTotal() {
    if (document.getElementById("selected_license_price").value != 0) {
        var addPrice = 0;
        var s_inputs = document.getElementsByTagName("input");
        for (var i in s_inputs) {
            if (s_inputs[i].type == "checkbox" && s_inputs[i].name.match("service") && s_inputs[i].checked) {
                addPrice += parseFloat(document.getElementById('price_'+s_inputs[i].id).value);
            }
            
        }
        var Total = new Number(parseFloat(document.getElementById('selected_license_price').value) + parseFloat(document.getElementById('selected_support_price').value) + addPrice);
        document.getElementById("td_total").innerHTML = "<strong>$ "+ FormatTotalStr(Total) + "</strong>";
    } else {
		document.getElementById("td_total").innerHTML = "<strong>$ 0.00</strong>";
	}
}

function FormatTotalStr(Total) {

    var C = "";
    var K = "";
    var B = "";
    var length = Total.toFixed(2).toString().length;
    if (Total.toFixed(2).toString().substr(length-2) != "00") {
        C = Total.toFixed(2).toString().substr(length-3);
    }
	if (length >= 6) {
		B = Total.toFixed(2).toString().substr(length-6, 3);
		K = Total.toFixed(2).toString().substr(0, length-6);
	} else {
		B = Total.toFixed(2).toString().substr(0, length-3);
	}
    if (K.length > 0) {
        K += ",";
    }
    return K+B+C;
}


function check_domain_name()
{
	//12 is a length of subdomain .host4kb.com
	if (!document.getElementById('domain').value.match(/^[a-zA-Z0-9]+[a-zA-Z0-9\-]*[a-zA-Z0-9]+$|^[a-zA-Z]{1}$/) || document.getElementById('domain').value.length >= (63 - 12)) {
		document.getElementById('check_domain_message').innerHTML = '<font color="red">Subdomain name is incorrect. Subdomain name must start and end with a letter or digit, and have as interior characters only letters, digits, or hyphens (-). Please adjust your input.</font>';
		if (document.getElementById('domain').value == '') {
			document.getElementById('check_domain_message').innerHTML = '';
		}
		return false;
	} else { 
		document.getElementById('check_domain_message').innerHTML = '';
	}
	return true;	
}

function isEmail(el) 
{ 

	var string = document.getElementById(el).value;
	if (string == '') {
		document.getElementById('check_email_fld').innerHTML = '<font color="red">Please enter your contact email</font>';
		//document.getElementById('add_to_cart').disabled = true;
		
		return false;
	}	
	
	if ((string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)) {
		//all ok
		// document.getElementById('check_email_fld').innerHTML = '<font color="green">Email is valid.</font>';
		document.getElementById('check_email_fld').innerHTML = '';
		/*
		if (
			document.getElementById('suport_kmp_hosted_5').selectedIndex != 0 ||
			document.getElementById('suport_kmp_hosted_10').selectedIndex != 0 ||
			document.getElementById('suport_kmp_hosted_25').selectedIndex != 0 ||
			document.getElementById('suport_kmp_hosted_50').selectedIndex != 0 ||
			document.getElementById('suport_kmp_hosted_100').selectedIndex != 0 ||
			document.getElementById('suport_kmp_hosted_250').selectedIndex != 0 ||
			document.getElementById('suport_kmp_hosted_500').selectedIndex != 0 ||
			document.getElementById('suport_kmp_hosted_1000').selectedIndex != 0 
			) {*/
			//document.getElementById('add_to_cart').disabled = false;
		//}
		
		return true;
	} else {
		document.getElementById('check_email_fld').innerHTML = '<font color="red">Email is not valid. Please adjust your input.</font>';
		if (document.getElementById(el).value == '') {
			document.getElementById('check_email_fld').innerHTML = '';
		}
		//document.getElementById('add_to_cart').disabled = true;

		return false;
	}
}


function check_domain(url, subdomain)
{
	if (!check_domain_name()) {
		//document.getElementById('add_to_cart').disabled = true;
		return false;
	}
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null)
	  {
	  alert ("Browser does not support HTTP Request, unable to check domain");
	  return;
	  }

	//var url="{$domain_checker}";
	
	if (document.getElementById('domain').value == '') {
		return false;
	}

	url=url+"?domain=" + document.getElementById('domain').value;
	url=url+"&sid="+Math.random();
	//xmlhttp.onreadystatechange=stateChanged;
	
	xmlhttp.open("GET",url,false);
	xmlhttp.send(null);
	
	return stateChanged(xmlhttp.responseText);
}

function stateChanged(param)
{

	//if (xmlhttp.readyState==4)
	//{
		if (param == 1) {
			document.getElementById('check_domain_message').innerHTML = '<font color="green">Subdomain is available.</font>';
			/*
			if (
				(document.getElementById('suport_kmp_hosted_5').selectedIndex != 0 ||
				document.getElementById('suport_kmp_hosted_10').selectedIndex != 0 ||
				document.getElementById('suport_kmp_hosted_25').selectedIndex != 0 ||
				document.getElementById('suport_kmp_hosted_50').selectedIndex != 0 ||
				document.getElementById('suport_kmp_hosted_100').selectedIndex != 0 ||
				document.getElementById('suport_kmp_hosted_250').selectedIndex != 0 ||
				document.getElementById('suport_kmp_hosted_500').selectedIndex != 0 ||
				document.getElementById('suport_kmp_hosted_1000').selectedIndex != 0) &&
				document.getElementById('email').value != ''
				) {
				*/
				//document.getElementById('add_to_cart').disabled = false;
				//}
				return true;
		} else {
			document.getElementById('check_domain_message').innerHTML = '<font color="red">This subdomain has been already taken. Please choose any other.</font>';
			//document.getElementById('add_to_cart').disabled = true;
			return false;
		}
	//}
}

function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  // code for IE6, IE5
  return new ActiveXObject('Microsoft.XMLHTTP');
  }
return null;
}

//!!!!!!!!!!!!!!!!!!!!!!!!!!
//temporary functions
//!!!!!!!!!!!!!!!!!!!!!!!!!!

function support_set_price2_kmp_hosted_5() 
{
	switch (document.getElementById('suport_kmp_hosted_5').options[document.getElementById('suport_kmp_hosted_5').selectedIndex].value) 
	{

		case 'monthly' : 
			document.getElementById('selected_support_price').value = 0;
			document.getElementById('selected_license_price').value = 50.00; 
			document.buy_form.action  = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '259';
			document.getElementById('support_price_p2_kmp_hosted_5').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			
			break;
		case 'yearly' : 
			document.getElementById('selected_support_price').value = 0; 
			document.getElementById('selected_license_price').value = 500.00; 
			document.buy_form.action = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '267';
			document.getElementById('support_price_p2_kmp_hosted_5').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
	}
	document.buy_form.selected_billing_option.value = document.getElementById('suport_kmp_hosted_5').options[document.getElementById('suport_kmp_hosted_5').selectedIndex].value;
	/*
	var string = document.getElementById('email').value;
	if (string != '') {
		document.getElementById('add_to_cart').disabled = false;
	}
	*/
}
function support_set_price2_kmp_hosted_10() 
{
	switch (document.getElementById('suport_kmp_hosted_10').options[document.getElementById('suport_kmp_hosted_10').selectedIndex].value) 
	{

		case 'monthly' : 
			document.getElementById('selected_support_price').value = 0;
			document.getElementById('selected_license_price').value = 100.00; 
			document.buy_form.action  = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '260';
			document.getElementById('support_price_p2_kmp_hosted_10').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
		case 'yearly' : 
			document.getElementById('selected_support_price').value = 0; 
			document.getElementById('selected_license_price').value = 1000.00; 
			document.buy_form.action = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '268';
			document.getElementById('support_price_p2_kmp_hosted_10').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
	}
	document.buy_form.selected_billing_option.value = document.getElementById('suport_kmp_hosted_10').options[document.getElementById('suport_kmp_hosted_10').selectedIndex].value;
	/*
	var string = document.getElementById('email').value;
	if (string != '') {
		document.getElementById('add_to_cart').disabled = false;
	}
	*/
}
function support_set_price2_kmp_hosted_25() 
{
	switch (document.getElementById('suport_kmp_hosted_25').options[document.getElementById('suport_kmp_hosted_25').selectedIndex].value) 
	{

		case 'monthly' : 
			document.getElementById('selected_support_price').value = 0;
			document.getElementById('selected_license_price').value = 150.00; 
			document.buy_form.action  = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '261';
			document.getElementById('support_price_p2_kmp_hosted_25').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
		case 'yearly' : 
			document.getElementById('selected_support_price').value = 0; 
			document.getElementById('selected_license_price').value = 1500.00; 
			document.buy_form.action = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '269';
			document.getElementById('support_price_p2_kmp_hosted_25').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
	}
	document.buy_form.selected_billing_option.value = document.getElementById('suport_kmp_hosted_25').options[document.getElementById('suport_kmp_hosted_25').selectedIndex].value;
	/*
	var string = document.getElementById('email').value;
	if (string != '') {
		document.getElementById('add_to_cart').disabled = false;
	}
	*/
}
function support_set_price2_kmp_hosted_50() 
{
	switch (document.getElementById('suport_kmp_hosted_50').options[document.getElementById('suport_kmp_hosted_50').selectedIndex].value) 
	{

		case 'monthly' : 
			document.getElementById('selected_support_price').value = 0;
			document.getElementById('selected_license_price').value = 225.00; 
			document.buy_form.action  = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '262';
			document.getElementById('support_price_p2_kmp_hosted_50').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
		case 'yearly' : 
			document.getElementById('selected_support_price').value = 0; 
			document.getElementById('selected_license_price').value = 2250.00; 
			document.buy_form.action = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '270';
			document.getElementById('support_price_p2_kmp_hosted_50').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
	}
	document.buy_form.selected_billing_option.value = document.getElementById('suport_kmp_hosted_50').options[document.getElementById('suport_kmp_hosted_50').selectedIndex].value;
	/*
	var string = document.getElementById('email').value;
	if (string != '') {
		document.getElementById('add_to_cart').disabled = false;
	}
	*/
}
function support_set_price2_kmp_hosted_100() 
{
	switch (document.getElementById('suport_kmp_hosted_100').options[document.getElementById('suport_kmp_hosted_100').selectedIndex].value) 
	{

		case 'monthly' : 
			document.getElementById('selected_support_price').value = 0;
			document.getElementById('selected_license_price').value = 300.00; 
			document.buy_form.action  = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '263';
			document.getElementById('support_price_p2_kmp_hosted_100').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
		case 'yearly' : 
			document.getElementById('selected_support_price').value = 0; 
			document.getElementById('selected_license_price').value = 3000.00; 
			document.buy_form.action = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '271';
			document.getElementById('support_price_p2_kmp_hosted_100').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
	}
	document.buy_form.selected_billing_option.value = document.getElementById('suport_kmp_hosted_100').options[document.getElementById('suport_kmp_hosted_100').selectedIndex].value;
	/*
	var string = document.getElementById('email').value;
	if (string != '') {
		document.getElementById('add_to_cart').disabled = false;
	}
	*/
}
function support_set_price2_kmp_hosted_250() 
{
	switch (document.getElementById('suport_kmp_hosted_250').options[document.getElementById('suport_kmp_hosted_250').selectedIndex].value) 
	{

		case 'monthly' : 
			document.getElementById('selected_support_price').value = 0;
			document.getElementById('selected_license_price').value = 500.00; 
			document.buy_form.action  = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '264';
			document.getElementById('support_price_p2_kmp_hosted_250').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
		case 'yearly' : 
			document.getElementById('selected_support_price').value = 0; 
			document.getElementById('selected_license_price').value = 5000.00; 
			document.buy_form.action = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '272';
			document.getElementById('support_price_p2_kmp_hosted_250').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
	}
	document.buy_form.selected_billing_option.value = document.getElementById('suport_kmp_hosted_250').options[document.getElementById('suport_kmp_hosted_250').selectedIndex].value;
	/*
	var string = document.getElementById('email').value;
	if (string != '') {
		document.getElementById('add_to_cart').disabled = false;
	}
	*/
}
function support_set_price2_kmp_hosted_500() 
{
	switch (document.getElementById('suport_kmp_hosted_500').options[document.getElementById('suport_kmp_hosted_500').selectedIndex].value) 
	{

		case 'monthly' : 
			document.getElementById('selected_support_price').value = 0;
			document.getElementById('selected_license_price').value = 700.00; 
			document.buy_form.action  = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '265';
			document.getElementById('support_price_p2_kmp_hosted_500').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
		case 'yearly' : 
			document.getElementById('selected_support_price').value = 0; 
			document.getElementById('selected_license_price').value = 7000.00; 
			document.buy_form.action = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '273';
			document.getElementById('support_price_p2_kmp_hosted_500').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
	}
	document.buy_form.selected_billing_option.value = document.getElementById('suport_kmp_hosted_500').options[document.getElementById('suport_kmp_hosted_500').selectedIndex].value;
	/*
	var string = document.getElementById('email').value;
	if (string != '') {
		document.getElementById('add_to_cart').disabled = false;
	}
	*/
}
function support_set_price2_kmp_hosted_1000() 
{
	switch (document.getElementById('suport_kmp_hosted_1000').options[document.getElementById('suport_kmp_hosted_1000').selectedIndex].value) 
	{

		case 'monthly' : 
			document.getElementById('selected_support_price').value = 0;
			document.getElementById('selected_license_price').value = 1000.00; 
			document.buy_form.action  = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '266';
			document.getElementById('support_price_p2_kmp_hosted_1000').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
		case 'yearly' : 
			document.getElementById('selected_support_price').value = 0; 
			document.getElementById('selected_license_price').value = 10000.00; 
			document.buy_form.action = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '274';
			document.getElementById('support_price_p2_kmp_hosted_1000').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
	}
	document.buy_form.selected_billing_option.value = document.getElementById('suport_kmp_hosted_1000').options[document.getElementById('suport_kmp_hosted_1000').selectedIndex].value;
	/*
	var string = document.getElementById('email').value;
	if (string != '') {
		document.getElementById('add_to_cart').disabled = false;
	}
	*/
}
function support_set_price2_kmp_hosted_2500() 
{
	switch (document.getElementById('suport_kmp_hosted_2500').options[document.getElementById('suport_kmp_hosted_2500').selectedIndex].value) 
	{

		case 'monthly' : 
			document.getElementById('selected_support_price').value = 0;
			document.getElementById('selected_license_price').value = 1200.00; 
			document.buy_form.action  = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '293';
			document.getElementById('support_price_p2_kmp_hosted_2500').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
		case 'yearly' : 
			document.getElementById('selected_support_price').value = 0; 
			document.getElementById('selected_license_price').value = 12000.00; 
			document.buy_form.action = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '296';
			document.getElementById('support_price_p2_kmp_hosted_2500').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
	}
	document.buy_form.selected_billing_option.value = document.getElementById('suport_kmp_hosted_2500').options[document.getElementById('suport_kmp_hosted_2500').selectedIndex].value;
	/*
	var string = document.getElementById('email').value;
	if (string != '') {
		document.getElementById('add_to_cart').disabled = false;
	}
	*/
}
function support_set_price2_kmp_hosted_5000() 
{
	switch (document.getElementById('suport_kmp_hosted_5000').options[document.getElementById('suport_kmp_hosted_5000').selectedIndex].value) 
	{

		case 'monthly' : 
			document.getElementById('selected_support_price').value = 0;
			document.getElementById('selected_license_price').value = 1500.00; 
			document.buy_form.action  = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '294';
			document.getElementById('support_price_p2_kmp_hosted_5000').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
		case 'yearly' : 
			document.getElementById('selected_support_price').value = 0; 
			document.getElementById('selected_license_price').value = 15000.00; 
			document.buy_form.action = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '297';
			document.getElementById('support_price_p2_kmp_hosted_5000').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
	}
	document.buy_form.selected_billing_option.value = document.getElementById('suport_kmp_hosted_5000').options[document.getElementById('suport_kmp_hosted_5000').selectedIndex].value;
	/*
	var string = document.getElementById('email').value;
	if (string != '') {
		document.getElementById('add_to_cart').disabled = false;
	}
	*/
}
function support_set_price2_kmp_hosted_10000() 
{
	switch (document.getElementById('suport_kmp_hosted_10000').options[document.getElementById('suport_kmp_hosted_10000').selectedIndex].value) 
	{

		case 'monthly' : 
			document.getElementById('selected_support_price').value = 0;
			document.getElementById('selected_license_price').value = 2000.00; 
			document.buy_form.action  = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '295';
			document.getElementById('support_price_p2_kmp_hosted_10000').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
		case 'yearly' : 
			document.getElementById('selected_support_price').value = 0; 
			document.getElementById('selected_license_price').value = 20000.00; 
			document.buy_form.action = "../member-area/pay_redirect.php";
			document.getElementById('add_to_cart').value = 'Buy Now';
			document.buy_form.id.value = '298';
			document.getElementById('support_price_p2_kmp_hosted_10000').innerHTML = '<strong>$ ' + FormatTotalStr(new Number(parseFloat(document.getElementById('selected_license_price').value))) + '</strong>';
			break;
	}
	document.buy_form.selected_billing_option.value = document.getElementById('suport_kmp_hosted_10000').options[document.getElementById('suport_kmp_hosted_10000').selectedIndex].value;
	/*
	var string = document.getElementById('email').value;
	if (string != '') {
		document.getElementById('add_to_cart').disabled = false;
	}
	*/
}
