function downloadFile(theFile, post_download) {

    document.location.href = theFile;

    setTimeout(function(){

        document.location.href = post_download;

    }, 4000);
}

function download_proae()
{ 
	downloadFile('http://www.verbace.com/cgi-bin/downl.cgi?VerbAcePro_ArabEng_1.06.exe', 'ondownloadproae.htm');
}

function download_prose()
{ 
	downloadFile('http://www.verbace.com/cgi-bin/downl.cgi?VerbAcePro_SpanEng_1.05.exe', 'ondownloadprose.htm');
}

var getjs = function (value) {
	if (! value)
		return;

	url = 'http://www.verbace.com/cgi-bin/sendcode.cgi?'+value;
	document.getElementById ('checkresult').innerHTML = 'Checking ...';
	var elem = document.createElement ('script');
	elem.setAttribute ('src', url);
	elem.setAttribute ('type','text/javascript');
	document.getElementsByTagName ('head') [0].appendChild (elem);
};

var sendres = function (data) {
	var found = false;
    var url='';
	var text = data [0];

	if (!text) {
		document.getElementById ('checkresult').innerHTML = 'No Results.';
	} else {
		document.getElementById ('checkresult').innerHTML = text;
	}
};

