<!--
/*******************************************************************************
MAP SEARCH FUNCTIONS
*********************************************************************************/
//image preloading

var imgIndia, imgZone1
var count = 0;
var imageLoaded=false


function preLoad() {
	imgIndia = new Image();
	imgIndia.onload = loadCheck;
	
	imgIndia.src = "/images/maps/india-zones.gif";

	imgZone1 = new Image();
	imgZone1.onload = loadCheck;
	imgZone1.src = "/images/maps/india.gif";
}

function loadCheck() {
	count++;
	if (count == 2) {		
		imageLoaded=true;
	}
} 
//------------------------------------------------------------------
function writeLayer(layerID,txt){
	
	if(document.getElementById){
		document.getElementById(layerID).innerHTML=txt;
	}else if(document.all){
		document.all[layerID].innerHTML=txt;
	}else if(document.layers){		
		with(document.layers[layerID].document){
			open();
			write(txt);
			close();
		}
	}
}
function typeLayer(layerID,content){
	writeLayer(layerID,content);
	
}


//------------------------------------------------------------------
//imagemaps
var mapIndia,mapZone1,mapZone2,mapZone3


mapIndia="<img src=\"/images/maps/india-zones.gif\" width=\"523\" height=\"569\" usemap=\"#india\" border=\"0\"> <map name=\"india\"><area shape=\"poly\" coords=\"0,246,6,241,14,238,24,239,31,242,37,239,48,240,50,235,47,232,47,226,43,219,40,214,35,212,38,203,31,195,28,189,36,182,42,171,51,169,57,176,72,172,80,161,92,151,98,141,110,136,115,124,126,117,124,109,130,102,138,93,131,88,124,83,117,79,113,70,112,53,119,44,122,34,111,24,102,16,102,10,112,12,112,5,121,5,129,3,137,1,147,1,153,6,153,11,161,12,165,18,171,19,172,29,180,33,192,33,201,31,207,24,215,29,226,32,225,44,222,54,215,58,211,64,204,66,203,73,208,81,213,91,206,95,205,101,199,98,197,92,191,96,194,102,194,114,201,118,210,126,222,129,229,140,226,148,220,156,215,163,222,172,231,176,236,180,244,185,254,189,261,195,269,197,279,198,287,206,283,213,283,223,289,231,281,232,276,237,271,243,269,255,262,263,259,257,256,250,248,248,244,242,237,242,235,236,228,241,225,236,217,234,191,236,190,229,183,233,185,242,186,247,189,254,180,252,176,245,177,238,180,229,185,223,192,217,196,211,187,206,176,202,168,210,159,215,147,221,148,227,156,232,153,245,149,253,137,250,132,255,127,247,132,239,123,237,117,236,111,242,115,253,108,269,96,277,97,289,88,296,96,302,88,310,81,316,75,323,66,323,67,314,67,305,70,298,70,290,70,281,63,281,64,288,62,303,52,309,40,308,34,313,21,304,17,293,6,278,10,271,19,277,27,275,35,270,33,263,22,267,12,264,6,255,0,248,5,240\" href=\"javascript:selectZone('Zone1')\" alt=\"North\" title=\"North\"><area shape=\"poly\" coords=\"66,323,63,339,66,360,67,384,70,398,73,419,82,431,84,416,88,407,87,398,94,396,97,389,112,390,116,380,121,386,131,379,138,376,146,367,156,366,157,359,160,357,159,348,165,348,171,337,184,347,194,343,198,347,196,354,206,361,201,365,209,370,218,381,239,376,243,368,251,371,255,361,265,360,278,364,288,358,295,351,310,345,321,337,330,332,329,317,334,312,341,309,329,297,325,287,324,278,317,281,313,277,309,268,324,270,333,267,340,257,347,242,346,232,352,231,348,222,352,215,337,215,317,215,311,207,303,207,298,202,292,198,286,195,280,198,283,202,289,205,290,211,286,216,284,220,287,225,292,229,289,233,280,236,277,240,275,244,272,251,272,257,270,261,266,265,263,265,260,265,258,261,256,257,256,253,255,250,249,250,245,250,242,244,238,242,235,239,231,242,227,244,221,239,214,237,205,237,201,238,196,239,190,239,189,232,187,232,186,239,186,246,189,250,191,252,191,255,189,258,181,254,178,253,176,248,175,242,177,235,179,230,183,225,191,219,195,214,191,210,184,208,179,205,174,205,169,210,166,214,161,218,156,220,153,221,148,224,149,227,156,229,160,234,160,238,155,244,159,249,154,249,152,251,152,253,150,255,146,257,141,253,138,253,136,257,131,257,127,254,126,249,128,241,123,240,116,238,114,241,115,247,117,251,117,259,112,266,114,269,110,273,104,275,96,277,93,279,101,286,101,289,99,295,97,297,92,298,99,301,100,305,94,308,86,313,87,320,78,323,76,327,72,323,68,328,65,324\" href=\"javascript:selectZone('Zone1')\" alt=\"Center\" title=\"Center\"><area shape=\"poly\" coords=\"167,544,173,529,185,523,189,487,199,476,198,460,198,450,198,440,199,430,205,419,212,418,219,412,232,409,244,393,263,383,273,375,282,365,287,357,277,364,267,360,257,360,253,368,252,373,243,369,242,375,219,383,211,374,208,370,199,366,203,361,195,353,196,345,187,348,171,339,167,347,162,349,164,355,159,361,159,366,147,367,142,375,123,387,117,383,114,391,100,391,97,397,91,397,91,406,86,415,84,430,85,444,95,469,96,487,106,503,111,516,112,530,116,548,137,568\" href=\"javascript:selectZone('Zone1')\" alt=\"South\" title=\"South\"><area shape=\"poly\" coords=\"353,186,364,186,370,198,379,206,389,202,402,205,408,206,417,201,428,198,430,194,427,191,424,186,422,180,436,180,447,171,456,168,462,157,474,159,484,160,486,154,494,153,497,149,500,158,504,165,500,174,512,174,520,176,515,184,514,191,515,199,496,198,483,208,476,212,477,224,470,234,472,244,464,259,448,265,450,282,445,287,445,299,437,296,426,274,416,282,415,288,406,271,412,261,430,254,426,251,434,242,424,244,415,242,401,247,389,246,385,221,377,224,360,217,357,228,371,238,359,245,358,254,362,259,366,263,367,274,371,284,371,298,363,303,359,310,352,304,341,309,338,303,329,297,318,279,309,270,335,266,344,252,346,233,353,230,348,220,354,208,354,187\" href=\"javascript:selectZone('Zone1')\" alt=\"east\" title=\"east\"></map>"

