function runClock() {
theTime = window.setTimeout("runClock()", 1000);
var today = new Date();
var display= today.toLocaleString();
status=display;
}

runClock();

/****************************************************************************************
Organization of this file:
1. PART 1: part sets the global variables for the website namely, root folder, location of images folder
2. PART 2: This part has code for page footer referred as bottomLinks***
3. PART 3: This part has common links for all departmental and district website of the portal. These links are
		a. Home Page Link
		b. Link to FAQ page
		c. Link to Site Map Page
		d. Link to Site Index Page
4. PART 4: This part has functions for navigation in static site
5. PART 5: This part has utility functions for navigation in dynamic site
6. PART 6: This part has utility functions for both dynamic and static sites

****************************************************************************************/

/****************************************************************************************
	PART 1: START CODE 
****************************************************************************************/
var root_english="/uaportalwebapp/uaportal/english/";
var root_hindi="/uaportalwebapp/uaportal/hindi/";
var curr_root = root_hindi;
var menus_c = [];

var theme_pic = "/uaportalwebapp/theme_pictures/";
var theme_images = "/uaportalwebapp/images/";
var curr_root = root_hindi;
var menu_root = curr_root + "menu_js";
var menu_root_english = root_english + "menu_js";
          
var menus_c = [];
var g_sideMnuStr = "";

var serverIP1 = "www.boat.in"
//var serverIP2 = "192.168.121.168"

var l_bgMenuImg = "background-image: url('/uaportalwebapp/uaportal/theme_pictures/topmenubackground.bmp')";

var searchCode = '<form name="search" method="post" action="" onsubmit="">' + 
            ' <input class="textbox" type="text" name="search" size="15" style="border: 1px solid #003399; height:22; background-image: url(\'' + theme_pic + 'searchBg.bmp\'); position:absolute; left:565; top:110; width:135"> ' + 
	    ' <input type="button" onclick="javascript:searchFunc()" value="?????" width="46" height="20" style="position:absolute; left:710; top:110;"> ' +
' <input type="radio" name="radiobutton" value="radiobutton" style="position:absolute; left:560; top:135;"> ' + 
' <div style="position:absolute; left:585; top:135;">??????</div> ' +
' <input type="radio" name="radiobutton" value="radiobutton" style="position:absolute; left:650; top:135;"> ' + 
' <div style="position:absolute; left:675; top:135;">???????</div> ' +
          ' </form> ';


var searchCodeEng  = '';
//Start Search Code for HNBGU
var searchCodeHNBGU  = '<form name="search" method="post" action="" onsubmit="">' + 
            ' <input class="textbox" type="text" name="search" size="10" style="border: 1px solid #003399; height:22; background-image: url(\'' + theme_pic + 'searchBg.bmp\'); position:absolute; left:565; top:115; width:85"> ' + 
	    ' <input type="button" onclick="javascript:searchFunc()" value="Search" width="20" height="20" style="position:absolute; left:650; top:115; font-size: 8pt;"> ' +
          ' </form> ';
var searchCodeNaini = '<form name="search" method="post" action="" onsubmit="">' + 
            ' <input class="textbox" type="text" name="search" size="10" style="border: 1px solid #003399; height:22; background-image: url(\'' + theme_pic + 'searchBg.bmp\'); position:absolute; left:647; top:253; width:55"> ' + 
	    ' <input type="button" onclick="javascript:searchFunc()" value="Search" width="20" height="20" style="position:absolute; left:705; top:253; font-size: 8pt;"> ' +
          ' </form> ';

var searchCodeHNBGUHome = '<form name="search" method="post" action="" onsubmit="">' + 
            ' <input class="textbox" type="text" name="search" size="10" style="border: 1px solid #003399; height:22; background-image: url(\'' + theme_pic + 'searchBg.bmp\'); position:absolute; left:565; top:135; width:85"> ' + 
	    ' <input type="button" onclick="javascript:searchFunc()" value="Search" width="20" height="20" style="position:absolute; left:650; top:135; font-size: 8pt;"> ' +
          ' </form> ';
//End Search Code for HNBGU


//Code snippet for downloading acrobat reader and hindi font
l_DownloadSectionStr = '<a href="' + curr_root + 'font/Devamt.ttf">'+
	'<img border="0" src="' + theme_images + 'icon_downloadhindi_hin.jpg" width="129" height="17" style="position: absolute; left: 470; top: 195"></a>';
l_DownloadSectionStrEng = '';
//l_DownloadSectionStr for HNBGU
l_DownloadSectionStrInsti = '';
//bottom links that appear in portal pages
l_DownloadSectionStrNaini = '';

/****************************************************************************************
	END PART 1
****************************************************************************************/

/****************************************************************************************
	START PART 2
****************************************************************************************/
var bottomLinkStr1 = l_DownloadSectionStr + 
'        <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber16"> ' +
'          <tr> ' +
'            <td width="100%"> ' +
'        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber15"> ' +
'          <tr> ' +
'            <td width="66%" bgcolor="#336699"> ' +
'            <p dir="ltr"><font size="2" color="#FFFFFF">&nbsp;Copyright (c)-Uttaranchal  ' +
'            Government-2005&nbsp; ?&nbsp; <a class="topMenu" href="#" onclick="javascript:openDisclaimer()">????????</a></font></td> ' +
'            <td width="34%" bgcolor="#4570A3"> ' +
'            <p align="right"><font size="2" color="#FFFFFF">';
//This section varies depending unon the site that one is viewing
var bottomLinkStr2 = 
'	<a class="topMenu" href="#" onclick="javascript:openMandiRates()">????-???</a>&nbsp; ?&nbsp;  ' +
'            <a class="topMenu" href="#" onclick="javascript:openWeather()">????</a>&nbsp; ?&nbsp;   ' +
'	<a class="topMenu" href="#" onclick="javascript:openJobs()">?????? ??????</a>&nbsp; ?&nbsp; ' + 
'	<a class="topMenu" href="#" onclick="javascript:openMaps()">????????</a> .</font></td> ';

var bottomLinkStr3 = 
'          </tr> ' +
'        </table> ' +
'            </td> ' +
'          </tr> ' +
'          <tr> ' +
'            <td width="100%"> ' +
'        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber13"> ' +
'          <tr> ' +
'            <td width="2%" background="' + theme_images + 'aa.gif">&nbsp;</td> ' +
'            <td width="84%" background="' + theme_images + 'aa.gif"> ' +
'            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber14" align="left"> ' +
'              <tr> ' +
'                <td width="100%"> ' +
'        <p align="left" dir="ltr"><font size="2" color="#D20604">???? ?? ????? ????? ?? ????  ' +
'        ??????? ?????????? 6.0 ?? ???? ??? ??? ??????? ?????? 800 x 600 ??  ' +
'        ?????? ?????</font></td> ' +
'              </tr> ' +
'              <tr> ' +
'                <td width="100%"> ' +
'        <p align="left"><font size="2" color="#D20604"><b>?????? ?????: </b>?? ?????? ??? ??????? ????  ' +
'        ??? ??? ???? ?????? ?? ?? ?? ???? ???? ????? <a href="#" onclick="javascript:openContactUsHindi(\'portal\')">????? ?????</a>, ????? ???? ????????  ' +
'        ??????? ????? ?? ???? ????????</font></td> ' +
'              </tr> ' +
'            </table> ' +
'            </td> ' +
'            <td width="14%" background="' + theme_images + 'aa.gif"> ' +
'           <span lang="hi"><a href="http://www.adobe.com/products/acrobat/readstep2.html"> ' +
'            <img border="0" src="' + theme_images + 'icon_download_acrobat.gif" width="105" height="32"></a></span></td> ' +
'          </tr> ' +
'        </table> ' +
'            </td> ' + 
'          </tr> ' +
'        </table> ' ;

var bottomLinkStr1Eng = l_DownloadSectionStrEng + 
'        <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber16"> ' +
'          <tr> ' +
'            <td width="100%"> ' +
'        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber15"> ' +
'          <tr> ' +
'            <td width="50%" bgcolor="#336699"> ' +
'            <p dir="ltr"><font size="2" color="#FFFFFF">&nbsp;Copyright (c)-Uttaranchal  ' +
'            Government-2005&nbsp; ?&nbsp; <a class="topMenu" href="#" onclick="javascript:openDisclaimer(\'e\')">Disclaimer</a></font></td> ' +
'            <td width="50%" bgcolor="#4570A3"> ' +
'            <p align="right"><font size="2" color="#FFFFFF">';
//This section varies depending unon the site that one is viewing
var bottomLinkStr2Eng = 
'	<a title="Information following this link is available in hindi" class="topMenu" href="#" onclick="javascript:openMandiRates()">Mandi Rates</a>&nbsp; ?&nbsp;  ' +
'            <a title="Information following this link is available in hindi" class="topMenu" href="#" onclick="javascript:openWeather()">Weather</a>&nbsp; ?&nbsp;   ' +
'	<a title="Information following this link is available in hindi" class="topMenu" href="#" onclick="javascript:openJobs()">Employment News</a>&nbsp; ?&nbsp; ' + 
'	<a title="Information following this link is available in hindi" class="topMenu" href="#" onclick="javascript:openMaps()">Maps</a> .</font></td> ';

var bottomLinkStr3Eng = 
'          </tr> ' +
'        </table> ' +
'            </td> ' +
'          </tr> ' +
'          <tr> ' +
'            <td width="100%"> ' +
'        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber13"> ' +
'          <tr> ' +
'            <td width="2%" background="' + theme_images + 'aa.gif">&nbsp;</td> ' +
'            <td width="84%" background="' + theme_images + 'aa.gif"> ' +
'            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber14" align="left"> ' +
'              <tr> ' +
'                <td width="100%"> ' +
'        <p align="left" dir="ltr"><font size="2" color="#D20604">To view this site better please use  ' +
'        Internet Explorer 6.0 or above at screen resolution 800 x 600.' +
'        </font></td> ' +
'              </tr> ' +
'              <tr> ' +
'                <td width="100%"> ' +
'        <p align="left"><font size="2" color="#D20604"><b>Important Notice: </b>This portal is in testing phase.  ' +
'        You are requested to <a href="#" onclick="javascript:openContactUsHindi(\'portal\')">send feedback </a> to us so that  ' +
'        it can be made more useful to the public. Thank You</font></td> ' +
'              </tr> ' +
'            </table> ' +
'            </td> ' +
'            <td width="14%" background="' + theme_images + 'aa.gif"> ' +
'           <span lang="hi"><a href="http://www.adobe.com/products/acrobat/readstep2.html"> ' +
'            <img border="0" src="img/icon_download_acrobat.gif" width="105" height="32"></a></span></td> ' +
'          </tr> ' +
'        </table> ' +
'            </td> ' + 
'          </tr> ' +
'        </table> ' ;


