			var selectboxID = 0
			var swidth = 600
			var sheight = 520			
		
			 
			
			function redirectToInvestigate(ID,type,userID, from) 
			 { 
				if(ID!="") 
				{
				location.href="investigation.aspx?id="+ID+"&pagetype="+type+"&from="+from+"&flagged=0&sid="+userID 
				}
			} 
			function SelectBoxSelection(name,Itemvalue,FSXvalue, type) { 
			    var CareerExpander = document.getElementById("aspnetForm");			   
				switch(name){ 
				case 'ctl00_C1_Careers1_dgColorTiles': 				    
					CareerExpander.ctl00_C1_Careers1_HI_itemID.value = Itemvalue
					CareerExpander.ctl00_C1_Careers1_HI_FSExploreID.value = 0
					CareerExpander.ctl00_C1_Careers1_HI_itemType.value = ""
					 break;
				case 'InvestigationBox':
					CareerExpander.ctl00_C1_Careers1_HI_itemID.value = Itemvalue
					CareerExpander.ctl00_C1_Careers1_HI_FSExploreID.value = 0
					CareerExpander.ctl00_C1_Careers1_HI_itemType.value = type
					break; 
				case 'PersonalList': 			
				    if(CareerExpander.ctl00_C1_Careers1_HI_itemID) {
					    CareerExpander.ctl00_C1_Careers1_HI_itemID.value = Itemvalue
					    CareerExpander.ctl00_C1_Careers1_HI_FSExploreID.value = FSXvalue	
					    CareerExpander.ctl00_C1_Careers1_HI_itemType.value = type 
					       } 
					break; 
				} 
			}
			
			function popUpError(sMessage) 
			{
				alert(sMessage)
			} 
			
			function changecolor(Obj)
			{
				alert(document.getElementsByName("colortilelinks").length)
				for(i=0;i<document.getElementsByName("colortilelinks").length;i++)
				{document.getElementsByName("colortilelinks")(i).className = "colortiles"}

				Obj.className="colortilesactive"
			}
	
			function explainColours()
			{
				window.open("../exploration/colours.aspx","hplexplainColours","toolbar=no,location=no,scrollbars=no,resizable=no,width=350,height=350")
			}
			function finetune(pagetype, sID)
			{
				window.open("../exploration/finetune.aspx?pagetype="+pagetype+"&sid="+sID,"FineTuneSuggestions","toolbar=no,location=no,scrollbars=yes,resizable=yes,width=560,height=400")
			}
			

			//this show the details popup in a new window (called from the notes popup or powersearch)
			 function popupShowDetails(ID,type, locations)
			 {
			 if(ID!="")
			 var filename = ""
				 { if(type == "job" || type == null) {filename = "../popups/jobdetails.aspx?"}
					if(type =="place") {filename = "../popups/placedetails.aspx?"}  
					if (type =="course") {filename = "../popups/showdetails.aspx?controltype=SubjectInfo&pagetype=course&";swidth=400;sheight=300} 
					if (type =="ModApp") {filename = "../popups/showdetails.aspx?controltype=ModApp&pagetype=job&locations="+locations+"&";swidth=500;sheight=400} 
					if (type =="Info") {filename = "../popups/showdetails.aspx?controltype=Info&pagetype=info&";swidth=500;sheight=400} 
					if (type =="FSSpecInfo") {filename = "../popups/showdetails.aspx?controltype=FSSpecInfo&pagetype=info&";swidth=500;sheight=400} 
					if (type =="teachersCourse") {filename = "/pages/popups/showdetails.aspx?controltype=CourseSchoolInfo&pagetype=course&";swidth=400;sheight=300} 
				
					window.open(filename+"ID="+ID,"showDetails","width="+swidth+",height="+sheight+",resize=no,scrollbars=yes") 
				 swidth = 600;sheight=520
				 }
			 } 
			 