mapZone1="<img src=\"/images/maps/zone_north.gif\" width=\"525\" height=\"440\" usemap=\"#Map\" border=\"0\">"
mapZone1+="<map name=\"Map\">"
mapZone1+="<area shape=\"rect\" coords=\"370,353,447,368\" href=\"javascript:selectcitymap('T00101')\" alt=\"Allahabad\" title=\"Allahabad\">"
mapZone1+="<area shape=\"rect\" coords=\"331,328,388,342\" href=\"javascript:selectcitymap('T00093')\" alt=\"Kanpur\" title=\"Kanpur\">"
mapZone1+="<area shape=\"rect\" coords=\"357,314,427,328\" href=\"javascript:selectcitymap('T00091')\" alt=\"Lucknow\" title=\"Lucknow\">"
mapZone1+="<area shape=\"rect\" coords=\"284,301,327,315\" href=\"javascript:selectcitymap('T00100')\" alt=\"Agra\" title=\"Agra\">"
mapZone1+="<area shape=\"rect\" coords=\"160,367,221,381\" href=\"javascript:selectcitymap('T00119')\" alt=\"Udaipur\" title=\"Udaipur\">"
mapZone1+="<area shape=\"rect\" coords=\"112,345,198,361\" href=\"javascript:selectcitymap('T00123')\" alt=\"Chittorgarh\" title=\"Chittorgarh\">"
mapZone1+="<area shape=\"rect\" coords=\"138,315,201,330\" href=\"javascript:selectcitymap('T00118')\" alt=\"Jodhpur\" title=\"Jodhpur\">"
mapZone1+="<area shape=\"rect\" coords=\"140,301,192,315\" href=\"javascript:selectcitymap('T00121')\" alt=\"Ajmer\" title=\"Ajmer\">"
mapZone1+="<area shape=\"rect\" coords=\"211,300,264,315\" href=\"javascript:selectcitymap('T00104')\" alt=\"Jaipur\" title=\"Jaipur\">"
mapZone1+="<area shape=\"rect\" coords=\"159,265,219,280\" href=\"javascript:selectcitymap('T00120')\" alt=\"Bikaner\" title=\"Bikaner\">"
mapZone1+="<area shape=\"rect\" coords=\"262,247,347,262\" href=\"javascript:selectcitymap('T00103')\" alt=\"New Delhi\" title=\"New Delhi\">"
mapZone1+="<area shape=\"rect\" coords=\"141,201,213,216\" href=\"javascript:selectcitymap('T00107')\" alt=\"Ludhiana\" title=\"Ludhiana\">"
mapZone1+="<area shape=\"rect\" coords=\"238,208,295,221\" href=\"javascript:selectcitymap('T00114')\" alt=\"Patiala\" title=\"Patiala\">"
mapZone1+="<area shape=\"rect\" coords=\"263,193,347,207\" href=\"javascript:selectcitymap('T00105')\" alt=\"Chandigarh\" title=\"Chandigarh\">"
mapZone1+="<area shape=\"rect\" coords=\"165,179,239,192\" href=\"javascript:selectcitymap('T00106')\" alt=\"Jalandhar\" title=\"Jalandhar\">"
mapZone1+="<area shape=\"rect\" coords=\"235,112,295,125\" href=\"javascript:selectcitymap('T00110')\" alt=\"Jammu\" title=\"Jammu\">"
mapZone1+="</map><A href=\"po.asp?action=map\"><font face='verdana' size='-1'>Back</font></A>"