//Start bottomLinkStr for HNBGU
var bottomLinkStr1Insti = l_DownloadSectionStrInsti + 
'        <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber16"> ' +
'          <tr> ' +
'            <td width="100%"> ' +
'        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber15"> ' +
'          <tr> ' +
'            <td width="50%" bgcolor="#336699"> ' +
'            <p dir="ltr"><font size="2" color="#FFFFFF">&nbsp;Copyright (c)-Uttaranchal  ' +
'            Government-2005&nbsp; ?&nbsp; <a class="topMenu" href="#" onclick="javascript:openDisclaimer(\'e\')">Disclaimer</a></font></td> ' +
'            <td width="50%" bgcolor="#4570A3"> ' +
'            <p align="right"><font size="2" color="#FFFFFF">';
//This section varies depending unon the site that one is viewing
var bottomLinkStr2Insti = 

'            <a title="Information following this link is available in hindi" class="topMenu" href="#" onclick="javascript:openWeather()">Weather</a>&nbsp; ?&nbsp;   ' +
'	<a title="Information following this link is available in hindi" class="topMenu" href="#" onclick="javascript:openJobs()">Employment News</a>&nbsp; ?&nbsp; ' + 
'	<a title="Information following this link is available in hindi" class="topMenu" href="#" onclick="javascript:openMaps()">Maps</a> .</font></td> ';

var bottomLinkStr3Insti = 
'          </tr> ' +
'        </table> ' +
'            </td> ' +
'          </tr> ' +
'          <tr> ' +
'            <td width="100%"> ' +
'        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber13"> ' +
'          <tr> ' +
'            <td width="2%" background="' + theme_images + 'aa.gif">&nbsp;</td> ' +
'            <td width="84%" background="' + theme_images + 'aa.gif"> ' +
'            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber14" align="left"> ' +
'              <tr> ' +
'                <td width="100%"> ' +
'        <p align="left" dir="ltr"><font size="2" color="#D20604">To view this site better please use  ' +
'        Internet Explorer 6.0 or above at screen resolution 800 x 600.' +
'        </font></td> ' +
'              </tr> ' +
'              <tr> ' +
'                <td width="100%"> ' +
'        <p align="left"><font size="2" color="#D20604"><b>Important Notice: </b>This portal is in testing phase.  ' +
'        You are requested to <a href="#" onclick="javascript:openContactUsHindi(\'portal\')">send feedback </a> to us so that  ' +
'        it can be made more useful to the public. Thank You</font></td> ' +
'              </tr> ' +
'            </table> ' +
'            </td> ' +
'            <td width="14%" background="' + theme_images + 'aa.gif"> ' +
'           <span lang="hi"><a href="http://www.adobe.com/products/acrobat/readstep2.html"> ' +
'            <img border="0" src="' + theme_images + 'icon_download_acrobat.gif" width="105" height="32"></a></span></td> ' +
'          </tr> ' +
'        </table> ' +
'            </td> ' + 
'          </tr> ' +
'        </table> ' ;

var bottomLinkStr1Naini = l_DownloadSectionStrNaini + 
'        <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber16"> ' +
'          <tr> ' +
'            <td width="100%"> ' +
'        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber15"> ' +
'          <tr> ' +
'            <td width="50%" bgcolor="#336699"> ' +
'            <p dir="ltr"><font size="2" color="#FFFFFF">&nbsp;Copyright (c)-Uttaranchal  ' +
'            Government-2005&nbsp; ?&nbsp; <a class="topMenu" href="#" onclick="javascript:openDisclaimer(\'e\')">Disclaimer</a></font></td> ' +
'            <td width="50%" bgcolor="#4570A3"> ' +
'            <p align="right"><font size="2" color="#FFFFFF">';
//This section varies depending unon the site that one is viewing

var bottomLinkStr2Naini = 

'            <a title="Information following this link is available in hindi" class="topMenu" href="#" onclick="javascript:openWeather()">Weather</a>&nbsp; ?&nbsp;   ' +
'	<a title="Information following this link is available in hindi" class="topMenu" href="#" onclick="javascript:openJobs()">Employment News</a>&nbsp; ?&nbsp; ' + 
'	<a title="Information following this link is available in hindi" class="topMenu" href="#" onclick="javascript:openMaps()">Maps</a> .</font></td> ';

var bottomLinkStr3Naini = 
'          </tr> ' +
'        </table> ' +
'            </td> ' +
'          </tr> ' +
'          <tr> ' +
'            <td width="100%"> ' +
'        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber13"> ' +
'          <tr> ' +
'            <td width="2%" background="' + theme_images + 'aa.gif">&nbsp;</td> ' +
'            <td width="84%" background="' + theme_images + 'aa.gif"> ' +
'            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber14" align="left"> ' +
'              <tr> ' +
'                <td width="100%"> ' +
'        <p align="left" dir="ltr"><font size="2" color="#D20604">???? ?? ????? ????? ?? ????  ' +
'        ??????? ?????????? 6.0 ?? ???? ??? ??? ??????? ?????? 800 x 600 ??  ' +
'        ?????? ?????</font></td> ' +
'              </tr> ' +
'              <tr> ' +
'                <td width="100%"> ' +
'        <p align="left"><font size="2" color="#D20604"><b>?????? ?????: </b>?? ?????? ??? ??????? ????  ' +
'        ??? ??? ???? ?????? ?? ?? ?? ???? ???? ????? <a href="#" onclick="javascript:openContactUsHindi(\'portal\')">????? ?????</a>, ????? ???? ????????  ' +
'        ??????? ????? ?? ???? ????????</font></td> ' +
'              </tr> ' +
'            </table> ' +
'            </td> ' +
'            <td width="14%" background="' + theme_images + 'aa.gif"> ' +
'           <span lang="hi"><a href="http://www.adobe.com/products/acrobat/readstep2.html"> ' +
'            <img border="0" src="' + theme_images + 'icon_download_acrobat.gif" width="105" height="32"></a></span></td> ' +
'          </tr> ' +
'        </table> ' +
'            </td> ' + 
'          </tr> ' +
'        </table> ' ;


var bottomLinkStrInsti = bottomLinkStr1Insti + bottomLinkStr2Insti + bottomLinkStr3Insti;
// End bottomLinkStr for HNBGU


var bottomLinkStr = bottomLinkStr1 + bottomLinkStr2 + bottomLinkStr3;

var bottomLinkStrEng = bottomLinkStr1Eng + bottomLinkStr2Eng + bottomLinkStr3Eng;

var bottomLinkStrNaini = bottomLinkStr1Eng + bottomLinkStr2 + bottomLinkStr3;

//bottom links that appear in pages of department food and civil supplies
var bottomLinkStrDepCommon = bottomLinkStr1 + 
'	<a class="topMenu" href="#" onclick="javascript:openHomeHindi(\'portal\')">?????? ????? ?????</a>&nbsp; ?&nbsp;  ' +
'            <a class="topMenu" href="#top" >?????</a>  ' +
	bottomLinkStr3;

var bottomLinkStrDepCommonEng = bottomLinkStr1Eng + 
'	<a class="topMenu" href="#" onclick="javascript:openHomeEng(\'portal\')">Portal Home Page</a>&nbsp; ?&nbsp;  ' +
'            <a class="topMenu" href="#top" >Top</a>  ' +
	bottomLinkStr3Eng;

//Start for HNBGU
var bottomLinkStrDepCommonInsti = bottomLinkStr1Insti + 
'	<a class="topMenu" href="#" onclick="javascript:openHomeHindi(\'portal\')">Portal Home Page</a>&nbsp; ?&nbsp;  ' +
'            <a class="topMenu" href="#top" >Top</a>  ' +
	bottomLinkStr3Insti;
//end for HNBGU

var bottomLinkStrDepCommonNaini = bottomLinkStr1Insti + 
'	<a class="topMenu" href="#" onclick="javascript:openHomeHindi(\'portal\')">Portal Home Page</a>&nbsp; ?&nbsp;  ' +
'            <a class="topMenu" href="#top" >Top</a>  ' +
	bottomLinkStr3Naini;

