//@Left equivalentfunction strLeft(sourceStr, keyStr){return (sourceStr.indexOf(keyStr) == -1 | keyStr=='') ? '' : sourceStr.split(keyStr)[0];}//@Right equivalentfunction strRight(sourceStr, keyStr){idx = sourceStr.indexOf(keyStr);return (idx == -1 | keyStr=='') ? '' : sourceStr.substr(idx+ keyStr.length);}//@RightBack equivalentfunction rightBack(sourceStr, keyStr){arr = sourceStr.split(keyStr);return (sourceStr.indexOf(keyStr) == -1 | keyStr=='') ? '' : arr.pop()}//@LeftBack equivalentfunction leftBack(sourceStr, keyStr){arr = sourceStr.split(keyStr)arr.pop();return (keyStr==null | keyStr=='') ? '' : arr.join(keyStr)}//@Middle equivalentfunction middle(sourceStr, keyStrLeft, keyStrRight){ return strLeft(strRight(sourceStr,keyStrLeft), keyStrRight);} function EditContents( fieldname, cssedittype){    unidField = new Object( eval ('window.document.forms[0].UNID' ) );    unid = unidField.value;          //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening editor..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'EditContents?OpenForm&FieldName='+fieldname+'&UNID='+unid+'&CssEditType='+cssedittype,'EditField','status=yes,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=650,height=600')}function EditContentsConfig( fieldname, cssedittype){    unidField = new Object( eval ('window.document.forms[0].UNID' ) );    unid = unidField.value;         configunidField = new Object( eval ('window.document.forms[0].ConfigUNID' ) );    configunid = configunidField.value;      if (configunid!='')   {       unid=configunid   }      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening editor..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'EditContents?OpenForm&FieldName='+fieldname+'&UNID='+unid+'&CssEditType='+cssedittype,'EditField','status=yes,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=650,height=600')}function selectSectors( fieldname, divname){    unidField = new Object( eval ('window.document.forms[0].UNID' ) );    unid = unidField.value;      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Select Sectors..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/SelectSectors?OpenForm&FieldName='+fieldname+'&DivName='+divname+'&UNID='+unid,'SelectSectors','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=650,height=600')}function addImage(){    unidField = new Object( eval ('window.document.forms[0].UNID' ) );    unid = unidField.value;    //INField = new Object( eval ('window.document.forms[0].CurrentImage' ) );       //CCField = new Object( eval ('window.document.forms[0].Currentcategory' ) );         ShowCategory = document.forms[0].Showcategory.value;             CurrentCategory = document.forms[0].Currentcategory.value;    if (ShowCategory == '')     {        ShowCategory = CurrentCategory;    }   //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.opener.status = "Opening Add Image..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'images/AddImage?OpenForm&DefCategory='+ShowCategory+'&UNID='+unid,'AddImage','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=650,height=600')}function changeImage(){    unidField = new Object( eval ('window.document.forms[0].UNID' ) );    unid = unidField.value;    //INField = new Object( eval ('window.document.forms[0].CurrentImage' ) );    ImageName = document.forms[0].CurrentImage.value;       //CCField = new Object( eval ('window.document.forms[0].Currentcategory' ) );    CurrentCategory = document.forms[0].Currentcategory.value;     ShowCategory = document.forms[0].Showcategory.value;         if (ShowCategory == '')     {        ShowCategory = CurrentCategory;    }   //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.opener.status = "Opening Change Image..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'images/ChangeImage?OpenForm&DefCategory='+ShowCategory+'&CurrentImage='+ImageName+'&UNID='+unid,'ChangeImage','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=650,height=600')}function deleteImage(CurrentCategory, ImageName){    unidField = new Object( eval ('window.document.forms[0].UNID' ) );    unid = unidField.value;          //CCField = new Object( eval ('window.document.forms[0].Currentcategory' ) );    CurrentCategory = document.forms[0].Currentcategory.value;     ShowCategory = document.forms[0].Showcategory.value;         if (ShowCategory == '')     {        ShowCategory = CurrentCategory;    }    ImageName = document.forms[0].ShowImage.src    ImageName = rightBack(ImageName,'/');    ImageName = ShowCategory+'/'+ImageName;       //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Delete Image..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'images/DeleteImage?OpenForm&DefCategory='+ShowCategory+'&CurrentImage='+ImageName+'&UNID='+unid,'AddImage','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=650,height=600')}function selectServices( fieldname, divname){    unidField = new Object( eval ('window.document.forms[0].UNID' ) );    unid = unidField.value;      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Select Services..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/SelectServices?OpenForm&FieldName='+fieldname+'&DivName='+divname+'&UNID='+unid,'SelectServices','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=650,height=600')}function selectOffices( fieldname, divname){    unidField = new Object( eval ('window.document.forms[0].UNID' ) );    unid = unidField.value;      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Select Offices..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/SelectOffices?OpenForm&FieldName='+fieldname+'&DivName='+divname+'&UNID='+unid,'SelectOffices','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=650,height=600')}function manageRelatedInfo( fieldname){    unidField = new Object( eval ('window.document.forms[0].UNID' ) );    unid = unidField.value;      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Manage Related Info..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageWidgets?OpenForm&FieldName='+fieldname+'&UNID='+unid,'manageWidgets','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=650,height=600')}function newNewsStory(form ){      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Create new  News item ..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageCatagorisationNews?OpenForm&Form='+form,'newNewsItem','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=850,height=850')}function newExperience(){      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening New Experience ..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageExperience?OpenForm&Form=Experience','manageEvent','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=850,height=850')}function newEvent(){      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening new Event ..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageEvent?OpenForm&Form=Event','manageEvent','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=850,height=850')}function newAward(){      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening new Award ..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageAward?OpenForm&Form=Award','manageAwards','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=850,height=850')}function newVacancy(){      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening new Vacancy ..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageVacancies?OpenForm&Form=Vacancy','manageVacancy','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=850,height=850')}function manageVacancy( unid){      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Edit Vacancy ..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageVacancies?OpenForm&UNID='+unid,'manageVacancy','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=850,height=850')}function manageExperience( unid){      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Edit Experience ..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageExperience?OpenForm&UNID='+unid,'manageExperience','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=850,height=850')}function manageAward( unid){      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Edit Award ..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageAward?OpenForm&UNID='+unid,'manageAwards','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=850,height=850')}function manageEvent( unid){      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Edit Event ..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageEvent?OpenForm&UNID='+unid,'manageEvent','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=850,height=850')}function manageCatagorisationNews( fieldname){    unidField = new Object( eval ('window.document.forms[0].UNID' ) );    unid = unidField.value;      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Edit News item Manage Related Info..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageCatagorisationNews?OpenForm&FieldName='+fieldname+'&UNID='+unid,'manageCatagorisationNews2','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=850,height=850')}function manageCatagorisation( fieldname){    unidField = new Object( eval ('window.document.forms[0].UNID' ) );    unid = unidField.value;      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Edit Insight item Manage Related Info..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageCatagorisation?OpenForm&FieldName='+fieldname+'&UNID='+unid,'manageCatagorisation2','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=850,height=850')}function newInsightItem( newType){      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Create new Insight Item..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageCatagorisation?OpenForm&NewType='+newType,'newinsight2','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=850,height=850')}function manageImage( fieldname, defCategory , currentImage){    unidField = new Object( eval ('window.document.forms[0].UNID' ) );    unid = unidField.value;         configunidField = new Object( eval ('window.document.forms[0].ConfigUNID' ) );    configunid = configunidField.value;      if (configunid!='')   {       unid=configunid   }   //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');if (nsfPos==-1){   db="/"} else{ db=path.substring(0,nsfPos+5);}window.status = "Opening Manage Image..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageImage?OpenForm&FieldName='+fieldname+'&UNID='+unid+'&DefCategory='+defCategory+'&CurrentImage='+currentImage,'manageImage','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=650,height=600')}function manageContacts( fieldname, cssedittype){    unidField = new Object( eval ('window.document.forms[0].UNID' ) );    unid = unidField.value;      //Who knows what the address might be today. Better be safe then sorry. path=location.href.toLowerCase();nsfPos=path.indexOf('.nsf');db=path.substring(0,nsfPos+5);window.status = "Opening Manage Contacts..."// Trailing after OpenForm are the parameters that will be picked up by Query_string and later parsed.// You must set the second parameter of the window.open to the name of the field you want the value returned to.window.open(db+'widgets/ManageContacts?OpenForm&FieldName='+fieldname+'&UNID='+unid,'EditField','status=no,resizable=yes,scrollbars=yes,screenX=100,screenY=100,width=650,height=600')}function storeContentFromEditLiveOld() {var applet = document.getElementById('ELJApplet_elj');applet.uploadImages();var bodyContent = "" + applet.getBody();document.forms[0].content.value = bodyContent;window.opener.Contents.innerHTML=bodyContent;}function storeContentFromEditLive() {var applet = document.getElementById('ELJApplet_elj');applet.uploadImages();var bodyContent = "" + applet.getBody();document.forms[0].content.value = bodyContent;fieldname = window.document.forms[0].FieldName.value;//var contentfield = window.opener.document.getElementByID(fieldname);    contentfield = new Object( eval ('opener.window.'+fieldname ) );    contentfield.innerHTML=bodyContent;}function updateManageContents() {window.opener.location.reload();}function updateManageImage() {   var fieldname = document.forms[0].FieldName.value;   var Obj = window.opener.document.getElementById(fieldname);   var FromObj = document.getElementById('ShowImage');   if (rightBack(FromObj.src,'/')!='null.gif')   {   Obj.src = FromObj.src;    }   return true;//window.opener.location.reload();}function onMoveUp(extrastuff, startNum){    var temp=document.getElementsByTagName('*');    var ThisUnid = temp.UNID.value;    temp.oIFrame.src = extrastuff+'../MoveUpContact?OpenAgent&UNID='+ThisUnid+'&StartNum='+startNum;}function onMoveDown(extrastuff, startNum){    var temp=document.getElementsByTagName('*');    var ThisUnid = temp.UNID.value;    temp.oIFrame.src = extrastuff+'../MoveDownContact?OpenAgent&UNID='+ThisUnid+'&StartNum='+startNum;}function onDeleteContact(extrastuff, startNum){    var temp=document.getElementsByTagName('*');    var ThisUnid = temp.UNID.value;    temp.oIFrame.src = extrastuff+'../DeleteContact?OpenAgent&UNID='+ThisUnid+'&StartNum='+startNum;}function onEditContact(extrastuff, startNum){      var sReturnName = displayPickListOffice( '' ,'../') 	if (!sReturnName) {		// If sReturnName equals null, then the dialog was closed by clicking the window close		//  button rather than by clicking on a persons name. You should always check for this		//  and handle it (usually by just returning out of the function		return;	}	// Otherwise, we got a value back from the dialog box. In this example, we will	//  use that value to populate a field on our form	var newname = strLeft(sReturnName,'~');     var wfwrest = strRight(sReturnName,'~');     var newoffice = strLeft(wfwrest,'~');     var newempcode = strRight(wfwrest,'~');                var temp=document.getElementsByTagName('*');    var ThisUnid = temp.UNID.value;    temp.oIFrame.src = extrastuff+'../ReplaceContact?OpenAgent&UNID='+ThisUnid+'&StartNum='+startNum+'&Name='+newname+'&Office='+newoffice+'&EmpCode='+newempcode;}function onAddContact(extrastuff, startNum){        var sReturnName = displayPickListOffice( '' ,'../') 	if (!sReturnName) {		// If sReturnName equals null, then the dialog was closed by clicking the window close		//  button rather than by clicking on a persons name. You should always check for this		//  and handle it (usually by just returning out of the function		return;	}	// Otherwise, we got a value back from the dialog box. In this example, we will	//  use that value to populate a field on our form	var newname = strLeft(sReturnName,'~');     var wfwrest = strRight(sReturnName,'~');     var newoffice = strLeft(wfwrest,'~');     var newempcode = strRight(wfwrest,'~');        var temp=document.getElementsByTagName('*');    var ThisUnid = temp.UNID.value;    temp.oIFrame.src = extrastuff+'../AddContact?OpenAgent&UNID='+ThisUnid+'&StartNum='+startNum+'&Name='+newname+'&Office='+newoffice+'&EmpCode='+newempcode;}function getallselectedtext(objectname){   var myselect=document.getElementById(objectname);   var alltext="";   for (var i=0; i<myselect.options.length; i++)  {      if (myselect.options[i].selected==true)     {         alltext=alltext+'<li><a href="#">'         alltext = alltext+myselect.options[i].text+'</a></li>';     }  }  if (alltext=='')  {     alltext='<li><a href="#">Pick your  '+objectname+'</a></li>'  }  return alltext; }function getoneselectedtext(objectname){   var myselect=document.getElementById(objectname);    if (myselect.type=='hidden')    {            var alltext="";      myselecttext =myselect.value;   }else   {      var alltext="";      var myselectindex = myselect.selectedIndex;      var myselecttext = myselect[myselectindex].value;   }  switch (myselecttext)   {       case 0:              break;       case 'Serv':                alltext = makeServicesText('Services');              break;       case 'Sect':                alltext = makeSectorsText('Sectors');              break;              case 'N':               alltext = makeNewsText();              break;       case 'E':              alltext = makeEventsText();              break;       case 'I':               alltext = makeInsightText();              break;       case 'X':              alltext = makeExperienceText();              break;               case 'A':              alltext = makeAwardsText();              break;              case 'O':              alltext = makeOfficesText('Offices');              break;                            default:   }  return alltext;}function makeNewsText( ){  var p = ''      p = p+ '<h3>News</h3>';  p = p+'<ul><li><a href="#">';   p  = p+ 'When the website has some news this will be shown';   	p = p+ '</a></li></ul>';   	   	p = p +'<a class="link_yellow" href="#">View more</a>';   return p;}function makeEventsText( ){  var p = ''  p = p+'<div style="background:transparent url(../images/icons/event.gif) no-repeat scroll right top; float:left; margin-top:5px; min-height:25px;'  p = p+ 'padding-right:20px;"'      p = p+ '<h3 class="yellow">Events</h3>';  p = p+'<ul><li><a href="#">';   p  = p+ 'When the website has some events  - you will be able to choose from them';   	p = p+ '</a></li></ul>';   	   	p = p +'<a class="link_yellow" href="#">View more</a></div>';   return p;}function makeInsightText( ){  var p = ''    p = p+'<div style="background:transparent url(../images/icons/newsletters.gif) no-repeat scroll right top; float:left; margin-top:5px; min-height:25px;'  p = p+ 'padding-right:20px;"'      p = p+ '<h3 class="yellow">Insight</h3>';  p = p+'<ul><li><a href="#">';   p  = p+ 'When the website has some publications relevant to this area they will be shown';   	p = p+ '</a><li></ul>';   	   	p = p +'<a class="link_yellow" href="#">View more</a></div>';   return p;}function makeExperienceText( ){  var p = ''      p = p+ '<h3>Experience</h3>';  p = p+'<ul><li><a href="#">';   p  = p+ 'When this website has some deals(experience) you will be able to pick some to show on this page';   	p = p+ '</a></li></ul>';   	   	p = p +'<a class="link_yellow" href="#">View more</a>';   return p;}function makeAwardsText( ){  var p = ''    p = p+ '<h3>Awards</h3>';    p = p+'<img src="../images/logos/topranked_uk_logo.jpg" class="float_left margin_t5" width="58" height="58" alt="" />';	p = p+'<img src="../images/logos/topranked_asia_logo.jpg" class="float_left margin_t5 margin_l5" width="58" height="58" alt="" />';	   	p = p +'<div class="publications_content publications_first"><a class="link_yellow" href="#">View more</a></div>';   return p;}function makeServicesText( fieldname){  var p = ''    p = p+ '<h3>Services</h3>';      p = p+'<ul>';            var myString = document.forms[0].Services.value;      var mySplitResult = myString.split(";");      for(i = 0; i < mySplitResult.length; i++){	        p = p +'<li><a href="#">' + mySplitResult[i] +'</a></li>';       }         	p = p+ '</ul>';   return p;}function makeOfficesText( fieldname){  var p = ''    p = p+ '<h3>Offices</h3>';      p = p+'<ul>';            var myString = document.forms[0].Offices.value;      var mySplitResult = myString.split(";");      for(i = 0; i < mySplitResult.length; i++){	        p = p +'<li><a href="#">' + mySplitResult[i] +'</a></li>';       }         	p = p+ '</ul>';   return p;}function makeSectorsText( fieldname){  var p = ''    p = p+ '<h3>Sectors</h3>';      p = p+'<ul>';            var myString = document.forms[0].Sectors.value;      var mySplitResult = myString.split(";");      for(i = 0; i < mySplitResult.length; i++){	        p = p +'<li><a href="#">' + mySplitResult[i] +'</a></li>';       }         	p = p+ '</ul>';   return p;}  function doChangeInCategory(fieldname, divname, first){  var selectinfotext = getoneselectedtext(fieldname);  var divObj = document.getElementById(divname);    var p = ''; if (selectinfotext!='') {     if ( first=='Yes' )  {     p = '<div class="publications_content publications_first">';  } else  {     p = '<div class="publications_content">';            }          p  = p+ selectinfotext;	p = p+ '</div>';  }    divObj.innerHTML=p;}function doChangeInselect(selectname, divname, first){  var selectinfotext = getallselectedtext(selectname);  var divObj = document.getElementById(divname);        var p = '<div class="publications_content publications_first">';  p = p+ '<h3>Related '+selectname+'</h3>';  p = p+'<ul>';   p  = p+ selectinfotext;	p = p+ '</ul>';	p = p+ '</div>';    divObj.innerHTML=p;}function onClickPickImagesSelect(){var found_itfor (var i=0; i<document.forms[0].PickImages.length; i++)  { if (document.forms[0].PickImages[i].checked)  {found_it = document.forms[0].PickImages[i].value} }    var ele=document.getElementById('ShowImage');  var myselecttext = found_it;  var category = document.forms[0].Showcategory.value;   var newsrc='../../wfwimages.nsf/'+category+'/'+myselecttext;   ele.src = newsrc;}function onChangeImageCategory(){   var myselect=document.getElementById("Category");   var myselectindex = myselect.selectedIndex;   var myselecttext = myselect[myselectindex].text;   MakeNewcategory(myselecttext);}function MakeNewcategory(newCategory){   //alert('Viewname='+viewname+' direction='+direction);   var parms = window.location.search;   if(strLeft(parms,'&Category=')!='')   {      parms = strLeft(parms,'&Category=');   }   parms = parms+'&Category='+newCategory;   window.location.search=parms;  //'window.location.reload();}function extract(fieldname,what) {  alert('extract');    Field = new Object( eval ('window.document.forms[0].'+fieldname ) );    if (what.indexOf('/') > -1)        answer = what.substring(what.lastIndexOf('/')+1,what.length);    else        answer = what.substring(what.lastIndexOf('\\')+1,what.length);alert(answer);    if (Field.value == "" )    {    Field.value =answer;    } else    {    Field.value = answer;         }}