mapZone2="<img src=\"/images/maps/zone_west.gif\" width=\"525\" height=\"440\" usemap=\"#Map\" border=\"0\">" 
mapZone2+="<map name=\"Map\">" 
mapZone2+="<area shape=\"rect\" coords=\"116,355,183,370\" href=\"javascript:selectcitymap('T00053')\" alt=\"Kolhapur\" title=\"Kolhapur\">"
mapZone2+="<area shape=\"rect\" coords=\"222,326,289,340\" href=\"javascript:selectcitymap('T00113')\" alt=\"Sholapur\" title=\"Sholapur\">"
mapZone2+="<area shape=\"rect\" coords=\"168,289,213,302\" href=\"javascript:selectcitymap('T00045')\" alt=\"Pune\" title=\"Pune\">"
mapZone2+="<area shape=\"rect\" coords=\"85,273,148,286\" href=\"javascript:selectcitymap('T00043')\" alt=\"Mumbai\" title=\"Mumbai\">"
mapZone2+="<area shape=\"rect\" coords=\"226,250,314,264\" href=\"javascript:selectcitymap('T00049')\" alt=\"Aurangabad\" title=\"Aurangabad\">"
mapZone2+="<area shape=\"rect\" coords=\"175,243,221,257\" href=\"javascript:selectcitymap('T00051')\" alt=\"Nasik\" title=\"Nasik\">"
mapZone2+="<area shape=\"rect\" coords=\"264,233,311,248\" href=\"javascript:selectcitymap('T00111')\" alt=\"Akola\" title=\"Akola\">"
mapZone2+="<area shape=\"rect\" coords=\"230,217,290,232\" href=\"javascript:selectcitymap('T00112')\" alt=\"Jalgoan\" title=\"Jalgoan\">"
mapZone2+="<area shape=\"rect\" coords=\"334,222,392,238\" href=\"javascript:selectcitymap('T00047')\" alt=\"Nagpur\" title=\"Nagpur\">"
mapZone2+="<area shape=\"rect\" coords=\"287,154,343,168\" href=\"javascript:selectcitymap('T00035')\" alt=\"Bhopal\" title=\"Bhopal\">"
mapZone2+="<area shape=\"rect\" coords=\"370,161,437,174\" href=\"javascript:selectcitymap('T00039')\" alt=\"Jabalpur\" title=\"Jabalpur\">"
mapZone2+="<area shape=\"rect\" coords=\"203,161,256,178\" href=\"javascript:selectcitymap('T00037')\" alt=\"Indore\" title=\"Indore\">"
mapZone2+="<area shape=\"rect\" coords=\"171,179,222,195\" href=\"javascript:selectcitymap('T00015')\" alt=\"Baroda\" title=\"Baroda\">"
mapZone2+="<area shape=\"rect\" coords=\"144,215,197,229\" href=\"javascript:selectcitymap('T00017')\" alt=\"Surat\" title=\"Surat\">"
mapZone2+="<area shape=\"rect\" coords=\"50,200,138,217\" href=\"javascript:selectcitymap('T00023')\" alt=\"Bhavnagar\" title=\"Bhavnagar\">"
mapZone2+="<area shape=\"rect\" coords=\"107,169,167,184\" href=\"javascript:selectcitymap('T00019')\" alt=\"Rajkot\" title=\"Rajkot\">"
mapZone2+="<area shape=\"rect\" coords=\"68,153,166,167\" href=\"javascript:selectcitymap('T00013')\" alt=\"Ahmedabad\" title=\"Ahmedabad\">"
mapZone2+="<area shape=\"rect\" coords=\"7,169,87,185\" href=\"javascript:selectcitymap('T00021')\" alt=\"Jamnagar\" title=\"Jamnagar\">"
mapZone2+="<area shape=\"rect\" coords=\"321,60,382,75\" href=\"javascript:selectcitymap('T00041')\" alt=\"Gwalior\" title=\"Gwalior\">"
mapZone2+="<area shape=\"rect\" coords=\"133,412,172,425\" href=\"javascript:selectcitymap('T00108')\" alt=\"Goa\" title=\"Goa\">"
mapZone2+="</map><A href=\"po.asp?action=map\"><font face='verdana' size='-1'>Back</font></A>"