//Hindi Websites
var bottomLinkStrFCS = bottomLinkStrDepCommon;	//for food and civil supplies
var bottomLinkStrUD = bottomLinkStrDepCommon ;	//for Urban development
var bottomLinkStrRD = bottomLinkStrDepCommon ;	//for Rural Development
var bottomLinkStrHorti = bottomLinkStrDepCommon ;	//for horticulture
var bottomLinkStrDirSeri = bottomLinkStrDepCommon ;	//for sericulture
var bottomLinkStrDist_naini = bottomLinkStrDepCommon;	//for nainital district
var bottomLinkStrEDUH = bottomLinkStrDepCommon ;	//for higher education
var bottomLinkStrAgri = bottomLinkStrDepCommon ;	//for agriculture
var bottomLinkStrMDDA = bottomLinkStrDepCommon ;	//for MDDA
var bottomLinkStrtrans = bottomLinkStrDepCommon ;	//for MDDA
var bottomLinkStrTWPPIC = bottomLinkStrDepCommon ; //for 20 Point Programme Implementation Committee
var bottomLinkStrADMAC = bottomLinkStrDepCommon ; //for Administration Academy
var bottomLinkStrAFC = bottomLinkStrDepCommon ; //for Agriculture Finance Corporation
var bottomLinkStrAMMP = bottomLinkStrDepCommon ; //for Agriculture Marketing and Mandi Parishad
var bottomLinkStrANIHUS = bottomLinkStrDepCommon ; //for Animal Husbandry
var bottomLinkStrBDKDTC = bottomLinkStrDepCommon ; //for Badrinath Kedarnath Mandit samiti
var bottomLinkStrFINBNK = bottomLinkStrDepCommon ; //for Banking
var bottomLinkStrCENDEP = bottomLinkStrDepCommon ; //for Census
var bottomLinkStrCIVAVI = bottomLinkStrDepCommon ; //for Civil Aviation
var bottomLinkStrCODEP = bottomLinkStrDepCommon ; //for Co-operative
var bottomLinkStrCTRSV = bottomLinkStrDepCommon ; //for Corbett Tiger Reserve
var bottomLinkStrCULTRE = bottomLinkStrDepCommon ; //for Culture
var bottomLinkStrDAIRY = bottomLinkStrDepCommon ; //for Dairy
var bottomLinkStrDIRIN = bottomLinkStrDepCommon ; //for Directorate of Industries
var bottomLinkStrDMMC = bottomLinkStrDepCommon ; //for Disaster Management
var bottomLinkStrDVADA = bottomLinkStrDepCommon ; //for Doon Valley Area Development Authority
var bottomLinkStrDEST = bottomLinkStrDepCommon ; //for Economics and Statistics
var bottomLinkStrELECT = bottomLinkStrDepCommon ; //for Election 
var bottomLinkStrELEINS = bottomLinkStrDepCommon ; //for Electrical Inspectorate
var bottomLinkStrUERCOM = bottomLinkStrDepCommon ; //for Electricity Regulatory Commision
var bottomLinkStrEMPTRN = bottomLinkStrDepCommon ; //for Employment and Training
var bottomLinkStrENTTAX = bottomLinkStrDepCommon ; //for Entertainment Tax
var bottomLinkStrExcise = bottomLinkStrDepCommon ; //for Excise 
var bottomLinkStrFSHR = bottomLinkStrDepCommon ; //for Fisheries
var bottomLinkStrFOREST = bottomLinkStrDepCommon ; //for Forest Department
var bottomLinkStrMWLS = bottomLinkStrDepCommon ; //for Forest (Mussorie Wild Life Sanctury)
var bottomLinkStrGWLS = bottomLinkStrDepCommon ; //for Forest (Govind Wild Life Sanctury)
var bottomLinkStrGBPUD = bottomLinkStrDepCommon ; //for G.B.Pant Prani Udyan
var bottomLinkStrGEADM = bottomLinkStrDepCommon ; //for General Administration
var bottomLinkStrGEOAMU = bottomLinkStrDepCommon ; //for Geology and Mining Unit
var bottomLinkStrGMVN = bottomLinkStrDepCommon ; //for GMVN
var bottomLinkStrGPP = bottomLinkStrDepCommon ; //for Government Printing Press
var bottomLinkStrHAD = bottomLinkStrDepCommon ; //for Haridwar Development Authority
var bottomLinkStrHAJCOM = bottomLinkStrDepCommon ; //for Haz Committee
var bottomLinkStrHILTRN = bottomLinkStrDepCommon ; //for Hiltron
var bottomLinkStrPRISON = bottomLinkStrDepCommon ; //for Home (Prison)
var bottomLinkStrHOME = bottomLinkStrDepCommon ; //for Home Department
var bottomLinkStrFIRE = bottomLinkStrDepCommon ; //for Home Department
var bottomLinkStrCIVDEF = bottomLinkStrDepCommon ; //for Home Department
var bottomLinkStrHOMEGRD = bottomLinkStrDepCommon ; //for Home Department
var bottomLinkStrARMS = bottomLinkStrDepCommon ; //for Home (ARMS)
var bottomLinkStrCID = bottomLinkStrDepCommon ; //for Home CID
var bottomLinkStrSHGNR = bottomLinkStrDepCommon ; //for Shadow and Gunner
var bottomLinkStrPPROS = bottomLinkStrDepCommon ; //for Public prosecution
var bottomLinkStrPOLICE = bottomLinkStrDepCommon ; //for Home(CID,Fire,Police,PAC)
var bottomLinkStrIPURD = bottomLinkStrDepCommon ; //for Information and Public Relation Department
var bottomLinkStrITDAG = bottomLinkStrDepCommon ; //for Information Technology
var bottomLinkStrIRIGTN = bottomLinkStrDepCommon ; //for Irrigation
var bottomLinkStrKHADI = bottomLinkStrDepCommon ; //for Khadi and Gram Udyog Board
var bottomLinkStrKMVN = bottomLinkStrDepCommon ; //for KMVN
var bottomLinkStrLABOR = bottomLinkStrDepCommon ; //for Labour
var bottomLinkStrLNDSD = bottomLinkStrDepCommon ; //for Land Survey Directorate
var bottomLinkStrLANG = bottomLinkStrDepCommon ; //for Language
var bottomLinkStrLAW = bottomLinkStrDepCommon ; //for Law
var bottomLinkStrLEGIPA = bottomLinkStrDepCommon ; //for Legislative and Parliamentary Affairs
var bottomLinkStrLEKHAK = bottomLinkStrDepCommon ; //for Lekha and Hakdari 
var bottomLinkStrMPRI = bottomLinkStrDepCommon ; //for Medicinal Plant Research Institute
var bottomLinkStrMINIR = bottomLinkStrDepCommon ; //for Minor Irrigation
var bottomLinkStrNDBR = bottomLinkStrDepCommon ; //for Nanda Devi Biosphere Reserve
var bottomLinkStrSMSAV = bottomLinkStrDepCommon ; //for National Small Savings
var bottomLinkStrNIM = bottomLinkStrDepCommon ; //for Nehru Institute Of Mountaineering
var bottomLinkStrPANRAJ = bottomLinkStrDepCommon ; //for Panchayti Raj
var bottomLinkStrPERSON = bottomLinkStrDepCommon ; //for Personal Department (Karmik Vibhaag)
var bottomLinkStrEPPCB = bottomLinkStrDepCommon ; //for Pollution Control Board
var bottomLinkStrPRODEP = bottomLinkStrDepCommon ; //for Protocol
var bottomLinkStrPWD = bottomLinkStrDepCommon ; //for PWD
var bottomLinkStrRAJPRK = bottomLinkStrDepCommon ; //for Raja ji National Park
var bottomLinkStrRAJSAM = bottomLinkStrDepCommon ; //for Rajya Sampatti
var bottomLinkStrRCFS = bottomLinkStrDepCommon ; //for Registrar Chits Fund and Society
var bottomLinkStrREVDEP = bottomLinkStrDepCommon ; //for Revenue
var bottomLinkStrRUENG = bottomLinkStrDepCommon ; //for Rural Engineering Services
var bottomLinkStrSECADM = bottomLinkStrDepCommon ; //for Secretariat Administration
var bottomLinkStrSIDCUL = bottomLinkStrDepCommon ; //for SIDCUL
var bottomLinkStrSPORTS = bottomLinkStrDepCommon ; //for Sports
var bottomLinkStrSTAREG = bottomLinkStrDepCommon ; //for Stamp and Registration
var bottomLinkStrELECOM = bottomLinkStrDepCommon ; //for State Electoral Commission
var bottomLinkStrPLANCO = bottomLinkStrDepCommon ; //for State Planning Commission
var bottomLinkStrSREORG = bottomLinkStrDepCommon ; //for State Re-Oraganisation
var bottomLinkStrSSOPCA = bottomLinkStrDepCommon ; //for State Seed and Organic Produce Certification Organisation
var bottomLinkStrCDSID = bottomLinkStrDepCommon ; //for Sugar and Cane Development
var bottomLinkStrTORDB = bottomLinkStrDepCommon ; //for Tourism Development Board
var bottomLinkStrTRATAX = bottomLinkStrDepCommon ; //for Trade Tax
var bottomLinkStrTRANSP = bottomLinkStrDepCommon ; //for Transport Corporation
var bottomLinkStrTRAUD = bottomLinkStrDepCommon ; //for Treasuries and Audit
var bottomLinkStrUREDA = bottomLinkStrDepCommon ; //for UREDA
var bottomLinkStrUFDC = bottomLinkStrDepCommon ; //for Uttaranchal Forest Development Corporation
var bottomLinkStrUJVNL = bottomLinkStrDepCommon ; //for Uttaranchal Jal Vidyut Nigam Ltd.
var bottomLinkStrUPCL = bottomLinkStrDepCommon ; //for Uttaranchal Power Corporation Ltd.
var bottomLinkStrUPTCL = bottomLinkStrDepCommon ; //for Uttaranchal Power Transmission Ltd.
var bottomLinkStrPAYJAL = bottomLinkStrDepCommon ; //for Uttaranhal Payjal Sansadhan Vikas and Nirman Nigam
var bottomLinkStrVIGI = bottomLinkStrDepCommon ; //for Vigilance (Home)
var bottomLinkStrWRSMGMT = bottomLinkStrDepCommon ; //for Watershed Management
var bottomLinkStrPRIS = bottomLinkStrDepCommon ; //for Prison(Home)
var bottomLinkStrSWF = bottomLinkStrDepCommon ; //for Social Welfare Department
var bottomLinkStrhealth = bottomLinkStrDepCommon ; //for Health Department
var bottomLinkStrEDUS = bottomLinkStrDepCommon ; //for Health Department
var bottomLinkStrKiosk = bottomLinkStrEng  ;	//for MDDA
var bottomLinkStrBAMBOO = bottomLinkStrDepCommon ; //for Bamboo Board
var bottomLinkStrHDA = bottomLinkStrDepCommon; //for Haridwar Development Authority
//English Websites
var bottomLinkStrEDUT = bottomLinkStrDepCommonEng ;	//for Technical Education
var bottomLinkStrITDAGEng = bottomLinkStrDepCommonEng ; //For Information technology
var bottomLinkStrNIMEng = bottomLinkStrDepCommonEng ; //For Nehru Institute of Mountaineering
var bottomLinkStrSIDCULEng = bottomLinkStrDepCommonEng ; //For SIDCUL
var bottomLinkStrAFCEng = bottomLinkStrDepCommonEng ; //For Agriculture Finance Corporation
var bottomLinkStrWFWEng = bottomLinkStrDepCommonEng ; //For Water For Welfare
var bottomLinkStrUERCEng = bottomLinkStrDepCommonEng ; //For UERC
var bottomLinkStrHRDIEng = bottomLinkStrDepCommonEng ; //For HRDI
var bottomLinkStrVOVNPEng= bottomLinkStrDepCommonEng ; //For Valley of flowers
var bottomLinkStrNDNPEng= bottomLinkStrDepCommonEng ; //For Nanda devi national park
var bottomLinkStrHILTRNEng= bottomLinkStrDepCommonEng ; //For HILTRON
var bottomLinkStrBWSEng= bottomLinkStrDepCommonEng ; //For Binsar Wild life Sanctuary
var bottomLinkStrIRIGTNEng= bottomLinkStrDepCommonEng ; //For Irrigation
var bottomLinkStrRCFSEng= bottomLinkStrDepCommonEng ; //For Registrar Chitt Fund and society
var bottomLinkStrNDBREng= bottomLinkStrDepCommonEng ; //For Nanda devi biosphere reserve
var bottomLinkStrCENDEPEng= bottomLinkStrDepCommonEng ; //For Census Dept
var bottomLinkStrPROPOOREng= bottomLinkStrDepCommonEng ; //For Pro-Poor IT Initiatives
var bottomLinkStrNaini= bottomLinkStrDepCommonNaini ; //For Nainital Portal



