I just arrived in qatar with a touristvisa thru border travel. When i reach border immigration they told that i have a pending civil case in qatar. Immigration officer told me that i can't go outside qatar until i will settle my civil case.

I have my questions.
1. Its possible that i can be hold in the immigration department during my departure back KSA? Even if i am having tourist visit in qatar?
2 Yes am having a civil case in Qatar why immigration issued me a tourist visa? How true that i can't exit in Qatar at this time?

3.i Have my case no. in 2009 sept. Is there any site here in qatar where i can check my case no?

Please advise I need your opinion.

Tanzan