﻿// JScript File


var item = new Array();

/* Here is where all the magic happens.  
    Just enter as many additional pages that
    that you want to search, then fill in the
    additional listings for each page.
*/

// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

c=0; item[c]=new Array("Index.aspx","../Common/","Home Page","मुख्य पान, mukhya pan, Index,amalner ,parishad ,nagarprishad ,sandesh ,vibhag,enivida ,tender ,vikasarakhada ,paryatansthal ,batmya ,phone","index page or home page for all users");

c++; item[c]=new Array("PryatanSthale.aspx","../Common/","Toursit","famous,place,amlner tours,travels,tours and travels,amalner travles","Amalner toursit place");

c++; item[c]=new Array("Login.aspx","../Common/","Login Page","लाँगिन,पान,login,password,forgot,user name,user,name,","user's that are registered on site and have authorization can login. ");

c++; item[c]=new Array("ForgorPassword.aspx","../Common/","Forgot Password Page","login,password,forgot,user name,user,name","The main part of my site which contains what you have come to see. Lots of stuff like that and more great things. All in a sub directory.");

c++; item[c]=new Array("Baandhkaamvibhag.aspx","../Common/","Bhandhkam Vibhag","city","development","bhandkaam","bhandhkam,Vibhag","Shows the details of bhandhkam vibhag. ");

c++; item[c]=new Array("CommitteMeetings.aspx","../Common/","Samiksha Baithak","meetings","meeting","Samiksha,Baithak,committe Meeting,meeting,karyasuche,karysuchi,karysuche,karyvrutta,karyavrutta,karyavrutt","badhek","badhak","Shows the details of committe meeting. ");

c++; item[c]=new Array("Complaint.aspx","../Common/","Takrar","feedback","salla","suggesstion","Takrar,Baithak, Takraricha,takrar nondani,salla","Shows the details of Complaints. ");

c++; item[c]=new Array("Sampark.aspx","../Common/","Sampark Pan","Sampark Pan, railway,amalner sampark,amalner","Contact us page used to show every contact details in the oragnisation. ");

c++; item[c]=new Array("mahatvachyesankletsthal.aspx","./Common/","Mahatwache Sanket Sthal Pan","Mahatwache, Sanket, Sthal,shasan,shikshan, Pan","shows the details of Important links. ");

c++; item[c]=new Array("NagarParishadevishayii.aspx","../Common/","Nagarparishadevishyai","History","about bagar parisha","amalner nagar parishad","nagar","parishad","shows the details of History . ");

c++; item[c]=new Array("shaharachimahiti.aspx","../Common/","Shehar","amalner city","city","amalner","History","about bagar parisha","amalner nagar parishad","nagar","parishad","shows the details of History . ");

c++; item[c]=new Array("JanmaMrutyuVibhag.aspx","../Common/","JanmMratyu Vibhag","JanmMratyu","shows the details of Birth and death. ");

c++; item[c]=new Array("MahitichaAdhikar.aspx","../Common/","MahatichaAdhikar Vibhag","Rti","information","Information","Act","MahatichaAdhikar, mahiti,maheeti,mahiticha","shows the details of important informain. ");

c++; item[c]=new Array("Nagarsevakansbiyaadi.aspx","../Common/","Nagar Sevak","list of nagar sevak","shows the details of Nagar sevak. ");

c++; item[c]=new Array("Shikshan.aspx","../Common/","Shikshan Vibhag","amalner shiksha","shiksha","education","education","amalner","amalner education","shows the details of Geometric structure. ");

c++; item[c]=new Array("NagarParishadevishayii.aspx","../Common/","NagarParishad Vishayi","amalner nagar parishad","shows the details of amalner. ");

c++; item[c]=new Array("Nakasha.aspx","../Common/","Nakashaa Paan","Nakashaa","map","amalner map","amalner city" ,"shows the details of amalner in map. ");

c++; item[c]=new Array("PanipuravathaVibhag.aspx","../Common/","PanniPurvadha Vibhag","panipuravatha, pani, panni, water, mum","shows the details of water supply in amalner . ");

c++; item[c]=new Array("Photogallary.aspx","../Common/","Photogallery Paan","Photogallery, photo, galary, gallary,pictures,picture","amalner photos","amalner","shows the details of photo gallary for amalner. ");

c++; item[c]=new Array("Suvrnajayantiyogna.aspx","./Common/","SuvrnaJayantiYogna Vibhag","SuvranJayanti,suvern jayanti,suvern,jayanti,golden,jublie,SuvrnaJayantiYogna,yogna,yojana,yojna","shows the details of Golden jublie yojana. ");



c++; item[c]=new Array("Karvibhag.aspx","../Common/","Vasuli Vibhag","Vasuli,vasulee,vasuli,tax","shows the details of Tax. ");

c++; item[c]=new Array("Samiti.aspx","../Common/","Sabha Samiti","samiti","sabha","shows the details of Tax. ");

c++; item[c]=new Array("Npfund.aspx","../Common/","Nagar parishad","fund","anudan","amalner","fund","shows the details of Tax. ");

c++; item[c]=new Array("Varishadhtasuchi.aspx","../Common/","Employee list","diva vibhag","diva batti","amalner employee list","employee","shows the details of employee. ");

c++; item[c]=new Array("Karmacharyiyaadi.aspx","../Common/","Employee list","arogya vibhag","arogya","amalner employee list","employee","shows the details of employee. ");


page="<html><head><title>Amalner Nagar Parishad,Search</title></head><body style=background-color:#2D2B2C ><center><table cellpadding=0  border=0 cellspacing=10 width=80% style=height:100%;background-color:#FFFFFF;border:1px solid #A8774C;padding:5px>";


function search() {
win = window.open("","","scrollbars");
win.document.write(page);
 
win.document.write("<tr><td valign=top style=background-color:#FFFFFF;font-size:20px;color:#FFFFFF;padding:5px;font-family:verdana;height:30px>Search</td></tr>");
txt = document.getElementById('srchval').value.split(" ");

fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) 
{
    fnd[i] = 0; order = new Array(0, 4, 2, 3);
    for (j = 0; j < order.length; j++)
    for (k = 0; k < txt.length; k++)
    if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "")
    fnd[i] += (j+1);
}
for (i = 0; i < fnd.length; i++) 
{
    n = 0; w = -1;
    for (j = 0;j < fnd.length; j++)
    if (fnd[j] > n) { n = fnd[j]; w = j; };
    if (w > -1) total += show(w, win, n);
    fnd[w] = 0;
}
win.document.write("<tr><td valign=bottom style=background-color:#FFFFFF;font-size:10px;color:black;padding:5px;height:10px;font-family:verdana>Search Result of amalner Nagar Website </td></tr></table><br>Total found: "+total+"<br></body></html>");
win.document.close();
}
function show(which,wind,num) {
link = item[which][1] + item[which][0]; 

line= "<tr><td valign=top style=color:#2F2822;font-family=verdana;font-size:12px><a style=color:#AB7B53;font-family=verdana href='"+link+"'>"+item[which][2]+"</a> Score: "+num+"<br>";
line += item[which][4] + "<br>"+link+"</td></tr>";
wind.document.write(line);
return 1;
}
//  End -->
// Code for  Clear text Box

function clearText(id){
		document.getElementById(id).value = "";
}
function setText(id){

if(document.getElementById(id).value== "")
    document.getElementById(id).value="Search";
}

function search_validation(id)
{

if(document.getElementById(id).value== "")
{   
   alert('Please enter the text to search.');
} 
   else
 {
   search();
 }  
}