var bottomLinkStrHNBGU = bottomLinkStrDepCommonInsti;  //for Garwhal University


var linkMyUttara = ' <a class="topLinks" href="javascript:myUttara()">????? ??????</a> ';

var copyright_notice_eng="Copyright (c)-Uttaranchal Government-2004"

/****************************************************************************************
	END PART 2
****************************************************************************************/


/****************************************************************************************
	START PART 3
****************************************************************************************/

//Following array defines common pages for all departments / other web sites
//these pages are
//  a. Home Page (3rd position - index 3)
//  b. Help Page (4th position - index 4)
//  a. Site Map (5th position - index 5)
//  d. Site Index (6th position - index 6)


var common_pages_hindi = [
			['portal', 'Portal Home Page', 
				curr_root + 'home_page.html',
				'<not_required>',
				curr_root + 'site_map.html',
				curr_root + 'site_index.html'
			],
			['fcs', 'Food and Civil Supplies', 
				curr_root + 'department/food_civil_supplies/intro.html',
				curr_root + 'department/food_civil_supplies/FAQ.html',
				curr_root + 'department/food_civil_supplies/site_map.html',
				curr_root + 'department/food_civil_supplies/site_index.html'
			],
			['ud', 'Urban Development', 
				curr_root + 'department/urban_development/ub_directorate/udd_intro.html',
				curr_root + 'department/urban_development/ub_directorate/FAQ.html',
				curr_root + 'department/urban_development/ub_directorate/site_map.html',
				curr_root + 'department/urban_development/ub_directorate/site_index.html'
			],
			['rd', 'Rural Development', 
				'<null>',
				curr_root + 'department/ruraldevelopment/faq.html',
				'<null>',
				'<null>'
			],
			['agri', 'Agriculture', 
				curr_root + 'department/agriculture/intro.html',
				curr_root + 'department/agriculture/FAQ.html',
				curr_root + 'department/agriculture/site_map.html',
				curr_root + 'department/agriculture/site_index.html'

			],
			['horti', 'Horticulture', 
				curr_root + 'department/horticulture/horticulture/intro.html',
				curr_root + 'department/horticulture/horticulture/FAQ.html',
				curr_root + 'department/horticulture/horticulture/site_map.html',
				curr_root + 'department/horticulture/horticulture/site_index.html'
			],
			['dir_seri', 'Sericulture', 
				curr_root + 'department/horticulture/sericulture/seri_main.html',
				curr_root + 'department/horticulture/sericulture/FAQ.html',
				curr_root + 'department/horticulture/sericulture/site_map.html',
				curr_root + 'department/horticulture/sericulture/site_index.html'
			],
			['EDUH', 'Higher Education', 
				curr_root + 'department/education/higher_edu/higher_edu_main.html',
				curr_root + 'department/education/higher_edu/FAQ.html',
				curr_root + 'department/education/higher_edu/site_map.html',
				curr_root + 'department/education/higher_edu/site_index.html'
			],
			['edut', 'Technical Education', 
				root_english + 'department/education/tech_edu/intro.html',
				'<null>',
				root_english + 'department/education/tech_edu/site_map.html',
				root_english + 'department/education/tech_edu/site_index.html'
			],
			['mdda', 'Mussorrie Dehradun Development Authority', 
				curr_root + 'department/urban_development/mdda/mdda_intro.html',
				curr_root + 'department/urban_development/mdda/FAQ.html',
				curr_root + 'department/urban_development/mdda/site_map.html',
				curr_root + 'department/urban_development/mdda/site_index.html'
			],
			['trans', 'Transport Department', 
				curr_root + 'department/transport/transport_intro.html',
				curr_root + 'department/transport/FAQ.html',
				curr_root + 'department/transport/site_map.html',
				curr_root + 'department/transport/site_index.html'
			],
			['dist_naini', 'Nainital District', 
				curr_root + 'district/nainital/nainital_home.html',
				'<null>',
				curr_root + 'district/nainital/site_map.html',
				curr_root + 'district/nainital/site_index.html'
			],
			
			[ 'TWPPIC', '20 Point Programme Implementation Committee', 
				curr_root + 'department/twenty_point/intro.html', 
				curr_root + 'department/twenty_point/FAQ.html', 
				curr_root + 'department/twenty_point/site_map.html', 
				curr_root + 'department/twenty_point/site_index.html'
			],
			[ 'ADMAC', 'Administration Academy', 
				curr_root + 'department/admin_acad/intro.html', 
				curr_root + 'department/admin_acad/FAQ.html', 
				curr_root + 'department/admin_acad/site_map.html', 
				curr_root + 'department/admin_acad/site_index.html'
			],
			[ 'AFC', 'Agriculture Finance Corporation', 
				root_english + 'department/agri_fin_corp/intro.html', 
				root_english + 'department/agri_fin_corp/FAQ.html', 
				root_english + 'department/agri_fin_corp/site_map.html', 
				root_english + 'department/agri_fin_corp/site_index.html'
			],
			[ 'VOVNP', 'Valley of flowers National Park', 
				root_english+ 'department/forest/valley_of_flowers/intro.html', 
				root_english+ 'department/forest/valley_of_flowers/FAQ.html', 
				root_english+ 'department/forest/valley_of_flowers/site_map.html', 
				root_english+ 'department/forest/valley_of_flowers/site_index.html'
			],
			[ 'NDNP', 'Nanda devi National Park', 
				root_english+ 'department/forest/nanda_devi/intro.html', 
				root_english+ 'department/forest/nanda_devi/FAQ.html', 
				root_english+ 'department/forest/nanda_devi/site_map.html', 
				root_english+ 'department/forest/nanda_devi/site_index.html'
			],
			[ 'BWS', 'Binsar Wild Life Sanctuary', 
				root_english+ 'department/forest/binsar/intro.html', 
				root_english+ 'department/forest/binsar/FAQ.html', 
				root_english+ 'department/forest/binsar/site_map.html', 
				root_english+ 'department/forest/binsar/site_index.html'
			],
			[ 'AMMP', 'Agriculture Marketing and Mandi Parishad', 
				curr_root + 'department/agri_mandi/intro.html', 
				curr_root + 'department/agri_mandi/FAQ.html', 
				curr_root + 'department/agri_mandi/site_map.html', 
				curr_root + 'department/agri_mandi/site_index.html'
			],
			[ 'ANIHUS', 'Animal Husbandry', 
				curr_root + 'department/anml_husb/intro.html', 
				curr_root + 'department/anml_husb/FAQ.html', 
				curr_root + 'department/anml_husb/site_map.html', 
				curr_root + 'department/anml_husb/site_index.html'
			],
			[ 'BDKDTC', 'Badrinath Kedarnath Mandir samiti', 
				curr_root + 'department/bktc/intro.html', 
				curr_root + 'department/bktc/FAQ.html', 
				curr_root + 'department/bktc/site_map.html', 
				curr_root + 'department/bktc/site_index.html'
			],
			[ 'FINBNK', 'Banking', 
				curr_root + 'department/banking/intro.html', 
				curr_root + 'department/banking/FAQ.html', 
				curr_root + 'department/banking/site_map.html', 
				curr_root + 'department/banking/site_index.html'
			],
			[ 'CENDEP', 'Census', 
				root_english + 'department/census/intro.html', 
				root_english + 'department/census/FAQ.html', 
				root_english + 'department/census/site_map.html', 
				root_english + 'department/census/site_index.html'
			],
			[ 'CIVAVI', 'Civil Aviation', 
				curr_root + 'department/civil_aviation/intro.html', 
				curr_root + 'department/civil_aviation/FAQ.html', 
				curr_root + 'department/civil_aviation/site_map.html', 
				curr_root + 'department/civil_aviation/site_index.html'
			],
			[ 'CODEP', 'Co-operative', 
				curr_root + 'department/cooperative/intro.html', 
				curr_root + 'department/cooperative/FAQ.html', 
				curr_root + 'department/cooperative/site_map.html', 
				curr_root + 'department/cooperative/site_index.html'
			],
			[ 'CTRSV', 'Corbett Tiger Reserve', 
				curr_root + 'department/corbett_tiger/intro.html', 
				curr_root + 'department/corbett_tiger/FAQ.html', 
				curr_root + 'department/corbett_tiger/site_map.html', 
				curr_root + 'department/corbett_tiger/site_index.html'
			],
			[ 'CULTRE', 'Culture', 
				curr_root + 'department/culture/intro.html', 
				curr_root + 'department/culture/FAQ.html', 
				curr_root + 'department/culture/site_map.html', 
				curr_root + 'department/culture/site_index.html'
			],
			[ 'DAIRY', 'Dairy', 
				curr_root + 'department/dairy/intro.html', 
				curr_root + 'department/dairy/FAQ.html', 
				curr_root + 'department/dairy/site_map.html', 
				curr_root + 'department/dairy/site_index.html'
			],
			[ 'DIRIN', 'Directorate of Industries', 
				curr_root + 'department/dir_industries/intro.html', 
				curr_root + 'department/dir_industries/FAQ.html', 
				curr_root + 'department/dir_industries/site_map.html', 
				curr_root + 'department/dir_industries/site_index.html'
			],
			[ 'DMMC', 'Disaster Management', 
				curr_root + 'department/disaster_mgmt/intro.html', 
				curr_root + 'department/disaster_mgmt/FAQ.html', 
				curr_root + 'department/disaster_mgmt/site_map.html', 
				curr_root + 'department/disaster_mgmt/site_index.html'
			],
			[ 'DVADA', 'Doon Valley Area Development Authority', 
				curr_root + 'department/doon_valley/intro.html', 
				curr_root + 'department/doon_valley/FAQ.html', 
				curr_root + 'department/doon_valley/site_map.html', 
				curr_root + 'department/doon_valley/site_index.html'
			],
			[ 'DEST', 'Economics and Statistics', 
				curr_root + 'department/eco_and_stats/intro.html', 
				curr_root + 'department/eco_and_stats/FAQ.html', 
				curr_root + 'department/eco_and_stats/site_map.html', 
				curr_root + 'department/eco_and_stats/site_index.html'
			],
			[ 'ELECT', 'Election ', 
				curr_root + 'department/election/intro.html', 
				curr_root + 'department/election/FAQ.html', 
				curr_root + 'department/election/site_map.html', 
				curr_root + 'department/election/site_index.html'
			],
			[ 'EDUS', 'School Education ', 
				curr_root + 'department/education/school_edu/school_edu_main.html', 
				curr_root + 'department/education/school_edu/FAQ.html', 
				curr_root + 'department/education/school_edu/sitemap.html', 
				curr_root + 'department/education/school_edu/site_index.html'
			],
			[ 'ELEINS', 'Electrical Inspectorate', 
				curr_root + 'department/elec_inspec/intro.html', 
				curr_root + 'department/elec_inspec/FAQ.html', 
				curr_root + 'department/elec_inspec/site_map.html', 
				curr_root + 'department/elec_inspec/site_index.html'
			],
			[ 'UERCOM', 'Electricity Regulatory Commision', 
				curr_root + 'department/elec_reg_comm/intro.html', 
				curr_root + 'department/elec_reg_comm/FAQ.html', 
				curr_root + 'department/elec_reg_comm/site_map.html', 
				curr_root + 'department/elec_reg_comm/site_index.html'
			],
			[ 'EMPTRN', 'Employment and Training', 
				curr_root + 'department/employ_and_train/intro.html', 
				curr_root + 'department/employ_and_train/FAQ.html', 
				curr_root + 'department/employ_and_train/site_map.html', 
				curr_root + 'department/employ_and_train/site_index.html'
			],
			[ 'ENTTAX', 'Entertainment Tax', 
				curr_root + 'department/entertainment_tax/intro.html', 
				curr_root + 'department/entertainment_tax/FAQ.html', 
				curr_root + 'department/entertainment_tax/site_map.html', 
				curr_root + 'department/entertainment_tax/site_index.html'
			],
			[ 'Excise', 'Excise ', 
				curr_root + 'department/excise/intro.html', 
				curr_root + 'department/excise/FAQ.html', 
				curr_root + 'department/excise/site_map.html', 
				curr_root + 'department/excise/site_index.html'
			],
			[ 'FSHR', 'Fisheries', 
				curr_root + 'department/fisheries/intro.html', 
				curr_root + 'department/fisheries/FAQ.html', 
				curr_root + 'department/fisheries/site_map.html', 
				curr_root + 'department/fisheries/site_index.html'
			],
			[ 'FOREST', 'Forest Department', 
				curr_root + 'department/forest/intro.html', 
				curr_root + 'department/forest/FAQ.html', 
				curr_root + 'department/forest/site_map.html', 
				curr_root + 'department/forest/site_index.html'
			],
			[ 'MWLS', 'Mussorie Wild Life Sanctury', 
				curr_root + 'department/forest/mssr_wild_life_sanct/intro.html', 
				curr_root + 'department/forest/mssr_wild_life_sanct/FAQ.html', 
				curr_root + 'department/forest/mssr_wild_life_sanct/site_map.html', 
				curr_root + 'department/forest/mssr_wild_life_sanct/site_index.html'
			],
			[ 'GWLS', 'Govind Wild Life Sanctury', 
				curr_root + 'department/forest/govind_wild_life_sanct/intro.html', 
				curr_root + 'department/forest/govind_wild_life_sanct/FAQ.html', 
				curr_root + 'department/forest/govind_wild_life_sanct/site_map.html', 
				curr_root + 'department/forest/govind_wild_life_sanct/site_index.html'
			],
			[ 'GBPUD', 'G.B.Pant Prani Udyan', 
				curr_root + 'department/gbpant_zoo/intro.html', 
				curr_root + 'department/gbpant_zoo/FAQ.html', 
				curr_root + 'department/gbpant_zoo/site_map.html', 
				curr_root + 'department/gbpant_zoo/site_index.html'
			],
			[ 'GEADM', 'General Administration', 
				curr_root + 'department/gen_admin/intro.html', 
				curr_root + 'department/gen_admin/FAQ.html', 
				curr_root + 'department/gen_admin/site_map.html', 
				curr_root + 'department/gen_admin/site_index.html'
			],
			[ 'GEOAMU', 'Geology and Mining Unit', 
				curr_root + 'department/geology_mining/intro.html', 
				curr_root + 'department/geology_mining/FAQ.html', 
				curr_root + 'department/geology_mining/site_map.html', 
				curr_root + 'department/geology_mining/site_index.html'
			],
			[ 'GMVN', 'GMVN', 
				curr_root + 'department/gmvn/intro.html', 
				curr_root + 'department/gmvn/FAQ.html', 
				curr_root + 'department/gmvn/site_map.html', 
				curr_root + 'department/gmvn/site_index.html'
			],
			[ 'GPP', 'Government Printing Press', 
				curr_root + 'department/govt_press/intro.html', 
				curr_root + 'department/govt_press/FAQ.html', 
				curr_root + 'department/govt_press/site_map.html', 
				curr_root + 'department/govt_press/site_index.html'
			],
			[ 'HAD', 'Haridwar Development Authority', 
				curr_root + 'department/had/intro.html', 
				curr_root + 'department/had/FAQ.html', 
				curr_root + 'department/had/site_map.html', 
				curr_root + 'department/had/site_index.html'
			],
			[ 'HAJCOM', 'Haz Committee', 
				curr_root + 'department/haj_comm/intro.html', 
				curr_root + 'department/haj_comm/FAQ.html', 
				curr_root + 'department/haj_comm/site_map.html', 
				curr_root + 'department/haj_comm/site_index.html'
			],
			[ 'HILTRN', 'Hiltron', 
				root_english + 'department/hiltron/intro.html', 
				root_english + 'department/hiltron/FAQ.html', 
				root_english + 'department/hiltron/site_map.html', 
				root_english + 'department/hiltron/site_index.html'
			],
			[ 'PRISON', 'Home (Prison)', 
				curr_root + 'department/prison/intro.html', 
				curr_root + 'department/prison/FAQ.html', 
				curr_root + 'department/prison/site_map.html', 
				curr_root + 'department/prison/site_index.html'
			],
			[ 'HOME', 'Home Department', 
				curr_root + 'department/home/intro.html', 
				curr_root + 'department/home/FAQ.html', 
				curr_root + 'department/home/site_map.html', 
				curr_root + 'department/home/site_index.html'
			],
			[ 'FIRE', 'Home Department (Fire)', 
				curr_root + 'department/home/fire/intro.html', 
				curr_root + 'department/home/fire/FAQ.html', 
				curr_root + 'department/home/fire/site_map.html', 
				curr_root + 'department/home/fire/site_index.html'
			],
			[ 'CIVDEF', 'Home Department (Civil Defence)', 
				curr_root + 'department/home/civil_def/intro.html', 
				curr_root + 'department/home/civil_def/FAQ.html', 
				curr_root + 'department/home/civil_def/site_map.html', 
				curr_root + 'department/home/civil_def/site_index.html'
			],
			[ 'HOMEGRD', 'Home Department (Home Guards)', 
				curr_root + 'department/home/home_guard/intro.html', 
				curr_root + 'department/home/home_guard/FAQ.html', 
				curr_root + 'department/home/home_guard/site_map.html', 
				curr_root + 'department/home/home_guard/site_index.html'
			],
			[ 'ARMS', 'Home Department (Arms)', 
				curr_root + 'department/home/arms/intro.html', 
				curr_root + 'department/home/arms/FAQ.html', 
				curr_root + 'department/home/arms/site_map.html', 
				curr_root + 'department/home/arms/site_index.html'
			],
			[ 'CID', 'Home Department (CID)', 
				curr_root + 'department/home/cid/intro.html', 
				curr_root + 'department/home/cid/FAQ.html', 
				curr_root + 'department/home/cid/site_map.html', 
				curr_root + 'department/home/cid/site_index.html'
			],
                                                      [ 'PPROS', 'Public prosecutution', 
				curr_root + 'department/home/public_prosecution/intro.html', 
				curr_root + 'department/home/public_prosecution/FAQ.html', 
				curr_root + 'department/home/public_prosecution/site_map.html', 
				curr_root + 'department/home/public_prosecution/site_index.html'
			],
			[ 'SHGNR', 'Shadow_Gunner', 
				curr_root + 'department/home/shadow_gunner/intro.html', 
				curr_root + 'department/home/shadow_gunner/FAQ.html', 
				curr_root + 'department/home/shadow_gunner/site_map.html', 
				curr_root + 'department/home/shadow_gunner/site_index.html'
			],
			[ 'PRIS', 'Prison', 
				curr_root + 'department/home/prison/intro.html', 
				curr_root + 'department/home/prison/FAQ.html', 
				curr_root + 'department/home/prison/site_map.html', 
				curr_root + 'department/home/prison/site_index.html'
			],
			[ 'POLICE', 'Home(CID,Fire,Police,PAC)', 
				curr_root + 'department/police/intro.html', 
				curr_root + 'department/police/FAQ.html', 
				curr_root + 'department/police/site_map.html', 
				curr_root + 'department/police/site_index.html'
			],
			[ 'HRDI', 'HRDI', 
				root_english + 'department/hrdi/intro.html', 
				root_english + 'department/hrdi/FAQ.html', 
				root_english + 'department/hrdi/site_map.html', 
				root_english + 'department/hrdi/site_index.html'
			],
			[ 'IPURD', 'Information and Public Relation Department', 
				curr_root + 'department/information/intro.html', 
				curr_root + 'department/information/FAQ.html', 
				curr_root + 'department/information/site_map.html', 
				curr_root + 'department/information/site_index.html'
			],
			[ 'ITDAG', 'Information Technology', 
				root_english + 'department/information_tech/intro.html', 
				root_english + 'department/information_tech/FAQ.html', 
				root_english + 'department/information_tech/site_map.html', 
				root_english + 'department/information_tech/site_index.html'
			],
			[ 'IRIGTN', 'Irrigation', 
				root_english + 'department/irrigation/intro.html', 
				root_english + 'department/irrigation/FAQ.html', 
				root_english + 'department/irrigation/site_map.html', 
				root_english + 'department/irrigation/site_index.html'
			],
			[ 'KHADI', 'Khadi and Gram Udyog Board', 
				curr_root + 'department/khadi_gramodyog/intro.html', 
				curr_root + 'department/khadi_gramodyog/FAQ.html', 
				curr_root + 'department/khadi_gramodyog/site_map.html', 
				curr_root + 'department/khadi_gramodyog/site_index.html'
			],
			[ 'KMVN', 'KMVN', 
				curr_root + 'department/kmvn/intro.html', 
				curr_root + 'department/kmvn/FAQ.html', 
				curr_root + 'department/kmvn/site_map.html', 
				curr_root + 'department/kmvn/site_index.html'
			],
			[ 'LABOR', 'Labour', 
				curr_root + 'department/labour/intro.html', 
				curr_root + 'department/labour/FAQ.html', 
				curr_root + 'department/labour/site_map.html', 
				curr_root + 'department/labour/site_index.html'
			],
			[ 'LNDSD', 'Land Survey Directorate', 
				curr_root + 'department/land_survey/intro.html', 
				curr_root + 'department/land_survey/FAQ.html', 
				curr_root + 'department/land_survey/site_map.html', 
				curr_root + 'department/land_survey/site_index.html'
			],
			[ 'LANG', 'Language', 
				curr_root + 'department/language/intro.html', 
				curr_root + 'department/language/FAQ.html', 
				curr_root + 'department/language/site_map.html', 
				curr_root + 'department/language/site_index.html'
			],
			[ 'LAW', 'Law', 
				curr_root + 'department/law/intro.html', 
				curr_root + 'department/law/FAQ.html', 
				curr_root + 'department/law/site_map.html', 
				curr_root + 'department/law/site_index.html'
			],
			[ 'LEGIPA', 'Legislative and Parliamentary Affairs', 
				curr_root + 'department/legislative_affairs/intro.html', 
				curr_root + 'department/legislative_affairs/FAQ.html', 
				curr_root + 'department/legislative_affairs/site_map.html', 
				curr_root + 'department/legislative_affairs/site_index.html'
			],
			[ 'LEKHAK', 'Lekha and Hakdari ', 
				curr_root + 'department/accounts_entitlement/intro.html', 
				curr_root + 'department/accounts_entitlement/FAQ.html', 
				curr_root + 'department/accounts_entitlement/site_map.html', 
				curr_root + 'department/accounts_entitlement/site_index.html'
			],
			[ 'MPRI', 'Medicinal Plant Research Institute', 
				curr_root + 'department/medicial_plant/intro.html', 
				curr_root + 'department/medicial_plant/FAQ.html', 
				curr_root + 'department/medicial_plant/site_map.html', 
				curr_root + 'department/medicial_plant/site_index.html'
			],
			[ 'MINIR', 'Minor Irrigation', 
				curr_root + 'department/minor_irrigation/intro.html', 
				curr_root + 'department/minor_irrigation/FAQ.html', 
				curr_root + 'department/minor_irrigation/site_map.html', 
				curr_root + 'department/minor_irrigation/site_index.html'
			],
			[ 'NDBR', 'Nanda Devi Biosphere Reserve', 
				root_english + 'department/forest/NDBR/intro.html', 
				root_english + 'department/forest/NDBR/FAQ.html', 
				root_english + 'department/forest/NDBR/site_map.html', 
				root_english + 'department/forest/NDBR/site_index.html'
			],
			[ 'SMSAV', 'National Small Savings', 
				curr_root + 'department/national_small_saving/intro.html', 
				curr_root + 'department/national_small_saving/FAQ.html', 
				curr_root + 'department/national_small_saving/site_map.html', 
				curr_root + 'department/national_small_saving/site_index.html'
			],
			[ 'NIM', 'Nehru Institute Of Mountaineering', 
				root_english + 'department/nim/intro.html', 
				root_english + 'department/nim/FAQ.html', 
				root_english + 'department/nim/site_map.html', 
				root_english + 'department/nim/site_index.html'
			],
			[ 'PANRAJ', 'Panchayti Raj', 
				curr_root + 'department/panchayti_raj/intro.html', 
				curr_root + 'department/panchayti_raj/FAQ.html', 
				curr_root + 'department/panchayti_raj/site_map.html', 
				curr_root + 'department/panchayti_raj/site_index.html'
			],
			[ 'PERSON', 'Personal Department (Karmik Vibhaag)', 
				curr_root + 'department/personnel/intro.html', 
				curr_root + 'department/personnel/FAQ.html', 
				curr_root + 'department/personnel/site_map.html', 
				curr_root + 'department/personnel/site_index.html'
			],
			[ 'EPPCB', 'Pollution Control Board', 
				curr_root + 'department/pcb/intro.html', 
				curr_root + 'department/pcb/FAQ.html', 
				curr_root + 'department/pcb/site_map.html', 
				curr_root + 'department/pcb/site_index.html'
			],
			[ 'PRODEP', 'Protocol', 
				curr_root + 'department/protocol/intro.html', 
				curr_root + 'department/protocol/FAQ.html', 
				curr_root + 'department/protocol/site_map.html', 
				curr_root + 'department/protocol/site_index.html'
			],
			[ 'PWD', 'PWD', 
				curr_root + 'department/pwd/intro.html', 
				curr_root + 'department/pwd/FAQ.html', 
				curr_root + 'department/pwd/site_map.html', 
				curr_root + 'department/pwd/site_index.html'
			],
			[ 'RAJPRK', 'Raja ji National Park', 
				curr_root + 'department/rajaji_park/intro.html', 
				curr_root + 'department/rajaji_park/FAQ.html', 
				curr_root + 'department/rajaji_park/site_map.html', 
				curr_root + 'department/rajaji_park/site_index.html'
			],
			[ 'RAJSAM', 'Rajya Sampatti', 
				curr_root + 'department/rajya_sampati/intro.html', 
				curr_root + 'department/rajya_sampati/FAQ.html', 
				curr_root + 'department/rajya_sampati/site_map.html', 
				curr_root + 'department/rajya_sampati/site_index.html'
			],
			[ 'RCFS', 'Registrar Chits Fund and Society', 
				root_english + 'department/registrar_chit_fund/intro.html', 
				root_english + 'department/registrar_chit_fund/FAQ.html', 
				root_english + 'department/registrar_chit_fund/site_map.html', 
				root_english + 'department/registrar_chit_fund/site_index.html'
			],
			[ 'REVDEP', 'Revenue', 
				curr_root + 'department/revenue/intro.html', 
				curr_root + 'department/revenue/FAQ.html', 
				curr_root + 'department/revenue/site_map.html', 
				curr_root + 'department/revenue/site_index.html'
			],
			[ 'RUENG', 'Rural Engineering Services', 
				curr_root + 'department/res/intro.html', 
				curr_root + 'department/res/FAQ.html', 
				curr_root + 'department/res/site_map.html', 
				curr_root + 'department/res/site_index.html'
			],
			[ 'SECADM', 'Secretariat Administration', 
				curr_root + 'department/sec_admin/intro.html', 
				curr_root + 'department/sec_admin/FAQ.html', 
				curr_root + 'department/sec_admin/site_map.html', 
				curr_root + 'department/sec_admin/site_index.html'
			],
			[ 'SIDCUL', 'SIDCUL', 
				root_english + 'department/sidcul/intro.html', 
				root_english + 'department/sidcul/FAQ.html', 
				root_english + 'department/sidcul/site_map.html', 
				root_english + 'department/sidcul/site_index.html'
			],
			[ 'SPORTS', 'Sports', 
				curr_root + 'department/sports/intro.html', 
				curr_root + 'department/sports/FAQ.html', 
				curr_root + 'department/sports/site_map.html', 
				curr_root + 'department/sports/site_index.html'
			],
			[ 'STAREG', 'Stamp and Registration', 
				curr_root + 'department/stamp_registration/intro.html', 
				curr_root + 'department/stamp_registration/FAQ.html', 
				curr_root + 'department/stamp_registration/site_map.html', 
				curr_root + 'department/stamp_registration/site_index.html'
			],
			[ 'SWF', 'Social Welfare Department', 
				curr_root + 'department/swf/intro.html', 
				curr_root + 'department/swf/FAQ.html', 
				curr_root + 'department/swf/site_map.html', 
				curr_root + 'department/swf/site_index.html'
			],
			[ 'ELECOM', 'State Electoral Commission', 
				curr_root + 'department/state_elec_comm/intro.html', 
				curr_root + 'department/state_elec_comm/FAQ.html', 
				curr_root + 'department/state_elec_comm/site_map.html', 
				curr_root + 'department/state_elec_comm/site_index.html'
			],
			[ 'PLANCO', 'State Planning Commission', 
				curr_root + 'department/spc/intro.html', 
				curr_root + 'department/spc/FAQ.html', 
				curr_root + 'department/spc/site_map.html', 
				curr_root + 'department/spc/site_index.html'
			],
			[ 'SREORG', 'State Re-Oraganisation', 
				curr_root + 'department/state_reorg/intro.html', 
				curr_root + 'department/state_reorg/FAQ.html', 
				curr_root + 'department/state_reorg/site_map.html', 
				curr_root + 'department/state_reorg/site_index.html'
			],
			[ 'SSOPCA', 'State Seed and Organic Produce Certification Organisation', 
				curr_root + 'department/ssopco/intro.html', 
				curr_root + 'department/ssopco/FAQ.html', 
				curr_root + 'department/ssopco/site_map.html', 
				curr_root + 'department/ssopco/site_index.html'
			],
			[ 'CDSID', 'Sugar and Cane Development', 
				curr_root + 'department/sugar_cane/intro.html', 
				curr_root + 'department/sugar_cane/FAQ.html', 
				curr_root + 'department/sugar_cane/site_map.html', 
				curr_root + 'department/sugar_cane/site_index.html'
			],
			[ 'TORDB', 'Tourism Development Board', 
				curr_root + 'department/tourism_board/intro.html', 
				curr_root + 'department/tourism_board/FAQ.html', 
				curr_root + 'department/tourism_board/site_map.html', 
				curr_root + 'department/tourism_board/site_index.html'
			],
			[ 'TRATAX', 'Trade Tax', 
				curr_root + 'department/trade_tax/intro.html', 
				curr_root + 'department/trade_tax/FAQ.html', 
				curr_root + 'department/trade_tax/site_map.html', 
				curr_root + 'department/trade_tax/site_index.html'
			],
			[ 'TRANSP', 'Transport Corporation', 
				curr_root + 'department/transport_corp/intro.html', 
				curr_root + 'department/transport_corp/FAQ.html', 
				curr_root + 'department/transport_corp/site_map.html', 
				curr_root + 'department/transport_corp/site_index.html'
			],
			[ 'TRAUD', 'Treasuries and Audit', 
				curr_root + 'department/treasuries_audit/intro.html', 
				curr_root + 'department/treasuries_audit/FAQ.html', 
				curr_root + 'department/treasuries_audit/site_map.html', 
				curr_root + 'department/treasuries_audit/site_index.html'
			],
			[ 'UREDA', 'UREDA', 
				curr_root + 'department/ureda/intro.html', 
				curr_root + 'department/ureda/FAQ.html', 
				curr_root + 'department/ureda/site_map.html', 
				curr_root + 'department/ureda/site_index.html'
			],
			[ 'UFDC', 'Uttaranchal Forest Development Corporation', 
				curr_root + 'department/forest_corp/intro.html', 
				curr_root + 'department/forest_corp/FAQ.html', 
				curr_root + 'department/forest_corp/site_map.html', 
				curr_root + 'department/forest_corp/site_index.html'
			],
			[ 'UJVNL', 'Uttaranchal Jal Vidyut Nigam Ltd.', 
				curr_root + 'department/jal_vidyut/intro.html', 
				curr_root + 'department/jal_vidyut/FAQ.html', 
				curr_root + 'department/jal_vidyut/site_map.html', 
				curr_root + 'department/jal_vidyut/site_index.html'
			],
			[ 'UPCL', 'Uttaranchal Power Corporation Ltd.', 
				curr_root + 'department/upcl/intro.html', 
				curr_root + 'department/upcl/FAQ.html', 
				curr_root + 'department/upcl/site_map.html', 
				curr_root + 'department/upcl/site_index.html'
			],
			[ 'UPTCL', 'Uttaranchal Power Transmission Ltd.', 
				curr_root + 'department/ptcul/intro.html', 
				curr_root + 'department/ptcul/FAQ.html', 
				curr_root + 'department/ptcul/site_map.html', 
				curr_root + 'department/ptcul/site_index.html'
			],
			[ 'UERC', 'UERC', 
				root_english + 'department/uerc/intro.html', 
				root_english + 'department/uerc/FAQ.html', 
				root_english + 'department/uerc/site_map.html', 
				root_english + 'department/uerc/site_index.html'
			],
			[ 'PAYJAL', 'Uttaranhal Payjal Sansadhan Vikas and Nirman Nigam', 
				curr_root + 'department/payjal/intro.html', 
				curr_root + 'department/payjal/FAQ.html', 
				curr_root + 'department/payjal/site_map.html', 
				curr_root + 'department/payjal/site_index.html'
			],
			[ 'VIGI', 'Vigilance (Home)', 
				curr_root + 'department/home/vigillance/intro.html', 
				curr_root + 'department/home/vigillance/FAQ.html', 
				curr_root + 'department/home/vigillance/site_map.html', 
				curr_root + 'department/home/vigillance/site_index.html'
			],
			[ 'HNBGU', 'Garhwal University', 
				curr_root + 'apexinstitutes/hnbgu/intro.html', 
				curr_root + 'apexinstitutes/hnbgu/FAQ.html', 
				curr_root + 'apexinstitutes/hnbgu/site_map.html', 
				curr_root + 'apexinstitutes/hnbgu/site_index.html'
			],
			[ 'WRSMGMT', 'Watershed Management', 
				curr_root + 'department/watershed/intro.html', 
				curr_root + 'department/watershed/FAQ.html', 
				curr_root + 'department/watershed/site_map.html', 
				curr_root + 'department/watershed/site_index.html'
			],
			[ 'WFW', 'Water For Welfare', 
				root_english + 'initiatives/wfw/intro.htm', 
				root_english + 'initiatives/wfw/FAQ.htm', 
				root_english + 'initiatives/wfw/site_map.htm', 
				root_english + 'initiatives/wfw/site_index.htm'
			],
			[ 'PROPOOR', 'Pro-Poor IT Initiatives', 
				root_english + 'initiatives/pro_poor_it/intro.html', 
				root_english + 'initiatives/pro_poor_it/FAQ.html', 
				root_english + 'initiatives/pro_poor_it/site_map.html', 
				root_english + 'initiatives/pro_poor_it/site_index.html'
			],
			[ 'BAMBOO', 'Bamboo Board', 
				curr_root + 'department/bamboo/intro.html', 
				curr_root + 'department/bamboo/FAQ.html', 
				curr_root + 'department/bamboo/site_map.html', 
				curr_root + 'department/bamboo/site_index.html'
			],
			[ 'hda', 'Haridwar Development Authority', 
				curr_root + 'department/urban_development/hda/hda_intro.html', 
				curr_root + 'department/urban_development/hda/FAQ.html', 
				curr_root + 'department/urban_development/hda/site_map.html', 
				curr_root + 'department/urban_development/hda/site_index.html'
			]
                 ]

