function fC()
{
 objCnt('FR|19','France');
 objCnt('GB|20','United Kingdom(GB)');
}
function fillCity()
{
  clDdl();
  switch(document.getElementById('ddlAptCountry').value)
	{
	case 'FR|19': 
		fCt6();
		break;
	case 'GB|20':
		fCt26();
		break;
	default: alert('error');
	}
}
function clDdl()
{
var CT = document.getElementById('ddlAptCity');
var Idx=CT.options.length;
for (var l=1; parseInt(l)< Idx;) {
    if(l<CT.options.length)
	 CT.options[parseInt(l)] = null;
    else
	 break;
}
}
function objCt(a,b)
{
op= new Option();
op.text=a;
op.value=b;
document.getElementById('ddlAptCity').options[document.getElementById('ddlAptCity').options.length]=op;
}
function objCnt(a,b)
{
op= new Option();
op.text=b;
op.value=a;
document.getElementById('ddlAptCountry').options[document.getElementById('ddlAptCountry').options.length]=op;
}
function fCt6()
{
objCt('Paris','PAR|2332');
objCt('Paris Marne-la-Vallee','MLV|3931');
}
function fCt26()
{
objCt('Birmingham','BHX|340');
objCt('Edinburgh','EDI|911');
objCt('Glasgow','GLA|1130');
objCt('London','LON|1779');
}