mapZone3="<img src=\"/images/maps/zone_south.gif\" width=\"525\" height=\"440\" usemap=\"#Map\" border=\"0\">" 
mapZone3+="<map name=\"Map\">" 
mapZone3+="<area shape=\"rect\" coords=\"208,363,275,378\" href=\"javascript:selectcitymap('T00065')\" alt=\"Madurai\" title=\"Madurai\">"
mapZone3+="<area shape=\"rect\" coords=\"87,413,172,428\" href=\"javascript:selectcitymap('T00124')\" alt=\"Trivandrum\" title=\"Trivandrum\">"
mapZone3+="<area shape=\"rect\" coords=\"100,389,159,403\" href=\"javascript:selectcitymap('T00098')\" alt=\"Cochin\" title=\"Cochin\">"
mapZone3+="<area shape=\"rect\" coords=\"231,335,280,351\" href=\"javascript:selectcitymap('T00069')\" alt=\"Trichy\" title=\"Trichy\">"
mapZone3+="<area shape=\"rect\" coords=\"271,296,360,311\" href=\"javascript:selectcitymap('T00067')\" alt=\"Pondicherry\" title=\"Pondicherry\">"
mapZone3+="<area shape=\"rect\" coords=\"166,318,255,332\" href=\"javascript:selectcitymap('T00063')\" alt=\"Coimbatore\" title=\"Coimbatore\">"
mapZone3+="<area shape=\"rect\" coords=\"76,302,135,316\" href=\"javascript:selectcitymap('T00117')\" alt=\"Trichur\" title=\"Trichur\">"
mapZone3+="<area shape=\"rect\" coords=\"173,299,222,312\" href=\"javascript:selectcitymap('T00115')\" alt=\"Erode\" title=\"Erode\">"
mapZone3+="<area shape=\"rect\" coords=\"218,282,269,297\" href=\"javascript:selectcitymap('T00089')\" alt=\"Salem\" title=\"Salem\">"
mapZone3+="<area shape=\"rect\" coords=\"117,267,174,282\" href=\"javascript:selectcitymap('T00033')\" alt=\"Mysore\" title=\"Mysore\">"
mapZone3+="<area shape=\"rect\" coords=\"249,256,306,269\" href=\"javascript:selectcitymap('T00071')\" alt=\"Vellore\" title=\"Vellore\">"
mapZone3+="<area shape=\"rect\" coords=\"293,240,357,256\" href=\"javascript:selectcitymap('T00061')\" alt=\"Chennai\" title=\"Chennai\">"
mapZone3+="<area shape=\"rect\" coords=\"195,239,271,255\" href=\"javascript:selectcitymap('T00025')\" alt=\"Bangalore\" title=\"Bangalore\">"
mapZone3+="<area shape=\"rect\" coords=\"37,243,116,258\" href=\"javascript:selectcitymap('T00031')\" alt=\"Mangalore\" title=\"Mangalore\">"
mapZone3+="<area shape=\"rect\" coords=\"115,163,163,177\" href=\"javascript:selectcitymap('T00029')\" alt=\"Hubli\" title=\"Hubli\">"
//mapZone3+="<area shape=\"rect\" coords=\"44,162,84,176\" href=\"javascript:selectcitymap('T00108')\" alt=\"Goa\" title=\"Goa\">"
mapZone3+="<area shape=\"rect\" coords=\"90,134,160,148\" href=\"javascript:selectcitymap('T00027')\" alt=\"Belgaum\" title=\"Belgaum\">"
mapZone3+="<area shape=\"rect\" coords=\"254,131,310,145\" href=\"javascript:selectcitymap('T00003')\" alt=\"Guntur\" title=\"Guntur\">"
mapZone3+="<area shape=\"rect\" coords=\"240,101,322,116\" href=\"javascript:selectcitymap('T00001')\" alt=\"Hyderabad\" title=\"Hyderabad\">"
mapZone3+="<area shape=\"rect\" coords=\"315,122,399,136\" href=\"javascript:selectcitymap('T00007')\" alt=\"Vijayawada\" title=\"Vijayawada\">"
mapZone3+="<area shape=\"rect\" coords=\"366,102,463,116\" href=\"javascript:selectcitymap('T00095')\" alt=\"Rajahmundry\" title=\"Rajahmundry\">"
mapZone3+="<area shape=\"rect\" coords=\"426,73,473,89\" href=\"javascript:selectcitymap('T00009')\" alt=\"Vizag\" title=\"Vizag\">"
mapZone3+="</map><A href=\"po.asp?action=map\"><font face='verdana' size='-1'>Back</font></A>"