var l_alertValidId = "Valid ids for content are \n" + 
				"S.No.  Description   \n" + 
				"-----  ------------------------------------------\n" + 
				"001.   \"portal\" for portal \n" + 
				"002.   \"fcs\" for food and civil supplies \n" + 
				"003.   \"ud\" for urban development department \n" + 
				"004.   \"rd\" for rural development department \n" + 
				"005.   \"edut\" for techncial education department \n";

/****************************************************************************************
	END PART 3
****************************************************************************************/

/****************************************************************************************
	START PART 4
****************************************************************************************/
function changeLanguage(lang_code, curr_page) {
//alert('Translation of pages is in progress. This feature will be available after some time.')

    if (lang_code=="E" || lang_code=="e") {
        curr_root=root_english;
    } else {
        curr_root=root_hindi;
    }

    if (curr_page == null) {
        location.href=curr_root+"home_page.html"
    } else {
    location.href=curr_root+curr_page;
    }

}


function openHomeHindi(homeId) {
    for (var i = 0; i < common_pages_hindi.length; i++) {    
      if (homeId == common_pages_hindi[i][0]) {
        location.href= common_pages_hindi[i][2];
      }
    }

}

function openHelpHindi(helpPageId) {
    for (var i = 0; i < common_pages_hindi.length; i++) {    
      if (helpPageId == common_pages_hindi[i][0]) {
        if (common_pages_hindi[i][3] == '<null>') {
          alert('Define help page for this web site');
          return;
        }

        if (common_pages_hindi[i][3] == '<not_required>') {
          return;
        }
        location.href= common_pages_hindi[i][3];
      }
    }
}

