    //for events, blogs and softwares
    //Softwares
	var software_category01 = new Array("--Subcategory--","Photo Editing","Video Editing");
	//Photography Blogs
	var software_category02 = new Array("--select--","Forums","Photography Articles","Camera Review","Photography Directories","Photography Techniques","Message board","Discussion board");
    //Photography Events
	var software_category03 = new Array("--select--","Photography Exhibitors","Photography Exhibitions","Photo contest","Photo seminars");
	
	function software_category(selCtrl,selChildCtrl)
	{
		if(selCtrl.selectedIndex == 1)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < software_category01.length;i++)
				addOption(selChildCtrl,software_category01[i],software_category01[i]);
		}
		if(selCtrl.selectedIndex == 2)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < software_category02.length;i++)
				addOption(selChildCtrl,software_category02[i],software_category02[i]);
		}
		if(selCtrl.selectedIndex == 3)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < software_category03.length;i++)
				addOption(selChildCtrl,software_category03[i],software_category03[i]);
		}
    }
    
    // for photo labs,Institutes,Organization,Publications,Photography events,Photography blogs "variable is photo_ins_org_pub_phoeve_blogs"
	company_category0 = new Array("--Subcategory--");
	//Photo studio/ Photo Labs
	var company_category1 = new Array("--Subcategory--","Photo Studio","Manual labs","Color labs","Digital labs","Celebrity","Commercial","Fashion","Beauty/ Glamour","Food/ Beverage","Portrait","Product/ Catalog","Still life/ Table top");
	//dealers
	var company_category2 = new Array("--Subcategory--","Bags, Cases & Straps","Manuals, Guides & Books","Binoculars & Telescopes","Photo Albums","Camcorder Accessories","Printers Scanners etc","Camcorders","Prfsnl Video Equipments","Digital Camera Accessories","Projection Equipment","Film Cameras","Digital Cameras","Film Processing & Darkroom","Film Camera Accessories","Flashes & Accessories");
	//Camera Rental/ Editing
	var company_category3 = new Array("--Subcategory--","Photo Editing","Video Editing","Photography Equipment Rental","Movie Camera Rental","Video Camera Rental","Tripod And Lights Rental");
	//Camera Repair & Services	
	var company_category4 = new Array("--select--","SLR Camera","Digital Camera Service","Flash Repair Service","Video Camera Service","Movie Camera Service");
	//for Pictures
	var company_category5 = new Array("--select--","Agriculture","Architecture","Abstract","Animals/Wildlife","Art-Illustration","Babies and Children","Backgrounds and Textures","Borders and Frames","Background/Textures","Beauty/Fashion","Buildings/Landmarks","Business/Finance","Cities and Regions","Couples","Communication","Computers","Conceptual","Celebrities","Design Elements","Entertainment","Editorial","Education","Families","Fine Art","Fun","Future","Food and Drink","Government","Historic and Vintage","Holidays","Home","Humor","Healthcare/Medical","Internet","Illstrations/Clip-Art","Industrial","Interiors","Industry","Landscapes","Maps","Mature Adults","Military","Music","Nature","Objects","Occupations","People","Plants","Places","Parks/Outdoor","Religion","Science","Seasons","Space","Sports and Recreation","Stock Footage Video","Sexual","Signs/Symbols","Technology","Transportation","Travel","Urban","Vectors","Vintage","Youth");
	//Institutes
	var company_category6 = new Array("--Subcategory--","Photography schools/ colleges","Institutes","Online course","Workshops");
	//Photography Agencies
	var company_category7 = new Array("--select--","Advertising Agencies","Modeling Agencies","Portfolio Builders","Art Agency","Photography Insurance","Photography Jobs");
	//Organization
	var company_category8 = new Array("--Subcategory--","Photo clubs","Associations","Videographer Association");
	
	function company_category(selCtrl,selChildCtrl)
	{
		if(selCtrl.selectedIndex == 1)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < company_category1.length;i++)
				addOption(selChildCtrl,company_category1[i],company_category1[i]);
		}
		if(selCtrl.selectedIndex == 2)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < company_category2.length;i++)
				addOption(selChildCtrl,company_category2[i],company_category2[i]);
		}
		if(selCtrl.selectedIndex == 3)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < company_category3.length;i++)
				addOption(selChildCtrl,company_category3[i],company_category3[i]);
		}
		if(selCtrl.selectedIndex == 4)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < company_category4.length;i++)
				addOption(selChildCtrl,company_category4[i],company_category4[i]);
		}
		if(selCtrl.selectedIndex == 5)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < company_category5.length;i++)
				addOption(selChildCtrl,company_category5[i],company_category5[i]);
		}
		if(selCtrl.selectedIndex == 6)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < company_category6.length;i++)
				addOption(selChildCtrl,company_category6[i],company_category6[i]);
		}
		if(selCtrl.selectedIndex == 7)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < company_category7.length;i++)
				addOption(selChildCtrl,company_category7[i],company_category7[i]);
		}
		if(selCtrl.selectedIndex == 8)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < company_category8.length;i++)
				addOption(selChildCtrl,company_category8[i],company_category8[i]);
		}	
	}
	
	//for Photographers,videographer,photographer crew 
	 individual_category0 = new Array("--select--");	 
	//Photographers
	var individual_category1 = new Array("--select--","Advertising Photography","Aerial Photography","Amateur Photographers","Architectural Photography","Astronomical Photography","Aerospace / Aviation","Baby Photography","Black and White Photography","Beauty","Cityscape Photography","Concert Photography","Celebrity","Corporate","Children","Digital Photography","Documentary Photography","Equine Photography","Event","Entertainment","Family Photography","Fine Art Photography","Fine Art Nude Photography","Freelance Photographers","Food Photography","Fashion","Glamour / Fashion Photography","Group Photography ","Health and fitness","Historic","Horticulture / Gardens","Infrared Photography","Industrial","Interior","Illustration","Kids","Landscape Photography","Lifestyle","Lingerie and Swimwear","Macro Photography","Modeling","Medical","Motion Picture Stills","Nature Photography","Nautical Photography","Night Photography","Nude and Erotic","News / Current Events","Pet Photography","Portrait Photography",
										"Photojournalism","Performing Arts / Theatre","Photomicrography","People Lifestyle","Politics","Product Photography","Public Relations","Press Photography","Seascape Photography","Sports Photography","Landscape Photography","Special Effects","Still- Life","Scientific","Travel Photography","Technology","Tourism","Table Top Photography","Underwater Photography","Wedding Photography");
	//viedeographer
	var individual_category2 = new Array("--select--","Wedding","Party functions","Family events","Corporate meeting/seminars","sports/ event","Promotional videos","Real estate","Legal/depositions");
	//photographer crew
	var individual_category3 = new Array("--select--","Photo Assistants","Stylist","Production co-ordinators","Location scouts","Art Director","Graphic Designer");
	
	function individual_category(selCtrl,selChildCtrl)
	{//photo_viedeo_crew
	    if(selCtrl.selectedIndex == 1)
		{//alert(selChildCtrl.value);
			removeAllOptions(selChildCtrl);			
			for(i=0;i < individual_category1.length;i++)
				addOption(selChildCtrl,individual_category1[i],individual_category1[i]);
		}
		if(selCtrl.selectedIndex == 2)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < individual_category2.length;i++)
				addOption(selChildCtrl,individual_category2[i],individual_category2[i]);
		}
		if(selCtrl.selectedIndex == 3)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < individual_category3.length;i++)
				addOption(selChildCtrl,individual_category3[i],individual_category3[i]);
		}
	}	
	
	function removeAllOptions(selectbox)
	{
		var i;		
		for(i=selectbox.options.length-1;i>=0;i--)
		{
			selectbox.remove(i);
		}
	}
	function addOption(selectbox,text,value)
	{
		var optn = document.createElement("OPTION");
		optn.text = text;
		optn.value = value;
		selectbox.options.add(optn);		
	}
	var photo_model = new Array("Adult Model","Amateur Model","Beauty Pageant","Bikini Model","Billboard Advertising","Catalog Model","Convention Trade Show","Extreme Sports","Fashion Model","Film/TV/Movies","Fitness Model","Foot Model","Glamour Model","Hair Model","Hand Model","Internet Modeling","Leg Model","Lingerie Model","Live Theatre","Magazine Ads","Magazine Covers","Magazine Editorials","Magazine Model","Miss Universe Type","Muscle Building","Music Videos","Nude Model","Petite Model","Plus Size Model","Print Model","Runway Model","Sexy Model","Swimsuit Model","Television Commercials","Water Sports","Winter Sports");	
	var maga_pub = new  Array("Magazines","E-zines","Photography Books","Journals","News letters");
	var event_blogs = new Array("Forums","Photography Articles","Camera Review","Photography Directories","Photography Techniques","Message board","Discussion board","Photography Exhibitors","Photography Exhibitions","Photo contest","Photo seminars");
	//-------------------------------------
	// for photo labs,Institutes,Organization,Publications,Photography events,Photography blogs "variable is photo_ins_org_pub_phoeve_blogs"
	advanced_search0 = new Array("--Subcategory--");
	//Photographers
	var advanced_search1 = new Array("--Subcategory--","Advertising Photography","Aerial Photography","Amateur Photographers","Architectural Photography","Astronomical Photography","Aerospace / Aviation","Baby Photography","Black and White Photography","Beauty","Cityscape Photography","Concert Photography","Celebrity","Corporate","Children","Digital Photography","Documentary Photography","Equine Photography","Event","Entertainment","Family Photography","Fine Art Photography","Fine Art Nude Photography","Freelance Photographers","Food Photography","Fashion","Glamour / Fashion Photography","Group Photography ","Health and fitness","Historic","Horticulture / Gardens","Infrared Photography","Industrial","Interior","Illustration","Kids","Landscape Photography","Lifestyle","Lingerie and Swimwear","Macro Photography","Modeling","Medical","Motion Picture Stills","Nature Photography","Nautical Photography","Night Photography","Nude and Erotic","News / Current Events","Pet Photography","Portrait Photography",
										"Photojournalism","Performing Arts / Theatre","Photomicrography","People Lifestyle","Politics","Product Photography","Public Relations","Press Photography","Seascape Photography","Sports Photography","Landscape Photography","Special Effects","Still- Life","Scientific","Travel Photography","Technology","Tourism","Table Top Photography","Underwater Photography","Wedding Photography");
	//viedeographer
	var advanced_search2 = new Array("--Subcategory--","Wedding","Party functions","Family events","Corporate meeting/seminars","sports/ event","Promotional videos","Real estate","Legal/depositions");
	//photographer crew
	var advanced_search3 = new Array("--Subcategory--","Photo Assistants","Stylist","Production co-ordinators","Location scouts","Art Director","Graphic Designer");
	//Photo studio/ Photo Labs
	var advanced_search4 = new Array("--Subcategory--","Photo Studio","Manual labs","Color labs","Digital labs","Celebrity","Commercial","Fashion","Beauty/ Glamour","Food/ Beverage","Portrait","Product/ Catalog","Still life/ Table top");
	//dealers
	var advanced_search5 = new Array("--Subcategory--","Bags, Cases & Straps","Manuals, Guides & Books","Binoculars & Telescopes","Photo Albums","Camcorder Accessories","Printers Scanners etc","Camcorders","Prfsnl Video Equipments","Digital Camera Accessories","Projection Equipment","Film Cameras","Digital Cameras","Film Processing & Darkroom","Film Camera Accessories","Flashes & Accessories");
	//Camera Repair & Services	
	var advanced_search6 = new Array("--Subcategory--","SLR Camera","Digital Camera Service","Flash Repair Service","Video Camera Service","Movie Camera Service");
	//Camera Rental/ Editing
	var advanced_search7 = new Array("--Subcategory--","Photo Editing","Video Editing","Photography Equipment Rental","Movie Camera Rental","Video Camera Rental","Tripod And Lights Rental");
	//Institutes
	var advanced_search8 = new Array("--Subcategory--","Photography schools/ colleges","Institutes","Online course","Workshops");
	//for Pictures
	var advanced_search9 = new Array("--Subcategory--","Agriculture","Architecture","Abstract","Animals/Wildlife","Art-Illustration","Babies and Children","Backgrounds and Textures","Borders and Frames","Background/Textures","Beauty/Fashion","Buildings/Landmarks","Business/Finance","Cities and Regions","Couples","Communication","Computers","Conceptual","Celebrities","Design Elements","Entertainment","Editorial","Education","Families","Fine Art","Fun","Future","Food and Drink","Government","Historic and Vintage","Holidays","Home","Humor","Healthcare/Medical","Internet","Illstrations/Clip-Art","Industrial","Interiors","Industry","Landscapes","Maps","Mature Adults","Military","Music","Nature","Objects","Occupations","People","Plants","Places","Parks/Outdoor","Religion","Science","Seasons","Space","Sports and Recreation","Stock Footage Video","Sexual","Signs/Symbols","Technology","Transportation","Travel","Urban","Vectors","Vintage","Youth");
	//Organization
	var advanced_search10 = new Array("--Subcategory--","Photo clubs","Associations","Videographer Association");
	//Magazine
	var advanced_search11 = new  Array("--Subcategory--","Magazines","E-zines","Photography Books","Journals","News letters");
	//Photography Agencies
	var advanced_search12 = new Array("--Subcategory--","Advertising Agencies","Modeling Agencies","Portfolio Builders","Art Agency","Photography Insurance","Photography Jobs");
	
	
	
	function advanced_search(selCtrl,selChildCtrl)
	{
		if(selCtrl.selectedIndex == 1)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < advanced_search1.length;i++)
				addOption(selChildCtrl,advanced_search1[i],advanced_search1[i]);
		}
		if(selCtrl.selectedIndex == 2)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < advanced_search2.length;i++)
				addOption(selChildCtrl,advanced_search2[i],advanced_search2[i]);
		}
		if(selCtrl.selectedIndex == 3)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < advanced_search3.length;i++)
				addOption(selChildCtrl,advanced_search3[i],advanced_search3[i]);
		}
		if(selCtrl.selectedIndex == 4)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < advanced_search4.length;i++)
				addOption(selChildCtrl,advanced_search4[i],advanced_search4[i]);
		}
		if(selCtrl.selectedIndex == 5)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < advanced_search5.length;i++)
				addOption(selChildCtrl,advanced_search5[i],advanced_search5[i]);
		}
		if(selCtrl.selectedIndex == 6)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < advanced_search6.length;i++)
				addOption(selChildCtrl,advanced_search6[i],advanced_search6[i]);
		}
		if(selCtrl.selectedIndex == 7)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < advanced_search7.length;i++)
				addOption(selChildCtrl,advanced_search7[i],advanced_search7[i]);
		}
		if(selCtrl.selectedIndex == 8)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < advanced_search8.length;i++)
				addOption(selChildCtrl,advanced_search8[i],advanced_search8[i]);
		}	
		if(selCtrl.selectedIndex == 9)
		{//alert(selChildCtrl.value);
			removeAllOptions(selChildCtrl);			
			for(i=0;i < advanced_search9.length;i++)
				addOption(selChildCtrl,advanced_search9[i],advanced_search9[i]);
		}
		if(selCtrl.selectedIndex == 10)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < advanced_search10.length;i++)
				addOption(selChildCtrl,advanced_search10[i],advanced_search10[i]);
		}
		if(selCtrl.selectedIndex == 11)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < advanced_search11.length;i++)
				addOption(selChildCtrl,advanced_search11[i],advanced_search11[i]);
		}
		if(selCtrl.selectedIndex == 12)
		{
			removeAllOptions(selChildCtrl);
			for(i=0;i < advanced_search12.length;i++)
				addOption(selChildCtrl,advanced_search12[i],advanced_search12[i]);
		}
	}	
	
	
	function wpg_dataentry_subcate(selCtrl,selChildCtrl)
	{
	    wpg_dataentry0 = new Array("--select--");	 
	    //Photographers
	    var wpg_dataentry1 = new Array("--select--","Advertising Photography","Aerial Photography","Amateur Photographers","Architectural Photography","Astronomical Photography","Aerospace / Aviation","Baby Photography","Black and White Photography","Beauty","Cityscape Photography","Concert Photography","Celebrity","Corporate","Children","Digital Photography","Documentary Photography","Equine Photography","Event","Entertainment","Family Photography","Fine Art Photography","Fine Art Nude Photography","Freelance Photographers","Food Photography","Fashion","Glamour / Fashion Photography","Group Photography ","Health and fitness","Historic","Horticulture / Gardens","Infrared Photography","Industrial","Interior","Illustration","Kids","Landscape Photography","Lifestyle","Lingerie and Swimwear","Macro Photography","Modeling","Medical","Motion Picture Stills","Nature Photography","Nautical Photography","Night Photography","Nude and Erotic","News / Current Events","Pet Photography","Portrait Photography",
										    "Photojournalism","Performing Arts / Theatre","Photomicrography","People Lifestyle","Politics","Product Photography","Public Relations","Press Photography","Seascape Photography","Sports Photography","Landscape Photography","Special Effects","Still- Life","Scientific","Travel Photography","Technology","Tourism","Table Top Photography","Underwater Photography","Wedding Photography");
	    //viedeographer
	    var wpg_dataentry2 = new Array("--select--","Wedding","Party functions","Family events","Corporate meeting/seminars","sports/ event","Promotional videos","Real estate","Legal/depositions");
	    //model
	    var wpg_dataentry3 = new Array("Adult Model","Amateur Model","Beauty Pageant","Bikini Model","Billboard Advertising","Catalog Model","Convention Trade Show","Extreme Sports","Fashion Model","Film/TV/Movies","Fitness Model","Foot Model","Glamour Model","Hair Model","Hand Model","Internet Modeling","Leg Model","Lingerie Model","Live Theatre","Magazine Ads","Magazine Covers","Magazine Editorials","Magazine Model","Miss Universe Type","Muscle Building","Music Videos","Nude Model","Petite Model","Plus Size Model","Print Model","Runway Model","Sexy Model","Swimsuit Model","Television Commercials","Water Sports","Winter Sports");	
	    //photographer crew
	    var wpg_dataentry4 = new Array("--select--","Photo Assistants","Stylist","Production co-ordinators","Location scouts","Art Director","Graphic Designer");
	    //Photo studio/ Photo Labs
	    var wpg_dataentry5 = new Array("--Subcategory--","Photo Studio","Manual labs","Color labs","Digital labs","Celebrity","Commercial","Fashion","Beauty/ Glamour","Food/ Beverage","Portrait","Product/ Catalog","Still life/ Table top");
	    //dealers
	    var wpg_dataentry6 = new Array("--Subcategory--","Bags, Cases & Straps","Manuals, Guides & Books","Binoculars & Telescopes","Photo Albums","Camcorder Accessories","Printers Scanners etc","Camcorders","Prfsnl Video Equipments","Digital Camera Accessories","Projection Equipment","Film Cameras","Digital Cameras","Film Processing & Darkroom","Film Camera Accessories","Flashes & Accessories");
	    //Camera Repair & Services	
	    var wpg_dataentry7 = new Array("--select--","SLR Camera","Digital Camera Service","Flash Repair Service","Video Camera Service","Movie Camera Service");
	    //Camera Rental/ Editing
	    var wpg_dataentry8 = new Array("--Subcategory--","Photo Editing","Video Editing","Photography Equipment Rental","Movie Camera Rental","Video Camera Rental","Tripod And Lights Rental");
	    //Institutes
	    var wpg_dataentry9 = new Array("--Subcategory--","Photography schools/ colleges","Institutes","Online course","Workshops");
	    //for Pictures
	    var wpg_dataentry10 = new Array("--select--","Agriculture","Architecture","Abstract","Animals/Wildlife","Art-Illustration","Babies and Children","Backgrounds and Textures","Borders and Frames","Background/Textures","Beauty/Fashion","Buildings/Landmarks","Business/Finance","Cities and Regions","Couples","Communication","Computers","Conceptual","Celebrities","Design Elements","Entertainment","Editorial","Education","Families","Fine Art","Fun","Future","Food and Drink","Government","Historic and Vintage","Holidays","Home","Humor","Healthcare/Medical","Internet","Illstrations/Clip-Art","Industrial","Interiors","Industry","Landscapes","Maps","Mature Adults","Military","Music","Nature","Objects","Occupations","People","Plants","Places","Parks/Outdoor","Religion","Science","Seasons","Space","Sports and Recreation","Stock Footage Video","Sexual","Signs/Symbols","Technology","Transportation","Travel","Urban","Vectors","Vintage","Youth");
	    //Organization
	    var wpg_dataentry11 = new Array("--Subcategory--","Photo clubs","Associations","Videographer Association");
	    //Magazine
	    var wpg_dataentry12 = new  Array("--Subcategory--","Magazines","E-zines","Photography Books","Journals","News letters");
	    //Softwares
	    var wpg_dataentry13 = new Array("--Subcategory--","Photo Editing","Video Editing");
	    //Photography Blogs
	    var wpg_dataentry14 = new Array("--select--","Forums","Photography Articles","Camera Review","Photography Directories","Photography Techniques","Message board","Discussion board");
        //Photography Events
	    var wpg_dataentry15 = new Array("--select--","Photography Exhibitors","Photography Exhibitions","Photo contest","Photo seminars");
        //Photography Agencies
	    var wpg_dataentry16 = new Array("--Subcategory--","Advertising Agencies","Modeling Agencies","Portfolio Builders","Art Agency","Photography Insurance","Photography Jobs");
	
	    var l = selCtrl.selectedIndex;	    
		removeAllOptions(selChildCtrl);
		var arr;
		switch(l)
		{
		    case 1:
		        arr = wpg_dataentry1;
		        break;
		    case 2:
		        arr = wpg_dataentry2;
		        break;
		    case 3:
		        arr = wpg_dataentry3;
		        break;
		    case 4:
		        arr = wpg_dataentry4;
		        break;
		    case 5:
		        arr = wpg_dataentry5;
		        break;
		    case 6:
		        arr = wpg_dataentry6;
		        break;
		    case 7:
		        arr = wpg_dataentry7;
		        break;
		    case 8:
		        arr = wpg_dataentry8;
		        break;
		    case 9:
		        arr = wpg_dataentry9;
		        break;
		    case 10:
		        arr = wpg_dataentry10;
		        break;
		    case 11:
		        arr = wpg_dataentry11;
		        break;
		    case 12:
		        arr = wpg_dataentry12;
		        break;
		    case 13:
		        arr = wpg_dataentry13;
		        break;
		    case 14:
		        arr = wpg_dataentry14;
		        break;
		    case 15:
		        arr = wpg_dataentry15;
		        break;
		   case 16:
		        arr = wpg_dataentry16;
		        break;
		}
		
		for(i=0;i < arr.length;i++)
			addOption(selChildCtrl,arr[i],arr[i]);
    }