mapZone4="<img src=\"/images/maps/zone_east.gif\" width=\"525\" height=\"440\" usemap=\"#Map\" border=\"0\">" 
mapZone4+="<map name=\"Map\">" 
mapZone4+="<area shape=\"rect\" coords=\"130,159,179,172\" href=\"javascript:selectcitymap('T00116')\" alt=\"Patna\" title=\"Patna\">"
mapZone4+="<area shape=\"rect\" coords=\"194,225,265,240\" href=\"javascript:selectcitymap('T00075')\" alt=\"Durgapur\" title=\"Durgapur\">"
mapZone4+="<area shape=\"rect\" coords=\"237,243,332,259\" href=\"javascript:selectcitymap('T00077')\" alt=\"24 Paraganas\" title=\"24 Paraganas\">"
mapZone4+="<area shape=\"rect\" coords=\"230,262,291,277\" href=\"javascript:selectcitymap('T00073')\" alt=\"Kolkata\" title=\"Kolkata\">"
mapZone4+="<area shape=\"rect\" coords=\"167,265,228,279\" href=\"javascript:selectcitymap('T00097')\" alt=\"Howrah\" title=\"Howrah\">"
mapZone4+="<area shape=\"rect\" coords=\"85,292,188,306\" href=\"javascript:selectcitymap('T00109')\" alt=\"Bhubaneshwar\" title=\"Bhubaneshwar\">"
mapZone4+="<area shape=\"rect\" coords=\"96,324,159,338\" href=\"javascript:selectcitymap('T00102')\" alt=\"Cuttack\" title=\"Cuttack\">"
mapZone4+="</map><A href=\"po.asp?action=map\"><font face='verdana' size='-1'>Back</font></A>"


//------------------------------------------------------------------
//ZONES
function selectZone(zone){
	
	map=eval("map"+zone)
	typeLayer('maparea',map);
	typeLayer('lblMap',"Please select a city from the map to view the areas in that city");
	
}
//------------------------------------------------------------------
//function init(){	
//	preLoad();
//	//if(imageLoaded){
//	typeLayer('maparea',mapIndia);
//	//}
//}
//------------------------------------------------------------------
	

//-->