function openSiteMapHindi(mapId) {

/*    for (var i = 0; i < common_pages_hindi.length; i++) {    
      if (mapId == common_pages_hindi[i][0]) {
        if (common_pages_hindi[i][4] == '<null>') {
          alert('Define site map for this web site');
          return;
        }

        if (common_pages_hindi[i][4] == '<not_required>') {
          return;
        }
        location.href= common_pages_hindi[i][4];
      }
    }*/
}

function openSiteIndexHindi(indexId) {/*
    for (var i = 0; i < common_pages_hindi.length; i++) {    
      if (indexId == common_pages_hindi[i][0]) {
        if (common_pages_hindi[i][5] == '<null>') {
          alert('Define site index for this web site');
          return;
        }

        if (common_pages_hindi[i][5] == '<not_required>') {
          return;
        }
        location.href= common_pages_hindi[i][5];
      }
    }*/
}


function openHomeEng(homeId) {
	if (homeId=='portal') {
		location.href=root_english + "home_page.html"
	} else {
		openHomeHindi(homeId)
	}
}


function openHelpEng(helpPageId) {
	openHelpHindi(helpPageId)
}

function openSiteMapEng(mapId) {
	openSiteMapHindi(mapId)
}

function openSiteIndexEng(indexId) {
	openSiteIndexHindi(indexId)
}


