/*
EuroCV SOAP Link, Version TfP.0.1

By Translations for Progress (M. Kolar), January 2007

Copyright (C) 2007
http://www.eurocv.eu - staff@eurocv.eu
and
http://www.translationsforprogress.org/

File ajax_tfp.js: used only by the demonstration file index.html found in this
		  directory
*/

function requestCV(pac)
{
	var url = 'proxy.php';

    var myAjax = new Ajax.Updater( 'cvplaceholder', url, { method: 'post', parameters: 'pac='+escape(pac), onComplete: completed});

    $('loader').style.display = '';
}

function getCV(pac,lic)
{
	var url = 'proxy.php';
	var pars = 'captcha=' + $('captcha').value + '&pac='+escape(pac) + '&lic='+escape(lic);

    var myAjax = new Ajax.Updater( 'cvplaceholder', url, { method: 'post', parameters: pars, onComplete: completed});

    $('loader').style.display = '';
}

function completed(){
  $('loader').style.display = 'none';
}


function toggle(item) {
 if( document.getElementById(item).style.display=='none' ){
   document.getElementById(item).style.display = '';
 }else{
   document.getElementById(item).style.display = 'none';
 }
}
