// Global Variables

var ajax_controller_main2 = '/lib/ajax/domaincheck_ajax.asp';
var guiForm;
var orderItemsForm;
var dictionaryForm;
var guiFormName = '';
var chooserFilter = '';
var queryCount = 1;

// ------------------------------------------------------------------------------

function checkDomain(vDomainName) {
	v_callmethod = 'checkdomain';
	strURL = 'callmethod=' + v_callmethod
	strURL = strURL + '&domainname=' + vDomainName
	document.getElementById('checkButton').disabled = true;
	//alert(strURL + ajax_controller_main2); 
	PassAjaxResponseToFunctionUsingPost(ajax_controller_main2, strURL, 'checkDomain_return', 'null');
	return true;
}

function checkDomain_return(str_response) {
	//alert('Response: ' + str_response); 
	arr_response = str_response.split('||');
	if ( arr_response[0] == '1') {
		document.getElementById('divContactForm').innerHTML = arr_response[1]
	} else {
		alert(arr_response[1]);
	}
	document.getElementById('checkButton').disabled = false;
	return true;
}