function openDisclaimer(language) {
if (language=='e') {
	location.href= root_english + "disclaimer.html"
} else {
	location.href=curr_root + "disclaimer.html"
}
}

function openMaps() {
	window.open(curr_root + "maps.html", "maps");
}

function openPhotogallery() {
    alert("Photo gallery is under update. It will be available shortly.");
}

function openDirectory(id) {
    if (id == 'state_govt' ) {
        alert("Open contact information page for state government.");
    }
    alert("Open directory called.");
}

function openPurposeHindi() {
    location.href=curr_root + "our_aim.html"
    //location.href=curr_root + ""
}


/****************************************************************************************
	END PART 4
****************************************************************************************/

/****************************************************************************************
	START PART 5
****************************************************************************************/

/* START: LINKS TO DYNAMIC SITES */
function openContactUsHindi(siteId) {
       if (siteId == 'portal' || siteId == null) {
       location.href="http://" + serverIP1 + "/uaportalwebapp/wsLoadFeedbackFormAction.do";
       return;
       }
//    location.href=curr_root + "contact_us.html"
}

function openMyUttara() {
	location.href = "http://" + serverIP1 + "/uaportalwebapp/index.jsp";
    //alert("Services are not enabled in beta version.");
}

function openLoginPage() {
	
    alert("Services are not enabled in beta version.");
}

function openSearchApplicationForms(queryStr) {
    //alert("Open search application forms called.");
    if (queryStr == null) {
        location.href = "http://" + serverIP1 + "/uaportalwebapp/wsLoadApplicationFormCitizenSearch.do";
        return;
    }
    alert("Wrong query string provided");
}

function openSearchGovernmentOrders(queryStr) {
   if (queryStr == null) {
        location.href="http://" + serverIP1 + "/uaportalwebapp/wsgoSearchByCitizen.do";
        return;
    }
     alert("This Service Will Be Shortly Provided");
//      return false;
    //alert("Open search openSearchGovernmentOrders called.");
}

function openSearchTenders() {
//    location.href="http://" + serverIP1 + "/uaportalwebapp/wsTenderSearch.do?type=thisWeek";
    //alert("This service will be available shortly.");
}

function openJobs() {
    location.href="http://" + serverIP1 + "/uaportalwebapp/wsShowJob.do";
    // alert('This service will be available shortly.');
}

function openMandiRates() {
    location.href = "http://" + serverIP1 + "/uaportalwebapp/uaportal/hindi/interactive/mandi_rates.jsp";
//    alert("Currently servers are undergoing maintenance. This service will be available shortly.");
}

function openWeather() {
location.href= "http://" + serverIP1 + "/uaportalwebapp/uaportal/hindi/interactive/weather_search.jsp"
}


function searchFunc(){
    document.forms[0].action ="http://" + serverIP1 + "/wps/portal/uasearch";
    //document.forms[0].action ='http://192.168.121.168/wps/portal/uasearch';
    document.forms[0].submit();    
//      alert("This collection needs re-indexing.");
}

function openNewsList() {
    location.href = "http://" + serverIP1 + "/uaportalwebapp/wsLoadAllPublishedNews.do";
//    alert("Currently servers are undergoing maintenance. This service will be available shortly.");

}


/****************************************************************************************
	END PART 5
****************************************************************************************/

/****************************************************************************************
	END PART 6
****************************************************************************************/
function openLink(loc, myId) {
        location.href = loc;
}

function popupDetails(loc) {
        window.open( loc, "popupHelp", "menubar=0, status=0, scrollbars=yes, height=375, width=500, location=0, resizable=0");
}

