function changeArea( selectList  )
{
    var o;
    var cameraList = document.getElementById('cameraList');
    var cameraDataList = document.getElementById( 'cameraDataList' );
        
    var t = selectList.options[ selectList.selectedIndex ].value;

    if( selectList.options[0].value == -1 )
        selectList.remove(0);  

    var j = cameraList.length;
    for (i= j; i>=0; i--)
    {
        cameraList.remove( i );  
    }  
    for (i=0; i< cameraDataList.length;i++)
    {
        if( cameraDataList.options[ i ].value.indexOf( t + "|" ) >= 0 || i == 0 ) {
            o = document.createElement('option');
            o.text = cameraDataList.options[ i ].text;
            o.value =   cameraDataList.options[ i ].value;
            try {
                cameraList.add( o, null );
            }
            catch (ex)
            {
                cameraList.add( o );
            }
        }
    }
}

function changeCamera( cameraList , iframe )
{
    var src;
    var d =   cameraList.options[ cameraList.selectedIndex ].value;
    src = d.substring( d.indexOf( '|')+1 );
   iframe.location = src;
}