function skypestatus() {
	var get_filename	= 'checkSkype.php'; // The php file ajax will collect information from
	var get_method		= 'GET'; // use method get to retrieve the information
	var post_params		= null;
	var return_function	= 'process_get_vars'; // function to run when information is retrieved
	getajax(get_filename, get_method, post_params, return_function);
}

function getajax(page, mode, sendparams, do_on_return, no_cache){
	var verification = Math.floor(Math.random()*10000000+1);
	if(! no_cache == true){
		page = (page.indexOf('?') == -1) ? page+'?verify='+verification : page+'&verify='+verification;
	}
    var xmlhttp = false;
    /*@cc_on @*/
    /*@if (@_jscript_version >= 5)
    try {
        xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
    } catch (e) {
        try { xmlhttp = new ActiveXObject('Microsoft.XMLHTTP'); } catch (E) {
		xmlhttp = false;
		}
    }
    @end @*/
    if(!xmlhttp){ xmlhttp=new XMLHttpRequest();	}
    xmlhttp.open(mode, page, true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState == 4) { 
			eval(do_on_return+'(xmlhttp.responseText);');
		}
    }
xmlhttp.send(sendparams);
}

function process_get_vars(response) {
	
	// Process the information received from the ajax script
	var reply = response;
	document.getElementById('skype_status').innerHTML = reply;
	
}
function clear_box(x){
	if (x.value=='Customer ID'){
		x.value = '';
		x.style.color = '#000000';
	}
}
function add_box(x){
	if (x.value==""){
		x.value='Customer ID';
		x.style.color = '#999999';
	}
}
function clear_domain(x){
	if (x.value=='www.website.com'){
		x.value = '';
		x.style.color = '#000000';
	}
}
function add_domain(x){
	if (x.value==""){
		x.value='www.website.com';
		x.style.color = '#999999';
	}
}