function loadCombo() {
	var combo_ctrl=null;
	var combo_all_servecies = document.getElementById("all_services");
	for (var i=0; i<menu_citizen_services.length;i++) {
		combo_ctrl = document.getElementById("citizen_services");
		combo_ctrl.length++;
		combo_ctrl.options[combo_ctrl.length - 1].text = menu_citizen_services[i][0, 0];
		combo_ctrl.options[combo_ctrl.length - 1].value = menu_citizen_services[i][0, 1];
		
		if (menu_citizen_services[i][0, 3] == "yes") {
			combo_all_servecies.length++;
			combo_all_servecies.options[combo_all_servecies.length - 1].text = menu_citizen_services[i][0, 2];
			combo_all_servecies.options[combo_all_servecies.length - 1].value = menu_citizen_services[i][0, 1];
		}
		
	}
	
	for (var i=0; i<education_services.length;i++) {
		combo_ctrl = document.getElementById("education_services");
		combo_ctrl.length++;
		combo_ctrl.options[combo_ctrl.length - 1].text = education_services[i][0, 0];
		combo_ctrl.options[combo_ctrl.length - 1].value = education_services[i][0, 1];

		if (education_services[i][0, 3] == "yes") {
			combo_all_servecies.length++;
			combo_all_servecies.options[combo_all_servecies.length - 1].text = education_services[i][0, 2];
			combo_all_servecies.options[combo_all_servecies.length - 1].value = education_services[i][0, 1];
		}
	}

	for (var i=0; i<agri_services.length;i++) {
		combo_ctrl = document.getElementById("agri_services");
		combo_ctrl.length++;
		combo_ctrl.options[combo_ctrl.length - 1].text = agri_services[i][0, 0];
		combo_ctrl.options[combo_ctrl.length - 1].value = agri_services[i][0, 1];

		if (agri_services[i][0, 3] == "yes") {
			combo_all_servecies.length++;
			combo_all_servecies.options[combo_all_servecies.length - 1].text = agri_services[i][0, 2];
			combo_all_servecies.options[combo_all_servecies.length - 1].value = agri_services[i][0, 1];
		}
	}

	for (var i=0; i<tourist_services.length;i++) {
		combo_ctrl = document.getElementById("tourist_services");
		combo_ctrl.length++;
		combo_ctrl.options[combo_ctrl.length - 1].text = tourist_services[i][0, 0];
		combo_ctrl.options[combo_ctrl.length - 1].value = tourist_services[i][0, 1];

		if (tourist_services[i][0, 3] == "yes") {
			combo_all_servecies.length++;
			combo_all_servecies.options[combo_all_servecies.length - 1].text = tourist_services[i][0, 2];
			combo_all_servecies.options[combo_all_servecies.length - 1].value = tourist_services[i][0, 1];
		}
	}

	for (var i=0; i<bussiness_services.length;i++) {
		combo_ctrl = document.getElementById("bussiness_services");
		combo_ctrl.length++;
		combo_ctrl.options[combo_ctrl.length - 1].text = bussiness_services[i][0, 0];
		combo_ctrl.options[combo_ctrl.length - 1].value = bussiness_services[i][0, 1];

		if (bussiness_services[i][0, 3] == "yes") {
			combo_all_servecies.length++;
			combo_all_servecies.options[combo_all_servecies.length - 1].text = bussiness_services[i][0, 2];
			combo_all_servecies.options[combo_all_servecies.length - 1].value = bussiness_services[i][0, 1];
		}
	}

	for (var i=0; i<health_services.length;i++) {
		combo_ctrl = document.getElementById("health_services");
		combo_ctrl.length++;
		combo_ctrl.options[combo_ctrl.length - 1].text = health_services[i][0, 0];
		combo_ctrl.options[combo_ctrl.length - 1].value = health_services[i][0, 1];

		if (health_services[i][0, 3] == "yes") {
			combo_all_servecies.length++;
			combo_all_servecies.options[combo_all_servecies.length - 1].text = health_services[i][0, 2];
			combo_all_servecies.options[combo_all_servecies.length - 1].value = health_services[i][0, 1];
		}
	}


		
	var combo_uap_departments = document.getElementById("uap_departments");

	for (var i=0; i<menu_uap_departments.length;i++) {
			combo_uap_departments.length++;
			combo_uap_departments.options[combo_uap_departments.length - 1].text = menu_uap_departments[i][0, 0];
			combo_uap_departments.options[combo_uap_departments.length - 1].value =menu_uap_departments[i][0, 1];
	}
	
	var combo_uap_districts = document.getElementById("uap_districts");

	for (var i=0; i<menu_uap_districts.length;i++) {
			combo_uap_districts.length++;
			combo_uap_districts.options[combo_uap_districts.length - 1].text = menu_uap_districts[i][0, 0];
			combo_uap_districts.options[combo_uap_districts.length - 1].value =menu_uap_districts[i][0, 1];
	}
	
	sortSelect(combo_uap_departments);	
	sortSelect(uap_districts);	
	sortSelect(combo_all_servecies);
}

function loadComboServicesDepartment() {
	var combo_ctrl=null;
	var combo_all_servecies = document.getElementById("all_services");
	for (var i=0; i<menu_citizen_services.length;i++) {
		if (menu_citizen_services[i][0, 3] == "yes") {
			combo_all_servecies.length++;
			combo_all_servecies.options[combo_all_servecies.length - 1].text = menu_citizen_services[i][0, 2];
			combo_all_servecies.options[combo_all_servecies.length - 1].value = menu_citizen_services[i][0, 1];
		}
		
	}
	
	for (var i=0; i<education_services.length;i++) {
		if (education_services[i][0, 3] == "yes") {
			combo_all_servecies.length++;
			combo_all_servecies.options[combo_all_servecies.length - 1].text = education_services[i][0, 2];
			combo_all_servecies.options[combo_all_servecies.length - 1].value = education_services[i][0, 1];
		}
	}

	for (var i=0; i<agri_services.length;i++) {
		if (agri_services[i][0, 3] == "yes") {
			combo_all_servecies.length++;
			combo_all_servecies.options[combo_all_servecies.length - 1].text = agri_services[i][0, 2];
			combo_all_servecies.options[combo_all_servecies.length - 1].value = agri_services[i][0, 1];
		}
	}

	for (var i=0; i<tourist_services.length;i++) {
		if (tourist_services[i][0, 3] == "yes") {
			combo_all_servecies.length++;
			combo_all_servecies.options[combo_all_servecies.length - 1].text = tourist_services[i][0, 2];
			combo_all_servecies.options[combo_all_servecies.length - 1].value = tourist_services[i][0, 1];
		}
	}

	for (var i=0; i<bussiness_services.length;i++) {
		if (bussiness_services[i][0, 3] == "yes") {
			combo_all_servecies.length++;
			combo_all_servecies.options[combo_all_servecies.length - 1].text = bussiness_services[i][0, 2];
			combo_all_servecies.options[combo_all_servecies.length - 1].value = bussiness_services[i][0, 1];
		}
	}

	for (var i=0; i<health_services.length;i++) {
		if (tourist_services[i][0, 3] == "yes") {
			combo_all_servecies.length++;
			combo_all_servecies.options[combo_all_servecies.length - 1].text = health_services[i][0, 2];
			combo_all_servecies.options[combo_all_servecies.length - 1].value = health_services[i][0, 1];
		}
	}
		
	var combo_uap_departments = document.getElementById("uap_departments");

	for (var i=0; i<menu_uap_departments.length;i++) {
			combo_uap_departments.length++;
			combo_uap_departments.options[combo_uap_departments.length - 1].text = menu_uap_departments[i][0, 0];
			combo_uap_departments.options[combo_uap_departments.length - 1].value =menu_uap_departments[i][0, 1];
	}
	
	var combo_uap_districts = document.getElementById("uap_districts");

	for (var i=0; i<menu_uap_districts.length;i++) {
			combo_uap_districts.length++;
			combo_uap_districts.options[combo_uap_districts.length - 1].text = menu_uap_districts[i][0, 0];
			combo_uap_districts.options[combo_uap_districts.length - 1].value =menu_uap_districts[i][0, 1];
	}
	
	sortSelect(combo_uap_departments);	
	sortSelect(uap_districts);	
	sortSelect(combo_all_servecies);
}

function sortSelect(obj) {
	var o = new Array();
	if (obj.options==null) { return; }
	for (var i=0; i<obj.options.length; i++) {
		o[o.length] = new Option( obj.options[i].text, obj.options[i].value, obj.options[i].defaultSelected, obj.options[i].selected) ;
		}
	if (o.length==0) { return; }
	o = o.sort( 
		function(a,b) { 
			if ((a.text+"") < (b.text+"")) { return -1; }
			if ((a.text+"") > (b.text+"")) { return 1; }
			return 0;
			} 
		);

	for (var i=0; i<o.length; i++) {
		obj.options[i] = new Option(o[i].text, o[i].value, o[i].defaultSelected, o[i].selected);
		}
	}
	
	function showLink(p_name) {
	var combo_ctrl=null;
	combo_ctrl = document.getElementById(p_name);
	if (combo_ctrl.options[combo_ctrl.selectedIndex].value == '<header>') {
		return true;
	}
	
	if (combo_ctrl.options[combo_ctrl.selectedIndex].value == '<null>') {
		alert("?? ???? ??? ???? ??????? ???");
	} else {
		location.href=combo_ctrl.options[combo_ctrl.selectedIndex].value;
	}
}

function showFile(p_name) {
	var combo_ctrl=null;
	combo_ctrl = document.getElementById(p_name);
	if (combo_ctrl.options[combo_ctrl.selectedIndex].value == '<header>') {
		return true;
	}
	
	if (combo_ctrl.options[combo_ctrl.selectedIndex].value == '<null>') {
		alert("?? ???? ??? ???? ??????? ???");
	} else {
		
		window.open(combo_ctrl.options[combo_ctrl.selectedIndex].value, "_blank");
	}
}

function openGovtInit() {
	alert("Work for this section is under progress.");

}

function loadQuicklinks() {
             
	var combo_ctrl = document.getElementById("quick_links");
	for (var i=0; i<quick_links.length;i++) {
		combo_ctrl.length++;
		combo_ctrl.options[combo_ctrl.length - 1].text = quick_links[i][0, 0];
		combo_ctrl.options[combo_ctrl.length - 1].value = quick_links[i][0, 1];
	}
	
	//sortSelect(combo_ctrl);
}


function showLinkNewPage(p_name) {
	var combo_ctrl=null;
	combo_ctrl = document.getElementById(p_name);
	if (combo_ctrl.options[combo_ctrl.selectedIndex].value == '<header>') {
		return true;
	}
	
	if (combo_ctrl.options[combo_ctrl.selectedIndex].value == '<null>') {
		alert("?? ???? ??? ???? ?????? ???");
	} else {
		window.open(combo_ctrl.options[combo_ctrl.selectedIndex].value, "_blank");
	}
}

function popupWindow(loc) {
        window.open( loc, "popupHelp", "menubar=0, status=0, scrollbars=yes, height=375, width=500, location=0, resizable=0");
	
}