// JavaScript Document

function reportBug(page){
	var bug;
	bug = window.prompt('Please enter a description of the bug:','');

	if((bug != "") && (bug != null)){
		var e;
		e = document.getElementById('bugClick');
		e.innerHTML = 'processing report';
		e.style.textDecoration = 'blink';
		//reportBugDone(bug);
		ajaxSend('http://www.aavpa.org/bug.asp?bug=' + bug + '&page=' + page, reportBugDone);
	}else{
		return;
	}
}		
	
function reportBugDone(result){
	var e;
	e = document.getElementById('bugClick');
	if(result=='ok'){
		response = 'Thankyou, your bug has been submitted';
	}else{
		response = 'There was a problem submitting the bug to the database, please try again later';
	}
	e.innerHTML = response;
	e.style.textDecoration = 'none';
	e.style.color = '#000000';
}