PG_STATUS_COOKIE_NAME="HJPS";MAX_PS_LENGTH=1000;onLoadFnArr=new Array();onUnloadFnArr=new Array();storeFnArr=new Array();restoreFnArr=new Array();registerFunction(restorePageStatus,onLoadFnArr);registerFunction(storePageStatus,onUnloadFnArr);var tempTimeVar=new Date();__lh_gmt_offset=(-1)*(tempTimeVar.getTimezoneOffset())*60;day_array=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");month_array=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");linkObj="";contextualWindowObj="";candidateRate_newStars="";x="";candidateRate_starOnImageURL="/common/images/star-on_0_1_0_60_1.gif";candidateRate_starOffImageURL="/common/images/star-off_0_1_0_60_1.gif";plusImage="/common/images/plus_0_1_0_60_1.gif";minusImage="/common/images/minus_0_1_0_60_1.gif";extendedView="0";printDivObject=null;onLoadfuncObject=null;warningDaysLimit=10;numOfRatingRequestsPending=0;N_Astring="N/A";displayRatingStr=0;isSignOutPage=false;offset_map=new Array();respDetails="";offset_map["NST"]=-3.5;offset_map["HNT"]=-3.5;offset_map["NDT"]=-2.5;offset_map["HAT"]=-2.5;offset_map["AST"]=-4;offset_map["HNA"]=-4;offset_map["ADT"]=-8;offset_map["HAA"]=-8;offset_map["EST"]=-5;offset_map["HNE"]=-5;offset_map["EDT"]=-5;offset_map["HAE"]=-5;offset_map["CST"]=-6;offset_map["HNC"]=-6;offset_map["CDT"]=-5;offset_map["HAC"]=-5;offset_map["MST"]=-7;offset_map["HNR"]=-7;offset_map["MDT"]=-6;offset_map["HAR"]=-6;offset_map["PST"]=-8;offset_map["HNP"]=-8;offset_map["PDT"]=-7;offset_map["HAP"]=-7;offset_map["AKST"]=-9;offset_map["HNY"]=-9;offset_map["AKDT"]=-8;offset_map["HAY"]=-8;offset_map["HAST"]=-10;offset_map["HADT"]=-9;function get_expiry_date(string)
{'parent:nomunge';returnString=DaysToExpiry(parseInt(string));return returnString;}
function get_display_date(gmttime,formatString)
{'parent:nomunge';try
{var tempTimeStamp=adjust_for_local_time(gmttime-__lh_gmt_offset,__gmtoffset)*1000;var output=new Date(tempTimeStamp);if(formatString==null)
{var y=output.getFullYear();y=y.toString();y=y.substring(2,4);var m=(output.getMonth()+1);var d=output.getDay();var dt=output.getDate();var display_date=m+"/"+dt+'/'+y;return display_date;}
else
{return output.format(formatString);}}catch(e)
{return e;}}
function cw_set_widget_value(name,timestamp,show_time,show_empty)
{'parent:nomunge';if(timestamp==""&&show_empty)
{return;}
var ts=0;if(timestamp=="")
{ts=0;}
else
{ts=parseInt(timestamp);}
if(ts!=0)
{var tempTimeStamp=adjust_for_local_time(ts-__lh_gmt_offset,__gmtoffset)*1000;cw_date=new Date(tempTimeStamp);}
else
{cw_date=new Date();}
var yearFieldStr='document.getElementById(\''+name+'_cw_years'+'\')';var monthFieldStr='document.getElementById(\''+name+'_cw_months'+'\')';var dayFieldStr='document.getElementById(\''+name+'_cw_days'+'\')';var hourFieldStr='document.getElementById(\''+name+'_cw_hours'+'\')';var minFieldStr='document.getElementById(\''+name+'_cw_mins'+'\')';eval(monthFieldStr).value=cw_date.getMonth();eval(dayFieldStr).value=cw_date.getDate();eval(yearFieldStr).value=cw_date.getFullYear();if(show_time==true)
{if(cw_date.getHours()>12)
{eval(hourFieldStr).value=cw_date.getHours()%12;}
else
{eval(hourFieldStr).value=cw_date.getHours();}
if(cw_date.getMinutes()>=0&&cw_date.getMinutes()<15)
{eval(minFieldStr).value="15";}
else if(cw_date.getMinutes()>=15&&cw_date.getMinutes()<30)
{eval(minFieldStr).value="30";}
else if(cw_date.getMinutes()>=30&&cw_date.getMinutes()<45)
{eval(minFieldStr).value="45";}
else if(cw_date.getMinutes()>=45&&cw_date.getMinutes()<60)
{eval(minFieldStr).value="00";if(cw_date.getHours()+1>12)
{eval(hourFieldStr).value=(cw_date.getHours()+1)%12;}
else
{eval(hourFieldStr).value=cw_date.getHours()+1;}}
if(cw_date.getHours()>=12)
{var ampmStr='document.getElementById(\''+name+'_cw_ampm[1]'+'\')';eval(ampmStr).checked=1;}
else
{var ampmStr='document.getElementById(\''+name+'_cw_ampm[0]'+'\')';eval(ampmStr).checked=1;}}}
function adjust_for_gmt_time(local,offsetphrase)
{'parent:nomunge';if(typeof local=="string")
{local=parseInt(local);}
if(offsetphrase=="")
{return local;}
offsetphrase=offsetphrase.toUpperCase();var off_secs=0;if(typeof offset_map[offsetphrase]=="undefined")
{var gmt_offset=0;if(offsetphrase.indexOf("GMT")==0)
{gmt_offset=offsetphrase.substr("GMT ".length);}
else if(offsetphrase.indexOf("UTC")==0)
{gmt_offset=offsetphrase.substr("UTC ".length);}
var multiplier=1;var sign=gmt_offset.substr(0,1);if(sign=="+")
{multiplier=-1;}
var hrs=gmt_offset.substr(1,2);hrs=parseInt(hrs);var mins=gmt_offset.substr(3,2);mins=parseInt(mins);off_secs=multiplier*((hrs*3600)+(mins*60));}
else
{off_secs=-1*offset_map[offsetphrase]*3600;}
return local+off_secs;}
function adjust_for_local_time(gmt,offsetphrase)
{'parent:nomunge';if(typeof gmt=="string")
{gmt=parseInt(gmt);}
if(offsetphrase=="")
{return gmt;}
offsetphrase=offsetphrase.toUpperCase();var off_secs=0;if(typeof offset_map[offsetphrase]=="undefined")
{var gmt_offset=0;if(offsetphrase.indexOf("GMT")==0)
{gmt_offset=offsetphrase.substr("GMT ".length);}
else if(offsetphrase.indexOf("UTC")==0)
{gmt_offset=offsetphrase.substr("UTC ".length);}
var multiplier=1;var sign=gmt_offset.substr(0,1);if(sign=="-")
{multiplier=-1;}
var hrs=gmt_offset.substr(1,2);hrs=parseInt(hrs);var mins=gmt_offset.substr(3,2);mins=parseInt(mins);off_secs=multiplier*((hrs*3600)+(mins*60));}
else
{off_secs=offset_map[offsetphrase]*3600;}
return gmt+off_secs;}
function getLobDataFromUQLR(doc)
{'parent:nomunge';var value="";try
{var record;var documentElement=doc.documentElement;var documentElementChilds=documentElement.childNodes;for(var i=0;i<documentElementChilds.length;i++)
{if(documentElementChilds[i].nodeName=="r")
{record=documentElementChilds[i];break;}}
var recordChilds=record.childNodes;outerLoop:for(i=0;i<recordChilds.length;i++)
{if(recordChilds[i].nodeName=="f")
{var attrs=recordChilds[i].attributes;for(var k=0;k<attrs.length;k++)
{if(attrs[k].name=="n"&&attrs[k].value=="LobData")
{var firstChildVar=recordChilds[i].firstChild;value=firstChildVar.nodeValue;break outerLoop;}}}}}catch(e)
{}
return value;}
function hide(id){'parent:nomunge';var elementVar=document.getElementById(id);elementVar.className='hide';}
function show(id){'parent:nomunge';var elementVar=document.getElementById(id);elementVar.className='show';}
function TrimString(sInString)
{'parent:nomunge';if(typeof sInString=="undefined")
{return"";}
sInString=sInString.replace(/^\s+/g,"");return sInString.replace(/\s+$/g,"");}
function createStars(candidateRate_candidateID,candidateRate_starRating,initial,list_object_name,stars_colName){'parent:nomunge';try{if(candidateRate_starRating==""){candidateRate_starRating=0;};candidateRate_newStars="";for(rate_x=1;rate_x<=5;rate_x++){if(typeof list_object_name!="undefined")
{candidateRate_newStars=candidateRate_newStars+"<a href=\"javascript://\" onmouseup=\"clickStars('"+candidateRate_candidateID+"',"+rate_x+", '"+list_object_name+"', '"+stars_colName+"')\">";}
else
{candidateRate_newStars=candidateRate_newStars+"<a href=\"javascript://\" onmouseup=\"clickStars('"+candidateRate_candidateID+"',"+rate_x+")\">";}
if(rate_x<=candidateRate_starRating){candidateRate_newStars=candidateRate_newStars+"<img src=\""+candidateRate_starOnImageURL+"\" name=\""+candidateRate_candidateID+"_rating_star_"+rate_x+"\"id=\""+candidateRate_candidateID+"_rating_star_"+rate_x+"\" onmouseover=\"rolloverStars('"+candidateRate_candidateID+"',"+rate_x+")\" onmouseout=\"rolloverStars('"+candidateRate_candidateID+"',"+candidateRate_starRating+")\" />";}else{candidateRate_newStars=candidateRate_newStars+"<img src=\""+candidateRate_starOffImageURL+"\" name=\""+candidateRate_candidateID+"_rating_star_"+rate_x+"\" id=\""+candidateRate_candidateID+"_rating_star_"+rate_x+"\" onmouseover=\"rolloverStars('"+candidateRate_candidateID+"',"+rate_x+")\" onmouseout=\"rolloverStars('"+candidateRate_candidateID+"',"+candidateRate_starRating+")\" />";}
candidateRate_newStars=candidateRate_newStars+"</a>";}
if(initial=="1"){return candidateRate_newStars;}else{var obj=document.getElementsByName(candidateRate_candidateID+"_rating_container");for(i=0;i<obj.length;i++)
{obj[i].innerHTML=candidateRate_newStars;}}}catch(e)
{}}
function rolloverStars(id,candidateRate_starRating){'parent:nomunge';for(rate_x=1;rate_x<=5;rate_x++){if(rate_x<=candidateRate_starRating){var obj=document.getElementsByName(id+"_rating_star_"+rate_x);for(i=0;i<obj.length;i++)
{obj[i].src=candidateRate_starOnImageURL;}}else{var obj=document.getElementsByName(id+"_rating_star_"+rate_x);for(i=0;i<obj.length;i++)
{obj[i].src=candidateRate_starOffImageURL;}}}}
function clickStars(candidateRate_candidateID,candidateRate_starRating,lst_name,stars_colName){'parent:nomunge';var oldRate;var updateList=true;if(lst_name){var lst_object=eval("lst_"+lst_name);if(typeof lst_object!="undefined")
{var obj=lst_object.getPrimaryColumnValues('ID',candidateRate_candidateID);if(lst_object.recList.indexName==stars_colName)
{FORCE_SORT=true;}
for(i=0;i<obj.length;i++)
{oldRate=lst_object.recList;oldRate=oldRate.records[obj[i]];oldRate=oldRate.getColumnValue(stars_colName);var lst_object_recordsList=lst_object.recList;lst_object_recordsList=lst_object_recordsList.records[obj[i]];lst_object_recordsList.setColumnValue(stars_colName,candidateRate_starRating);if(isNaN(filterCountArr[stars_colName][candidateRate_starRating]))
{filterCountArr[stars_colName][candidateRate_starRating]=1;}
else
{filterCountArr[stars_colName][candidateRate_starRating]++;}
filterCountArr[stars_colName][oldRate]--;}
updateFilterPanel(lst_name,'candidate_jcp_folder_view_list_cr',stars_colName,displayRatingStr,'','',updateList);}}else{stars_colName="undefined";}
rateCandidate(candidateRate_candidateID,candidateRate_starRating,lst_name,stars_colName,oldRate);createStars(candidateRate_candidateID,candidateRate_starRating,0,lst_name,stars_colName);}
function tempCallBackFunction(o){'parent:nomunge';if(o.readyState==4)
{try
{var ret=handleAJAXResponse(o,false);var argArr=arguments[2];if(ret[0]=='E')
{var lst_object=eval("lst_"+argArr[2]);if(typeof lst_object!="undefined")
{var obj=lst_object.getPrimaryColumnValues('ID',argArr[0]);for(i=0;i<obj.length;i++)
{var recordList=lst_object.recList;var recordListRecords=recordList.records[obj[i]];recordListRecords.setColumnValue(argArr[3],argArr[1]);filterCountArr[argArr[3]][candidateRate_starRating]--;filterCountArr[argArr[3]][argArr[1]]++;}
updateFilterPanel(argArr[2],'candidate_jcp_folder_view_list_cr',argArr[3],displayRatingStr);}
createStars(argArr[0],argArr[1],0,argArr[2],argArr[3]);}
else
{try{if(partialListView==true){listViewInvalidateCache(stars_colName);}}catch(e){}}}catch(e)
{}}else{hideModalPopup();try
{$('dynamicERRBoxContent').innerHTML="We're sorry, an error has occured, please try again.";show('dynamicERRBox');var errBoxStyleVar=$('dynamicERRBox').style;errBoxStyleVar.display='';}catch(e)
{}}}
function rateCandidate(candidateRate_candidateID,candidateRate_starRating,lst_name,stars_colName,oldRate){'parent:nomunge';var fN=tempCallBackFunction;var uri=generate_crumbed_uri(RDT_ROOT_PHP_PATH+"/rate_candidate.php")+"&candidateID="+candidateRate_candidateID+"&rating="+candidateRate_starRating;try{showModalPopup('processingPopup',200,100,'yes');}catch(e){}
try{var httpConnVar=ygConn.http;var documentForm=document.forms['cm100_rate'];if(typeof documentForm!='undefined'&&documentForm!=null)
{httpConnVar.setForm(documentForm.name);httpConnVar.asyncRequest(__cobj,'POST',uri,false,fN,[candidateRate_candidateID,oldRate,lst_name,stars_colName],null);}
else
{httpConnVar.asyncRequest(__cobj,'GET',uri,false,fN,[candidateRate_candidateID,oldRate,lst_name,stars_colName],null);}}
catch(e)
{hideMessageBoxes();}}
function showHideDetails(rowID,force){'parent:nomunge';var detail1Element=$("resultContainer"+rowID+"details1").style;var detail2Element=$("resultContainer"+rowID+"details2").style;if(force=="hide"){var detailsImage=plusImage;var detailsDisplay='none';}else if(force=="show"){var detailsImage=minusImage;var detailsDisplay='';}else if(detail1Element.display=='none'){var detailsImage=minusImage;var detailsDisplay='';}else if(detail1Element.display==''){var detailsImage=plusImage;var detailsDisplay='none';}
$("resultContainer"+rowID+"PlusImage").src=detailsImage;detail1Element.display=detailsDisplay;detail2Element.display=detailsDisplay;return false;}
function truncateString(originalString,newLength){'parent:nomunge';try{if(originalString.length>newLength){return originalString.substring(0,newLength)+"...";}else{return originalString;}}catch(e){return"";}}
function go(){'parent:nomunge';job=$("jobaction");var jobOptions=job.options;var jobOptionSelected=jobOptions[jobOptions.selectedIndex];var locationObject=document.location;locationObject.href=jobOptionSelected.value;}
function tips_toggle(showID,hideID)
{toggle(showID,hideID);if(hideID=='brief')
{$('tips_more').className='hide';}
else
{$('tips_more').className='show';}}
function toggle(showID,hideID){'parent:nomunge';var hideIdElement=d.getElementById(hideID);var hideIdElementStyle=hideIdElement.style;var showIdElement=d.getElementById(showID);var showIdElementStyle=showIdElement.style;hideIdElementStyle.display='none';showIdElementStyle.display='block';}
function inlineToggle(showID,hideID){'parent:nomunge';var hideIdElement=d.getElementById(hideID);var hideIdElementStyle=hideIdElement.style;var showIdElement=d.getElementById(showID);var showIdElementStyle=showIdElement.style;hideIdElementStyle.display='none';showIdElementStyle.display='';}
function selectRowsOLD(tog){'parent:nomunge';var row_count=30;if(tog.checked){for(var i=0;i<row_count;i++){if(tr1=$('res_row1_'+i)){tr1.className='result_sel';var var_res_row=$('res_row_inner_'+i);var_res_row.className='result_sel';}
if(r2=$('res_row2_'+i)){r2.className='result_sel';}}}else{for(var i=0;i<row_count;i++){if(tr1=$('res_row1_'+i)){tr1.className='result';var var_row_inner=$('res_row_inner_'+i);var_row_inner.className='result';}
if(r2=$('res_row2_'+i)){r2.className='result';}}}
return;}
winW=630;winH=460;function getWindowWidth(){'parent:nomunge';var appVersionVar=navigator.appVersion;var appNameVar=navigator.appName;var body=document.body;if(parseInt(appVersionVar)>3){if(appNameVar=="Netscape"){winW=window.innerWidth;}
if(appNameVar.indexOf("Microsoft")!=-1){winW=body.offsetWidth+20;}}
return winW;}
function getWindowHeight(){'parent:nomunge';var appVersionVar=navigator.appVersion;var appNameVar=navigator.appName;var body=document.body;if(parseInt(appVersionVar)>3){if(appNameVar=="Netscape"){winH=window.innerHeight;}
if(appNameVar.indexOf("Microsoft")!=-1){winH=body.offsetHeight+20;}}
return winH;}
function showModalPopup(htmlContentDiv,width,height,noGreyOut){'parent:nomunge';currentBrowserWidth=getWindowWidth();var body=document.body;var modalPopupBoxStyleVar=$("modalPopupBox").style;var greyOutBoxStyleVar=$("greyOutBox").style;currentBrowserHeight=getWindowHeight();modalPopupBoxStyleVar.width=width+"px";modalPopupBoxStyleVar.height=height+"px";$("modalPopupBox").innerHTML=$(htmlContentDiv).innerHTML;newBoxLeft=((currentBrowserWidth/2)-(width/2)-30);newBoxTop=((currentBrowserHeight/2)-(height/2)-30)+body.scrollTop;modalPopupBoxStyleVar.left=newBoxLeft+"px";modalPopupBoxStyleVar.top=newBoxTop+"px";greyOutBoxStyleVar.width="100%";greyOutBoxStyleVar.height=body.scrollHeight;if(noGreyOut=="yes"){greyOutBoxStyleVar.backgroundImage='url(/common/images/blank_0_1_0_60_1.gif)';}
greyOutBoxStyleVar.visibility="visible";modalPopupBoxStyleVar.visibility="visible";}
function hideModalPopup(){'parent:nomunge';var modalPopupBoxStyleVar=$("modalPopupBox").style;var greyOutBoxStyleVar=$("greyOutBox").style;greyOutBoxStyleVar.visibility="hidden";modalPopupBoxStyleVar.visibility="hidden";greyOutBoxStyleVar.width=1+"px";greyOutBoxStyleVar.height=1+"px";}
function ShouldExtendJob(TE,jType)
{'parent:nomunge';var jt=jType;if((typeof jt=="undefined")||jt!="S"||jt==null)
{jt="P";}
timeToExpiry=DaysToExpiry(TE);if((timeToExpiry<warningDaysLimit)&&(jt=="P"))
return true;else
return false;}
function DaysToExpiry(TE)
{'parent:nomunge';todaySeconds=SERVER_TIME;var currentDate=new Date(SERVER_TIME*1000);var localOffset=currentDate.getTimezoneOffset()*60000;var totalOffset=__dt_user_tzoffset*1000+localOffset;currentDate.setTime(currentDate.getTime()+totalOffset);currentDate.setHours(23,59,59,0);var todayMiliSeconds=currentDate.getTime();var expiryDate=new Date(TE*1000);expiryDate.setTime(expiryDate.getTime()+totalOffset);expiryDate.setHours(23,59,59,0);var expiryMiliSeconds=expiryDate.getTime();timeToExpiry=Math.ceil((expiryMiliSeconds-todayMiliSeconds)/1000/60/60/24);if(timeToExpiry<=0)
{timeToExpiry=0;}
return timeToExpiry;}
function FormatExtendJob(JobId,TE,LOC,JS,DL)
{'parent:nomunge';if(ShouldExtendJob(TE))
{if((typeof JS=="undefined")||JS=="P")
{if(typeof DL=="undefined")
{return"<a href=\""+RDT_ROOT_PHP_PATH+"/JP030.php?EDIT=3&JOB_ID="+JobId+"&LOCATION="+LOC+"\"/>Extend Now</a>";}
else
{return"<a href=\""+RDT_ROOT_PHP_PATH+"/JP030.php?EDIT=3&JOB_ID="+JobId+"&LOCATION="+LOC+"&DAYS_LEFT="
+DL+"\"/>Extend Now</a>";}}
else
{if(typeof DL=="undefined")
{return"<a href=\""+RDT_ROOT_PHP_PATH+"/JP150.php?JOB_ID="+JobId+"&PURCHASE=1\"/>Buy more</a>";}
else
{return"<a href=\""+RDT_ROOT_PHP_PATH+"/JP150.php?JOB_ID="+JobId+"&PURCHASE=1&DAYS_LEFT="+DL+"\"/>Buy more</a>";}}}
return"";}
function PrintCancelButton(EncReturnUrl,DefaultUrl,EncType)
{'parent:nomunge';var returnUrlDec='';if(EncReturnUrl!='')
{if(typeof EncType=='undefined'||EncType==null||EncType==''||EncType=='base64')
{returnUrlDec=decode64(EncReturnUrl);}
else if(EncType=='url')
{returnUrlDec=decodeURIComponent(EncReturnUrl);}}
else
returnUrlDec=DefaultUrl;document.write('<input type="button" class="btn_sec_75" name ="cancel" value="Cancel" onClick="window.location.href=\''+returnUrlDec+'\'"/>');}
function popUp(URL){'parent:nomunge';scrWidth=screen.width;scrHeight=screen.height;window.open(URL,'','toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=0,width='+scrWidth+',height='+scrHeight+',left = 0,top = 0');return false;}
function returnToUrl(form,defaultUrl,isEncoded)
{'parent:nomunge';url="";if(isEncoded==""||isEncoded==undefined)
{isEncoded="false";}
try
{var formRetVar=form.__ret;var formQRetVar=form.__qret;if(TrimString(formRetVar.value)!='')
{if(isEncoded=="true")
{url=decode64(formRetVar.value);}
else
{url=formRetVar.value;}}
else
{url=decode64(formQRetVar.value);}}catch(e)
{}
if(url=='')
{url=defaultUrl;}
form.method="POST";form.action=url;form.submit();}
function commaSepValues(value1,value2)
{'parent:nomunge';var value="";if((value1=="")&&(value2==""))
{}
else if((value1=="")&&(value2!=""))
{value+=value2;}
else if((value1!="")&&(value2==""))
{value+=value1;}
else
{value+=value1+", "+value2;}
return value;}
function formatUSALocation(city,state,stringMaxLength,needLabel)
{'parent:nomunge';var city_t=TrimString(city);var state_t=TrimString(state);var city_trunc=city_t;if(stringMaxLength!=-1){city_trunc=truncateString(city_t,stringMaxLength);}
if(needLabel)
{return"<label title=\""+commaSepValues(city_t,state_t)+"\">"+commaSepValues(city_trunc,state_t)+"</label>";}
else
{return commaSepValues(city_trunc,state_t);}}
function formatCanadaLocation(city,state,country,show_country,stringMaxLength,needLabel)
{'parent:nomunge';var city_t=TrimString(city);var state_t=TrimString(state);var country_t=TrimString(country);var city_trunc=city_t;if(stringMaxLength!=-1){city_trunc=truncateString(city_t,stringMaxLength);}
var loc="";if((typeof show_country=="undefined")||(show_country=="")||(show_country=="0"))
{if(needLabel)
{loc+="<label title=\""+commaSepValues(city_t,state_t)+"\">"+commaSepValues(city_trunc,state_t)+"</label>";}
else
{loc+=commaSepValues(city_trunc,state_t);}}
else
{var title=commaSepValues(city_t,state_t);title=commaSepValues(title,country_t);var label=commaSepValues(city_trunc,state_t);label=commaSepValues(label,country_t);if(needLabel)
{loc+="<label title=\""+title+"\">"+label+"</label>";}
else
{loc+=label;}}
return loc;}
function formatNationwideLocation(city,country,stringMaxLength,needLabel)
{'parent:nomunge';var city_t=TrimString(city);var country_t=TrimString(country);var city_trunc=city_t;if(stringMaxLength!=-1){city_trunc=truncateString(city_t,stringMaxLength);}
if(needLabel)
{return"<label title=\""+commaSepValues(city_t,country_t)+"\">"+commaSepValues(city_trunc,country_t)+"</label>";}
else
{return commaSepValues(city_trunc,country_t);}}
function formatInternationalLocation(city,province,country,show_province,stringMaxLength,needLabel)
{'parent:nomunge';var city_t=TrimString(city);var province_t=TrimString(province);var country_t=TrimString(country);var city_trunc=city_t;var province_trunc=province_t;if(stringMaxLength!=-1){city_trunc=truncateString(city_t,stringMaxLength);province_trunc=truncateString(province_t,stringMaxLength);}
var loc="";if((typeof show_province=="undefined")||(show_province=="")||(show_province=="0"))
{if(needLabel)
{loc+="<label title=\""+commaSepValues(city_t,country_t)+"\">"+commaSepValues(city_trunc,country_t)+"</label>";}
else
{loc+=commaSepValues(city_trunc,country_t);}}
else
{var title=commaSepValues(city_t,province_t);title=commaSepValues(title,country_t);var label=commaSepValues(city_trunc,province_trunc);label=commaSepValues(label,country_t);if(needLabel)
{loc+="<label title=\""+title+"\">"+label+"</label>";}
else
{loc+=label;}}
return loc;}
function formatLocation(city,state,province,country,show_province,show_country,stringMaxLength,needLabel)
{'parent:nomunge';if(city==CITY_NATIONWIDE)
{return formatNationwideLocation(city,country,stringMaxLength,needLabel);}
if((typeof country=="undefined")||(country=="")||(country=="USA"))
{return formatUSALocation(city,state,stringMaxLength,needLabel);}
else if(country=="CAN")
{return formatCanadaLocation(city,state,country,show_country,stringMaxLength,needLabel);}
else
{return formatInternationalLocation(city,province,country,show_province,stringMaxLength,needLabel);}}
function formatCityState(citys,states,provinces,countries,show_province,show_country,sep,stringMaxLength,needLabel)
{'parent:nomunge';if(needLabel==null||typeof needLabel=='undefined'||needLabel!=true)
{needLabel=false;}
if(stringMaxLength==null||typeof stringMaxLength=='undefined'||isNaN(stringMaxLength))
{stringMaxLength=-1;}
var city_arr=citys.split("^");var state_arr=new Array();if(typeof states!="undefined")
{state_arr=states.split("^");}
var province_arr=new Array();if(typeof provinces!="undefined")
{province_arr=provinces.split("^");}
var country_arr=new Array();if(typeof countries!="undefined")
{country_arr=countries.split("^");}
var locHTML="";var count=city_arr.length;for(var x=0;x<count;x++)
{locHTML+=formatLocation(city_arr[x],state_arr[x],province_arr[x],country_arr[x],show_province,show_country,stringMaxLength,needLabel);if((typeof sep=="undefined")||(sep==""))
{locHTML+="<br/>";}
else if(x!=(count-1))
{locHTML+=sep;}}
return locHTML;}
function getObjInnerText(divId){'parent:nomunge';var divVar=document.getElementById(divId);if(browser.isIE){return divVar.innerText;}
else{return divVar.textContent;}}
function formatCityStateWithZip(citys,states,provinces,countries,zip,show_province,show_country,sep)
{'parent:nomunge';var city_arr=citys.split("^");var state_arr=new Array();if(typeof states!="undefined")
{state_arr=states.split("^");}
var province_arr=new Array();if(typeof provinces!="undefined")
{province_arr=provinces.split("^");}
var country_arr=new Array();if(typeof countries!="undefined")
{country_arr=countries.split("^");}
var zip_arr=new Array();if(typeof zip!="undefined")
{zip_arr=zip.split("^");}
var locHTML="";var count=city_arr.length;for(var x=0;x<count;x++)
{locHTML+=formatLocation(city_arr[x],state_arr[x],province_arr[x],country_arr[x],show_province,show_country);if(zip_arr[x]!="")
{locHTML+=" "+zip_arr[x];}
if((typeof sep=="undefined")||(sep==""))
{locHTML+="<br/>";}
else if(x!=(count-1))
{locHTML+=sep;}}
return locHTML;}
function replaceAttributeValue(node,attrName,reg,value,createElem)
{'parent:nomunge';if(node!=null)
{var ele=node.attributes;ele=ele.getNamedItem(attrName);if(ele==null)
{if(createElem)
{ele=document.createAttribute(attrName);ele.value=value;}}
else
{var str=ele.value;if(reg!=null)
{str=str.replace(reg,value);}
else
{str=value;}
ele=document.createAttribute(attrName);ele.value=str;}
if(ele!=null)
{var nodeAttribs=node.attributes;nodeAttribs.setNamedItem(ele);}}}
function replaceNodeValue(node,reg,value)
{'parent:nomunge';var val=node.nodeValue;if(val!=null)
{val=val.replace(reg,value);node.nodeValue=val;}
else
{try
{var firstNodeChild=node.firstChild;if(firstNodeChild.nodeType==3)
{val=firstNodeChild.nodeValue;if(val!=null)
{val=val.replace(reg,value);}
firstNodeChild.nodeValue=val;}}catch(e){}}}
function getNode(node,childNodeName)
{'parent:nomunge';var templObj=node.childNodes;var childNode=null;for(var k=0;k<templObj.length;k++)
{var tempObjItem=templObj.item(k);var tempObjItemName=tempObjItem.nodeName;if(tempObjItemName.toLowerCase()==childNodeName)
{childNode=templObj.item(k);break;}}
return childNode;}
function registerFunction(fp,arr)
{'parent:nomunge';if(fp!=null)
{arr[arr.length]=new Array(2);arr[arr.length-1][0]="B"+(arr.length-1);arr[arr.length-1][1]=fp;}
else
{}}
function deregisterFunction(fp,arr)
{var i;for(i=0;i<arr.length;i++)
{if(arr[i][1]==fp)
{arr.splice(i,1);}}}
function registerNamedFunction(fp,arr,key)
{'parent:nomunge';if(fp!=null)
{arr[arr.length]=new Array(2);arr[arr.length-1][0]=key;arr[arr.length-1][1]=fp;}}
function executeFunctions(arr)
{'parent:nomunge';var i=0;arr.sort(sortRegFunctions);for(i=0;i<arr.length;i++)
{var fp=arr[i][1];fp();}}
function sortRegFunctions(a,b)
{'parent:nomunge';if(a[0]<b[0])
{return-1;}
else if(a[0]>b[0])
{return 1;}
else
{return 0;}}
function executeOnLoadFunction()
{'parent:nomunge';executeFunctions(onLoadFnArr);}
function executeOnUnloadFunction()
{'parent:nomunge';executeFunctions(onUnloadFnArr);}
function showWaitMessage(msg)
{'parent:nomunge';showInfoMessage(msg);}
function showInfoMessage(msg)
{'parent:nomunge';hideMessageBoxes();$('dynamicINFOBoxContent').innerHTML=msg;show("dynamicINFOBox");var infoBoxStyle=$('dynamicINFOBox').style;infoBoxStyle.display='';}
function showErrorMessage(msg)
{'parent:nomunge';hideMessageBoxes();$('dynamicERRBoxContent').innerHTML=msg;show("dynamicERRBox");var errBoxStyle=$('dynamicERRBox').style;errBoxStyle.display='';}
function showSuccessMessage(msg)
{'parent:nomunge';hideMessageBoxes();$('dynamicSCSBoxContent').innerHTML=msg;show("dynamicSCSBox");var scsBoxStyle=$('dynamicSCSBox').style;scsBoxStyle.display='';}
function hideMessageBoxes()
{'parent:nomunge';try
{var infoBoxStyle=$('dynamicINFOBox').style;var errBoxStyle=$('dynamicERRBox').style;var scsBoxStyle=$('dynamicSCSBox').style;hide('dynamicSCSBox');hide('dynamicERRBox');hide('dynamicINFOBox');scsBoxStyle.display='none';errBoxStyle.display='none';infoBoxStyle.display='none';}catch(e)
{}}
function handleAJAXResponse(o,showSuccessMessage)
{'parent:nomunge';try{hideModalPopup();}catch(e){};hideMessageBoxes();eval(o.responseText);if(handleAjaxRedirection(respDetails)==true)
{return;}
if(ret_arr[0]=='S')
{if(showSuccessMessage)
{try
{var scsBoxStyle=$('dynamicSCSBox').style;$('dynamicSCSBoxContent').innerHTML=ret_arr[1];show('dynamicSCSBox');scsBoxStyle.display='';}catch(e)
{}}}
else if(ret_arr[0]=='E')
{try
{var errBoxStyle=$('dynamicERRBox').style;$('dynamicERRBoxContent').innerHTML=ret_arr[1];show('dynamicERRBox');errBoxStyle.display='';}catch(e)
{}}
return ret_arr;}
function setPhoneNumber(name)
{'parent:nomunge';try
{var phoneObj=$(name);var phoneNum=$(name+"1").value;phoneNum+="-"+$(name+"2").value;phoneNum+="-"+$(name+"3").value;phoneObj.value=phoneNum;}catch(e)
{}}
function viewPrintableVersion(eleToShow,removeEles,removeAnchors,onLoadfunc,params,is_iframe,framename,is_report_print)
{'parent:nomunge';var divObj=$(eleToShow);printDivObject=divObj.cloneNode(true);onLoadfuncObject=onLoadfunc;if(removeAnchors==null||typeof removeAnchors=='undefined')
{removeAnchors=true;}
if(removeAnchors==true)
{removeElements(printDivObject,"a");}
removeElements(printDivObject,"input");if(typeof removeEles!='undefined'&&removeEles!=null)
{for(var i=0;i<removeEles.length;i++)
{try
{removeElementsById(printDivObject,removeEles[i]);}catch(e)
{}}}
var url='';var report_print_flag='';if(typeof is_report_print=='undefined')
{report_print_flag=false;}
else
{report_print_flag=is_report_print;}
if((eleToShow=='RP_DISPLAY_DIV')||(report_print_flag==true))
{url=REPORT_ROOT_PHP_PATH+'/print.php';}
else
{url=RDT_ROOT_PHP_PATH+'/print.php';}
try
{if(params!=null&&typeof params!='undefined')
{for(key in params)
{url=addQueryParam(url,key,params[key],false);}}
if(is_iframe!=null&&typeof is_iframe!='undefined')
{url=addQueryParam(url,'IS_IFRAME','1',false);url=addQueryParam(url,'IFRAME_NAME',framename,false);}}catch(e){}
var winObj=window.open(url,'');}
function showPrintableVersion(parentObj)
{'parent:nomunge';var divObj=$("placeHolder");if(parentObj.printDivObject!=null&&typeof parentObj.printDivObject!='undefined')
{html1="";html2="";if(typeof reports_status!='undefined'&&reports_status=='show_all_reports'){html1=(typeof parentObj.document.getElementById('results_table')!='undefined')?parentObj.document.getElementById('results_table').innerHTML:"";html2=(typeof parentObj.document.getElementById('reportTablePrint')!='undefined')?parentObj.document.getElementById('reportTablePrint').innerHTML:"";}
divObj.innerHTML=parentObj.printDivObject.innerHTML.replace(html1,html2);}
if(parentObj.onLoadfuncObject!=null&&typeof parentObj.onLoadfuncObject!='undefined')
{try
{eval(parentObj.onLoadfuncObject+"()");}catch(e){}}}
function showIframePrintableVersion(parentObj,framename)
{var divObj=$("placeHolder");var iframeContent;if(parentObj.printDivObject!=null&&typeof parentObj.printDivObject!='undefined')
{if(framename&&typeof framename!='undefined')
{iframeContent=window.opener.frames[framename].document.body.innerHTML;}
parentObj.printDivObject.innerHTML=parentObj.printDivObject.innerHTML.replace(/<hr[^>]*>/gi,'');parentObj.printDivObject.innerHTML=parentObj.printDivObject.innerHTML.replace(/<iframe (.*?)<\/iframe>/,'');divObj.innerHTML=parentObj.printDivObject.innerHTML;}
if(parentObj.onLoadfuncObject!=null&&typeof parentObj.onLoadfuncObject!='undefined')
{try
{eval(parentObj.onLoadfuncObject+"()");}catch(e){}}}
function replacedetail_link()
{'parent:nomunge';try{var objA=document.getElementById('title_link');var divObj1=document.getElementById('title_link');divObj1=divObj1.parentNode;var stitle_link=document.getElementById('title_link');stitle_link=stitle_link.innerHTML;objSpan=document.createElement("span");divObj1.replaceChild(objSpan,objA);objSpan.innerHTML=stitle_link;}catch(e){}}
function removeElements(node,eleName)
{'parent:nomunge';var nodeName="";if(node.hasChildNodes())
{var children=node.childNodes;for(var i=0;i<children.length;i++)
{var childNodeVar=children.item(i);nodeName=childNodeVar.nodeName;if(nodeName.toLowerCase()==eleName.toLowerCase())
{node.removeChild(childNodeVar);}
else
{removeElements(childNodeVar,eleName);}}}
return;}
function removeElementsById(node,idVal)
{'parent:nomunge';var nodeId="";if(node.hasChildNodes())
{var children=node.childNodes;for(var i=0;i<children.length;i++)
{var childNodeVar=children.item(i);var childNodeVarAttribs=childNodeVar.attributes;if(typeof childNodeVar.attributes!='undefined'&&childNodeVarAttribs!=null&&childNodeVarAttribs.getNamedItem("ID")!=null)
{nodeId=childNodeVarAttribs.getNamedItem("id");nodeId=nodeId.value;if(nodeId!=null&&typeof nodeId!='undefined'&&nodeId.toLowerCase()==idVal.toLowerCase())
{node.removeChild(childNodeVar);}
else
{removeElementsById(childNodeVar,idVal);}}
else
{removeElementsById(childNodeVar,idVal);}}}
return;}
function createHiddenValue(formObj,name,idVal)
{'parent:nomunge';var inputObj=document.createElement("input");var nameAttr=document.createAttribute("name");nameAttr.value=name;var typeAttr=document.createAttribute("type");typeAttr.value="hidden";var valAttr=document.createAttribute("value");valAttr.value=idVal;var inputObjAttribs=inputObj.attributes;inputObjAttribs.setNamedItem(nameAttr);inputObjAttribs.setNamedItem(typeAttr);inputObjAttribs.setNamedItem(valAttr);formObj.appendChild(inputObj);}
function numberoflocation(citys,states)
{'parent:nomunge';var city_arr=citys.split("^");var state_arr=new Array();if(typeof states!="undefined")
{state_arr=states.split("^");}
var count_city=city_arr.length;var count_state=state_arr.length;return count_city;}
function showDefaultReplyMessage()
{'parent:nomunge';var arr=new Array();arr['LETTER_TEMPL_NAME']='JS_DEFAULT_REPLY';getLobData('JP125-02B',null,EBx,null,"GET");}
var EBx=DefaultReplyMsg_handleResponse;function DefaultReplyMsg_handleResponse(o){'parent:nomunge';if(o.readyState==4)
{try
{var responseHtml=getLobDataFromUQLR(o.responseXML);var tempstr1=responseHtml.replace(/(http)([^\ \n\r]+)/g,"<a href=\"$1$2\">$1$2</a>");var tempstr2=tempstr1.replace(/\$\{CAND_LAST_NAME\}/g,"Smith");var tempstr3=tempstr2.replace(/\$\{CAND_FIRST_NAME\}/g,"Joe");var tempstr4=tempstr3.replace(/Hotjobs/g,"Yahoo! HotJobs");var tempstr5="<pre class=\"tbl-contextualHelp\">"+tempstr4+"</pre>";var emailBody1=document.getElementById("Msg_body");emailBody1.innerHTML=tempstr5;}catch(e)
{}}};function showdefaultmessage(id,linkid)
{'parent:nomunge';showDefaultReplyMessage();var browseWidth,browseHeight;var body=document.body;if(document.layers||(document.getElementById&&!document.all)){browseWidth=window.outerWidth;browseHeight=window.outerHeight;}else if(document.all){browseWidth=body.clientWidth;browseHeight=body.clientHeight;}
var iebody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:body;var dsocleft=document.all?iebody.scrollLeft:pageXOffset;var dsoctop=document.all?iebody.scrollTop:pageYOffset;var ypos;linkObj=document.getElementById(linkid);contextualWindowObj=document.getElementById(id);var contextualWindowObjStyle=contextualWindowObj.style;contextualWindowObjStyle.display="";oDD=new ygDDFramed(id);oDD.setHandleElId(id+"_header");ygPos.setX(contextualWindowObj,browseWidth/4);ygPos.setY(contextualWindowObj,dsoctop+50);}
function closedefaultmessage(id){'parent:nomunge';document.getElementById(id).style.display="none";}
function buyMoreCommon(formObj,criteria,duration,location)
{'parent:nomunge';var returnUrl=encode64(RDT_ROOT_PHP_PATH+"/HM000.php");try
{var formRetVar=formObj.__ret;returnUrl=formRetVar.value;if(typeof returnUrl!="undefined"&&returnUrl!=null)
{returnUrl=returnUrl;}}
catch(e)
{returnUrl=encode64(RDT_ROOT_PHP_PATH+"/HM000.php");}
if(typeof duration=='undefined'||duration==null)
{duration='';}
if(typeof location=='undefined'||location==null)
{location='';}
try
{var locationVar=document.location;if(criteria=="P")
{var durationVar=duration.length-5;var dur=duration.substring(0,durationVar);if((dur=='30'||dur=='60')&&(location!='Nationwide')&&(location!='All Access'))
{var varFormObjLoc=formObj.LOCATION;varFormObjLoc.value=location;formObj.action=RDT_ROOT_PHP_PATH+"/buymore_redirect.php";formObj.method="POST";formObj.submit();}
else if(location=='All Access')
{var url=SS_ROOT_PATH+"/ss/php/ss-show-prices.php?State=All Access&Metro=All Access&loc_type=N&refsrc=hjrd&refent=jp-sl";locationVar.href=url;}
else
{if(duration==''&&location=='')
{var url=SS_ROOT_PATH+"/ss/php/hjss_partners.php?dest_page="+encodeURIComponent(SS_ROOT_PATH+"/ss/php/ss-select-location.php?multiple=1&refsrc=hjrd&refent=jp-sl");locationVar.href=url;}
else
{try
{formObj.DURATION.value=duration;formObj.LOCATION.value=location;}catch(e){}
formObj.action=RDT_ROOT_PHP_PATH+"/JP175.php";formObj.method="POST";formObj.submit();}}}
else if(criteria=="S")
{locationVar.href=RDT_ROOT_PHP_PATH+"/JP150.php?PURCHASE=0&__ret="+returnUrl;}
else if(criteria=="A")
{locationVar.href=RDT_ROOT_PHP_PATH+"/JP150.php?PURCHASE=6&__ret="+returnUrl;}
else if(criteria=="Y")
{locationVar.href=RDT_ROOT_PHP_PATH+"/JP150.php?PURCHASE=7&__ret="+returnUrl;}
else if(criteria=="E")
{locationVar.href=RDT_ROOT_PHP_PATH+"/JP150.php?PURCHASE=8&__ret="+returnUrl;}
else if(criteria=="C")
{locationVar.href=RDT_ROOT_PHP_PATH+"/JP150.php?PURCHASE=4&__ret="+returnUrl;}
else if(criteria=="B")
{formObj.action=RDT_ROOT_PHP_PATH+"/JP150.php?PURCHASE=3";formObj.method="POST";formObj.submit();}
else if(criteria=="H")
{formObj.action=RDT_ROOT_PHP_PATH+"/JP150.php?PURCHASE=2";formObj.method="POST";formObj.submit();}}
catch(e)
{}}
function addQueryParam(location,key,value,append)
{'parent:nomunge';if(location==''||key==''||value=='')
{return location;}
value=encodeURIComponent(value);if(typeof append=='undefined')
{append=false;}
var pos=location.indexOf('?');var uriPrefix='';var query='';if(pos==-1)
{uriPrefix=location;}
if(pos>0)
{uriPrefix=location.substring(0,pos);}
if(pos>=0&&pos<location.length-1)
{query=location.substring(pos+1,location.length);}
return addQueryParamHelper(uriPrefix,query,key,value,append);}
function addQueryParam5(location,append,key1,val1,key2,val2,key3,val3,key4,val4,key5,val5)
{'parent:nomunge';var uri=location;for(var i=1;i<=5;i++)
{var b=eval("((typeof key"+i+"=='undefined') ? 0 : 1)");if(b==0)
{break;}
else
{var keyI=eval('key'+i);if(keyI==null||keyI=='')
{break;}
var valI=eval('val'+i);uri=addQueryParam(uri,keyI,valI,append);}}
return uri;}
function addQueryParamCurrentLocation(key,value,append)
{'parent:nomunge';var location=document.location;location=location.href;if(key==''||value=='')
{return location;}
if(typeof append=='undefined')
{append=false;}
var query=document.location;query=query.search;var q_pos=location.length;if(query!='')
{q_pos=location.indexOf(query);}
var uriPrefix=location.substring(0,q_pos);return addQueryParamHelper(uriPrefix,query.substring(1),key,value,append);}
function addQueryParamHelper(uriPrefix,query,key,value,append)
{'parent:nomunge';if(append==true||query=='')
{if(query!='')
{query+='&';}
query+=key+'='+value;return(uriPrefix+'?'+query);}
var queryParam=query.split('&');var flag_replaced=0;key+='=';for(var i=0;i<queryParam.length;i++)
{if(queryParam[i].indexOf(key)==0)
{queryParam[i]=key+value;flag_replaced=1;}}
query=queryParam.join('&');if(flag_replaced!=1)
{query+='&'+key+value;}
return(uriPrefix+'?'+query);}
function removeQueryParam(location,key)
{'parent:nomunge';if(location==''||key=='')
{return location;}
var pos=location.indexOf('?');if(pos==-1||pos==location.length-1)
{return location;}
var uriPrefix='';var query='';uriPrefix=location.substring(0,pos);query=location.substring(pos+1,location.length);return removeQueryParamHelper(uriPrefix,query,key);}
function removeQueryParamCurrentLocation(key)
{'parent:nomunge';var locationVar=document.location;var location=locationVar.href;if(key=='')
{return location;}
var query=locationVar.search;if(query.length<=1)
{return location;}
var q_pos=location.indexOf(query);var uriPrefix=location.substring(0,q_pos);return removeQueryParamHelper(uriPrefix,query.substring(1),key);}
function removeQueryParamHelper(uriPrefix,query,key)
{'parent:nomunge';var queryParam=query.split('&');var modQueryParam=new Array();key+='=';for(var i=0;i<queryParam.length;i++)
{if(queryParam[i].indexOf(key)!=0)
{modQueryParam[modQueryParam.length]=queryParam[i];}}
query=modQueryParam.join('&');if(query=='')
{return(uriPrefix);}
return(uriPrefix+'?'+query);}
function wrapText(bodytext,len,sep)
{'parent:nomunge';var responseHtml='';if(sep==undefined)
{sep="<br />";}
try
{if(bodytext.length<len)
{return bodytext;}
var arrtext=bodytext.split("\n");for(var i=0;i<arrtext.length;i++)
{var startpos=0;var endpos=len;var replacetext='';var temptext=arrtext[i];var templen=temptext.length;var j=templen;while(j>len)
{replacetext=temptext.substring(startpos,endpos);var laststr=replacetext.lastIndexOf(" ",endpos);if(laststr>0)
{endpos=startpos+laststr+1;}
responseHtml=responseHtml+temptext.substring(startpos,endpos)+sep;startpos=endpos;endpos=endpos+len;j=templen-startpos;}
responseHtml=responseHtml+temptext.substring(startpos,temptext.length)+sep;}}
catch(e)
{return bodytext;}
return responseHtml;}
function addAttribute(obj,attName,value)
{'parent:nomunge';var attrib=document.createAttribute(attName);attrib.value=value;var objAttributes=obj.attributes;objAttributes.setNamedItem(attrib);}
function get_action_from_uri(uri)
{'parent:nomunge';var x=uri.indexOf('?');var l_uri='';if(x>=0){l_uri=uri.substring(0,x);}
else{l_uri=uri;}
var y=l_uri.lastIndexOf('/');var action=l_uri.slice(y);return action;}
function get_action_name(orig)
{'parent:nomunge';var action=get_action_from_uri(orig);var action_name=action.slice(1);var x=action_name.indexOf('.');if(x>=0){action_name=action_name.substring(0,x);}
return action_name;}
function generate_crumbed_uri(orig)
{'parent:nomunge';var action_name=get_action_name(orig);var crumb=eval("__cr_Ax_"+action_name);return addQueryParam(orig,HJ_CRUMB,crumb,true)}
function storePageStatus()
{'parent:nomunge';try
{var ps="";var cookie_content='';var ps=buildStatusArrayForStoring(document);if(ps!='')
{ps=(ps.length-1)+":"+ps;}
var now=new Date();if(CURRENT_PAGE_NAME!=null&&typeof CURRENT_PAGE_NAME!='undefined'&&isSignOutPage==false)
{document.cookie=PG_STATUS_COOKIE_NAME+"=n="+CURRENT_PAGE_NAME+"&t="+now.getTime()+"&v="+escape(ps)+"; domain=."+COOKIE_DOMAIN_PATH;}
else
{document.cookie=PG_STATUS_COOKIE_NAME+"=t="+now.getTime()+"; domain=."+COOKIE_DOMAIN_PATH;}}catch(e)
{}}
function clearPageStatusInfoFromCookie()
{'parent:nomunge';for(key in storeFnArr)
{if(key!='sc')
{delete storeFnArr[key];}}}
function buildStatusArrayForStoring()
{'parent:nomunge';var ps="";for(key in storeFnArr)
{try
{var store=storeFnArr[key]()+"";var kv=key+"/"+store.length+":"+store+";";if(kv.length+ps.length<MAX_PS_LENGTH)
{ps+=kv;}
else
{break;}}catch(e){}}
return ps;}
function restorePageStatus()
{'parent:nomunge';if(typeof STATUS_OF_THIS_PAGE=='undefined'||STATUS_OF_THIS_PAGE==null)
{return;}
var arr=getStatusArray(unescape(STATUS_OF_THIS_PAGE));for(key in arr)
{try
{var fn=restoreFnArr[key];if(fn!=null&&typeof fn!='undefined')
{fn(arr[key]);}}catch(e)
{}}}
function getStatusArray(st)
{'parent:nomunge';var arr=new Array();if(st==null||typeof st=='undefined'||st=='')
{return arr;}
var colIndex=st.indexOf(":");if(colIndex<=0||colIndex==st.length)
{return arr;}
var tStr=st.substring(0,colIndex);if(isNaN(tStr))
{return arr;}
var stLen=parseInt(tStr);tStr=st.substring(colIndex+1,colIndex+1+stLen);buildStatusArray(arr,tStr);return arr;}
function buildStatusArray(arr,st)
{'parent:nomunge';try
{var sInd=st.indexOf("/");if(sInd<=0)
{return;}
var cInd=st.indexOf(":",sInd);if(cInd<0)
{return;}
var id=st.substring(0,sInd);var t2=st.substring(sInd+1,cInd);if(isNaN(t2))
{return;}
var len=parseInt(t2);var val=st.substring(cInd+1,cInd+1+len);arr[id]=val;var rem=st.substring(cInd+len+2,st.length);if(rem!='')
{buildStatusArray(arr,rem);}}catch(e){}}
function registerPageStatusFunctions(id,storeFn,restoreFn)
{'parent:nomunge';if(id==null||typeof id=='undefined'||id=='')
{return;}
if(storeFn!=null&&typeof storeFn!='undefined')
{storeFnArr[id]=storeFn;}
if(restoreFn!=null&&typeof restoreFn!='undefined')
{restoreFnArr[id]=restoreFn;}}
function Quicksort(vec,l,h,sortMethod)
{'parent:nomunge';var pivot,ls,hs,temp;try{if(h-l<=0)
{return;}
if(h-l==1)
{if(sortMethod(vec[l],vec[h])>0)
{temp=vec[l];vec[l]=vec[h];vec[h]=temp;}
return;}
pivot=vec[parseInt((l+h)/2)];vec[parseInt((l+h)/2)]=vec[l];vec[l]=pivot;ls=l+1;hs=h;do
{while(ls<=hs&&sortMethod(vec[ls],pivot)<=0)
{ls++;}
while(sortMethod(vec[hs],pivot)>0)
{hs--;}
if(ls<hs)
{temp=vec[ls];vec[ls]=vec[hs];vec[hs]=temp;}}while(ls<hs);vec[l]=vec[hs];vec[hs]=pivot;}
catch(e){alert(e.description);}
if(l<hs-1)
{Quicksort(vec,l,hs-1,sortMethod);}
if(hs+1<h)
{Quicksort(vec,hs+1,h,sortMethod);}}
function add_to_address_book(formObj,recipientId)
{'parent:nomunge';var recipients=document.getElementById(recipientId);recipients=recipients.value;var array_recipient=recipients.split(',');var recipient_record=new Array();var address_book_email=new Array();var email,name,l_name,f_name;var pos_lt,pos_gt,pos_space;var i,j;for(i=0;i<array_recipient.length;i++)
{pos_lt=array_recipient[i].indexOf('<');pos_gt=array_recipient[i].indexOf('>',pos_lt);if(pos_lt!=-1&&pos_gt!=-1)
{email=array_recipient[i].substring(pos_lt+1,pos_gt);name=array_recipient[i].substring(0,pos_lt);}
else
{email=array_recipient[i];name="";}
email=trim_corner_spaces(email);if(email=="")
{continue;}
name=trim_corner_spaces(name);if(name=="")
{name=email.substring(0,email.indexOf('@'));}
pos_space=name.indexOf(' ');if(pos_space==-1)
{f_name=name;l_name="";}
else
{f_name=name.substring(0,pos_space);l_name=name.substring(pos_space+1,name.length);}
var record=new Array(3);record[0]=email;record[1]=f_name;record[2]=l_name;recipient_record.push(record);}
recipient_record.sort(sort_email);if(typeof names!='undefined'&&names!=null)
{for(i=2;i<names.length;i+=3)
{address_book_email.push(names[i]);}
address_book_email.sort();}
for(i=0,j=0;i<address_book_email.length&&j<recipient_record.length;)
{if(address_book_email[i]==recipient_record[j][0])
{j++;}
else if(address_book_email[i]<recipient_record[j][0])
{i++;}
else
{createHiddenValue(formObj,'EMAIL_TO_ADD',recipient_record[j][0]);createHiddenValue(formObj,'FNAME_TO_ADD',recipient_record[j][1]);createHiddenValue(formObj,'LNAME_TO_ADD',recipient_record[j][2]);j++;}}
for(;j<recipient_record.length;j++)
{createHiddenValue(formObj,'EMAIL_TO_ADD',recipient_record[j][0]);createHiddenValue(formObj,'FNAME_TO_ADD',recipient_record[j][1]);createHiddenValue(formObj,'LNAME_TO_ADD',recipient_record[j][2]);}}
function trim_corner_spaces(str)
{'parent:nomunge';while(str.substring(0,1)==' ')
{str=str.substring(1,str.length);}
while(str.substring(str.length-1,str.length)==' ')
{str=str.substring(0,str.length-1);}
return str;}
function sort_email(a,b)
{'parent:nomunge';if(a[0]<b[0])
{return-1;}
if(a[0]>b[0])
{return 1;}
return 0;}
function signOut()
{'parent:nomunge';try
{isSignOutPage=true;}catch(e){}
deleteHJPSCookie();}
function deleteHJPSCookie()
{'parent:nomunge';try
{document.cookie=PG_STATUS_COOKIE_NAME+"=n=&v=; domain=."+COOKIE_DOMAIN_PATH;}catch(e){}}
function removeControlChar(str)
{'parent:nomunge';var retVal='';if(str=="undefined"||str==null)
{return retVal;}
var code=0;for(var i=0;i<str.length;i++)
{code=str.charCodeAt(i);if(code>31||code==9||code==10||code==13)
{retVal+=str.charAt(i);}}
return retVal;}
function formatDataItem(content,newContentLength,needLabel){'parent:nomunge';var contentToReturn="";if(newContentLength==null||typeof newContentLength=='undefined'||isNaN(newContentLength))
{newContentLength=-1;}
try{content=TrimString(content);if(content==""){contentToReturn=NAstring;}else if(newContentLength>-1&&content.length>newContentLength){entityRegex=/(&[^;]+;)/g;matches=entityRegex.exec(content);for(var i=0;matches;i++)
{if(matches.index<newContentLength)
{newContentLength+=matches[0].length-1;}
else
{break;}
matches=entityRegex.exec(content);}
var contentStringVar=content.toString();contentToReturn=contentStringVar.substring(0,newContentLength)+"...";}else{contentToReturn=content;}
contentToReturn=HtmlEncode(contentToReturn);content=HtmlEncode(content);}catch(e){}
if(needLabel==null||typeof needLabel=='undefined'||needLabel!=true)
{needLabel=false;}
if(needLabel==true){return"<label title=\""+content+"\">"+contentToReturn+"</label>";}else{return contentToReturn;}}
function HtmlDecode(s)
{var out="";if(s==null)return;var l=s.length;for(var i=0;i<l;i++)
{var ch=s.charAt(i);if(ch=='&')
{var semicolonIndex=s.indexOf(';',i+1);if(semicolonIndex>0)
{var entity=s.substring(i+1,semicolonIndex);if(entity.length>1&&entity.charAt(0)=='#')
{if(entity.charAt(1)=='x'||entity.charAt(1)=='X')
ch=String.fromCharCode(eval('0'+entity.substring(1)));else
ch=String.fromCharCode(eval(entity.substring(1)));}
else
{switch(entity)
{case'quot':ch=String.fromCharCode(0x0022);break;case'amp':ch=String.fromCharCode(0x0026);break;case'lt':ch=String.fromCharCode(0x003c);break;case'gt':ch=String.fromCharCode(0x003e);break;case'nbsp':ch=String.fromCharCode(0x00a0);break;case'iexcl':ch=String.fromCharCode(0x00a1);break;case'cent':ch=String.fromCharCode(0x00a2);break;case'pound':ch=String.fromCharCode(0x00a3);break;case'curren':ch=String.fromCharCode(0x00a4);break;case'yen':ch=String.fromCharCode(0x00a5);break;case'brvbar':ch=String.fromCharCode(0x00a6);break;case'sect':ch=String.fromCharCode(0x00a7);break;case'uml':ch=String.fromCharCode(0x00a8);break;case'copy':ch=String.fromCharCode(0x00a9);break;case'ordf':ch=String.fromCharCode(0x00aa);break;case'laquo':ch=String.fromCharCode(0x00ab);break;case'not':ch=String.fromCharCode(0x00ac);break;case'shy':ch=String.fromCharCode(0x00ad);break;case'reg':ch=String.fromCharCode(0x00ae);break;case'macr':ch=String.fromCharCode(0x00af);break;case'deg':ch=String.fromCharCode(0x00b0);break;case'plusmn':ch=String.fromCharCode(0x00b1);break;case'sup2':ch=String.fromCharCode(0x00b2);break;case'sup3':ch=String.fromCharCode(0x00b3);break;case'acute':ch=String.fromCharCode(0x00b4);break;case'micro':ch=String.fromCharCode(0x00b5);break;case'para':ch=String.fromCharCode(0x00b6);break;case'middot':ch=String.fromCharCode(0x00b7);break;case'cedil':ch=String.fromCharCode(0x00b8);break;case'sup1':ch=String.fromCharCode(0x00b9);break;case'ordm':ch=String.fromCharCode(0x00ba);break;case'raquo':ch=String.fromCharCode(0x00bb);break;case'frac14':ch=String.fromCharCode(0x00bc);break;case'frac12':ch=String.fromCharCode(0x00bd);break;case'frac34':ch=String.fromCharCode(0x00be);break;case'iquest':ch=String.fromCharCode(0x00bf);break;case'Agrave':ch=String.fromCharCode(0x00c0);break;case'Aacute':ch=String.fromCharCode(0x00c1);break;case'Acirc':ch=String.fromCharCode(0x00c2);break;case'Atilde':ch=String.fromCharCode(0x00c3);break;case'Auml':ch=String.fromCharCode(0x00c4);break;case'Aring':ch=String.fromCharCode(0x00c5);break;case'AElig':ch=String.fromCharCode(0x00c6);break;case'Ccedil':ch=String.fromCharCode(0x00c7);break;case'Egrave':ch=String.fromCharCode(0x00c8);break;case'Eacute':ch=String.fromCharCode(0x00c9);break;case'Ecirc':ch=String.fromCharCode(0x00ca);break;case'Euml':ch=String.fromCharCode(0x00cb);break;case'Igrave':ch=String.fromCharCode(0x00cc);break;case'Iacute':ch=String.fromCharCode(0x00cd);break;case'Icirc':ch=String.fromCharCode(0x00ce);break;case'Iuml':ch=String.fromCharCode(0x00cf);break;case'ETH':ch=String.fromCharCode(0x00d0);break;case'Ntilde':ch=String.fromCharCode(0x00d1);break;case'Ograve':ch=String.fromCharCode(0x00d2);break;case'Oacute':ch=String.fromCharCode(0x00d3);break;case'Ocirc':ch=String.fromCharCode(0x00d4);break;case'Otilde':ch=String.fromCharCode(0x00d5);break;case'Ouml':ch=String.fromCharCode(0x00d6);break;case'times':ch=String.fromCharCode(0x00d7);break;case'Oslash':ch=String.fromCharCode(0x00d8);break;case'Ugrave':ch=String.fromCharCode(0x00d9);break;case'Uacute':ch=String.fromCharCode(0x00da);break;case'Ucirc':ch=String.fromCharCode(0x00db);break;case'Uuml':ch=String.fromCharCode(0x00dc);break;case'Yacute':ch=String.fromCharCode(0x00dd);break;case'THORN':ch=String.fromCharCode(0x00de);break;case'szlig':ch=String.fromCharCode(0x00df);break;case'agrave':ch=String.fromCharCode(0x00e0);break;case'aacute':ch=String.fromCharCode(0x00e1);break;case'acirc':ch=String.fromCharCode(0x00e2);break;case'atilde':ch=String.fromCharCode(0x00e3);break;case'auml':ch=String.fromCharCode(0x00e4);break;case'aring':ch=String.fromCharCode(0x00e5);break;case'aelig':ch=String.fromCharCode(0x00e6);break;case'ccedil':ch=String.fromCharCode(0x00e7);break;case'egrave':ch=String.fromCharCode(0x00e8);break;case'eacute':ch=String.fromCharCode(0x00e9);break;case'ecirc':ch=String.fromCharCode(0x00ea);break;case'euml':ch=String.fromCharCode(0x00eb);break;case'igrave':ch=String.fromCharCode(0x00ec);break;case'iacute':ch=String.fromCharCode(0x00ed);break;case'icirc':ch=String.fromCharCode(0x00ee);break;case'iuml':ch=String.fromCharCode(0x00ef);break;case'eth':ch=String.fromCharCode(0x00f0);break;case'ntilde':ch=String.fromCharCode(0x00f1);break;case'ograve':ch=String.fromCharCode(0x00f2);break;case'oacute':ch=String.fromCharCode(0x00f3);break;case'ocirc':ch=String.fromCharCode(0x00f4);break;case'otilde':ch=String.fromCharCode(0x00f5);break;case'ouml':ch=String.fromCharCode(0x00f6);break;case'divide':ch=String.fromCharCode(0x00f7);break;case'oslash':ch=String.fromCharCode(0x00f8);break;case'ugrave':ch=String.fromCharCode(0x00f9);break;case'uacute':ch=String.fromCharCode(0x00fa);break;case'ucirc':ch=String.fromCharCode(0x00fb);break;case'uuml':ch=String.fromCharCode(0x00fc);break;case'yacute':ch=String.fromCharCode(0x00fd);break;case'thorn':ch=String.fromCharCode(0x00fe);break;case'yuml':ch=String.fromCharCode(0x00ff);break;case'OElig':ch=String.fromCharCode(0x0152);break;case'oelig':ch=String.fromCharCode(0x0153);break;case'Scaron':ch=String.fromCharCode(0x0160);break;case'scaron':ch=String.fromCharCode(0x0161);break;case'Yuml':ch=String.fromCharCode(0x0178);break;case'fnof':ch=String.fromCharCode(0x0192);break;case'circ':ch=String.fromCharCode(0x02c6);break;case'tilde':ch=String.fromCharCode(0x02dc);break;case'Alpha':ch=String.fromCharCode(0x0391);break;case'Beta':ch=String.fromCharCode(0x0392);break;case'Gamma':ch=String.fromCharCode(0x0393);break;case'Delta':ch=String.fromCharCode(0x0394);break;case'Epsilon':ch=String.fromCharCode(0x0395);break;case'Zeta':ch=String.fromCharCode(0x0396);break;case'Eta':ch=String.fromCharCode(0x0397);break;case'Theta':ch=String.fromCharCode(0x0398);break;case'Iota':ch=String.fromCharCode(0x0399);break;case'Kappa':ch=String.fromCharCode(0x039a);break;case'Lambda':ch=String.fromCharCode(0x039b);break;case'Mu':ch=String.fromCharCode(0x039c);break;case'Nu':ch=String.fromCharCode(0x039d);break;case'Xi':ch=String.fromCharCode(0x039e);break;case'Omicron':ch=String.fromCharCode(0x039f);break;case'Pi':ch=String.fromCharCode(0x03a0);break;case'Rho':ch=String.fromCharCode(0x03a1);break;case'Sigma':ch=String.fromCharCode(0x03a3);break;case'Tau':ch=String.fromCharCode(0x03a4);break;case'Upsilon':ch=String.fromCharCode(0x03a5);break;case'Phi':ch=String.fromCharCode(0x03a6);break;case'Chi':ch=String.fromCharCode(0x03a7);break;case'Psi':ch=String.fromCharCode(0x03a8);break;case'Omega':ch=String.fromCharCode(0x03a9);break;case'alpha':ch=String.fromCharCode(0x03b1);break;case'beta':ch=String.fromCharCode(0x03b2);break;case'gamma':ch=String.fromCharCode(0x03b3);break;case'delta':ch=String.fromCharCode(0x03b4);break;case'epsilon':ch=String.fromCharCode(0x03b5);break;case'zeta':ch=String.fromCharCode(0x03b6);break;case'eta':ch=String.fromCharCode(0x03b7);break;case'theta':ch=String.fromCharCode(0x03b8);break;case'iota':ch=String.fromCharCode(0x03b9);break;case'kappa':ch=String.fromCharCode(0x03ba);break;case'lambda':ch=String.fromCharCode(0x03bb);break;case'mu':ch=String.fromCharCode(0x03bc);break;case'nu':ch=String.fromCharCode(0x03bd);break;case'xi':ch=String.fromCharCode(0x03be);break;case'omicron':ch=String.fromCharCode(0x03bf);break;case'pi':ch=String.fromCharCode(0x03c0);break;case'rho':ch=String.fromCharCode(0x03c1);break;case'sigmaf':ch=String.fromCharCode(0x03c2);break;case'sigma':ch=String.fromCharCode(0x03c3);break;case'tau':ch=String.fromCharCode(0x03c4);break;case'upsilon':ch=String.fromCharCode(0x03c5);break;case'phi':ch=String.fromCharCode(0x03c6);break;case'chi':ch=String.fromCharCode(0x03c7);break;case'psi':ch=String.fromCharCode(0x03c8);break;case'omega':ch=String.fromCharCode(0x03c9);break;case'thetasym':ch=String.fromCharCode(0x03d1);break;case'upsih':ch=String.fromCharCode(0x03d2);break;case'piv':ch=String.fromCharCode(0x03d6);break;case'ensp':ch=String.fromCharCode(0x2002);break;case'emsp':ch=String.fromCharCode(0x2003);break;case'thinsp':ch=String.fromCharCode(0x2009);break;case'zwnj':ch=String.fromCharCode(0x200c);break;case'zwj':ch=String.fromCharCode(0x200d);break;case'lrm':ch=String.fromCharCode(0x200e);break;case'rlm':ch=String.fromCharCode(0x200f);break;case'ndash':ch=String.fromCharCode(0x2013);break;case'mdash':ch=String.fromCharCode(0x2014);break;case'lsquo':ch=String.fromCharCode(0x2018);break;case'rsquo':ch=String.fromCharCode(0x2019);break;case'sbquo':ch=String.fromCharCode(0x201a);break;case'ldquo':ch=String.fromCharCode(0x201c);break;case'rdquo':ch=String.fromCharCode(0x201d);break;case'bdquo':ch=String.fromCharCode(0x201e);break;case'dagger':ch=String.fromCharCode(0x2020);break;case'Dagger':ch=String.fromCharCode(0x2021);break;case'bull':ch=String.fromCharCode(0x2022);break;case'hellip':ch=String.fromCharCode(0x2026);break;case'permil':ch=String.fromCharCode(0x2030);break;case'prime':ch=String.fromCharCode(0x2032);break;case'Prime':ch=String.fromCharCode(0x2033);break;case'lsaquo':ch=String.fromCharCode(0x2039);break;case'rsaquo':ch=String.fromCharCode(0x203a);break;case'oline':ch=String.fromCharCode(0x203e);break;case'frasl':ch=String.fromCharCode(0x2044);break;case'euro':ch=String.fromCharCode(0x20ac);break;case'image':ch=String.fromCharCode(0x2111);break;case'weierp':ch=String.fromCharCode(0x2118);break;case'real':ch=String.fromCharCode(0x211c);break;case'trade':ch=String.fromCharCode(0x2122);break;case'alefsym':ch=String.fromCharCode(0x2135);break;case'larr':ch=String.fromCharCode(0x2190);break;case'uarr':ch=String.fromCharCode(0x2191);break;case'rarr':ch=String.fromCharCode(0x2192);break;case'darr':ch=String.fromCharCode(0x2193);break;case'harr':ch=String.fromCharCode(0x2194);break;case'crarr':ch=String.fromCharCode(0x21b5);break;case'lArr':ch=String.fromCharCode(0x21d0);break;case'uArr':ch=String.fromCharCode(0x21d1);break;case'rArr':ch=String.fromCharCode(0x21d2);break;case'dArr':ch=String.fromCharCode(0x21d3);break;case'hArr':ch=String.fromCharCode(0x21d4);break;case'forall':ch=String.fromCharCode(0x2200);break;case'part':ch=String.fromCharCode(0x2202);break;case'exist':ch=String.fromCharCode(0x2203);break;case'empty':ch=String.fromCharCode(0x2205);break;case'nabla':ch=String.fromCharCode(0x2207);break;case'isin':ch=String.fromCharCode(0x2208);break;case'notin':ch=String.fromCharCode(0x2209);break;case'ni':ch=String.fromCharCode(0x220b);break;case'prod':ch=String.fromCharCode(0x220f);break;case'sum':ch=String.fromCharCode(0x2211);break;case'minus':ch=String.fromCharCode(0x2212);break;case'lowast':ch=String.fromCharCode(0x2217);break;case'radic':ch=String.fromCharCode(0x221a);break;case'prop':ch=String.fromCharCode(0x221d);break;case'infin':ch=String.fromCharCode(0x221e);break;case'ang':ch=String.fromCharCode(0x2220);break;case'and':ch=String.fromCharCode(0x2227);break;case'or':ch=String.fromCharCode(0x2228);break;case'cap':ch=String.fromCharCode(0x2229);break;case'cup':ch=String.fromCharCode(0x222a);break;case'int':ch=String.fromCharCode(0x222b);break;case'there4':ch=String.fromCharCode(0x2234);break;case'sim':ch=String.fromCharCode(0x223c);break;case'cong':ch=String.fromCharCode(0x2245);break;case'asymp':ch=String.fromCharCode(0x2248);break;case'ne':ch=String.fromCharCode(0x2260);break;case'equiv':ch=String.fromCharCode(0x2261);break;case'le':ch=String.fromCharCode(0x2264);break;case'ge':ch=String.fromCharCode(0x2265);break;case'sub':ch=String.fromCharCode(0x2282);break;case'sup':ch=String.fromCharCode(0x2283);break;case'nsub':ch=String.fromCharCode(0x2284);break;case'sube':ch=String.fromCharCode(0x2286);break;case'supe':ch=String.fromCharCode(0x2287);break;case'oplus':ch=String.fromCharCode(0x2295);break;case'otimes':ch=String.fromCharCode(0x2297);break;case'perp':ch=String.fromCharCode(0x22a5);break;case'sdot':ch=String.fromCharCode(0x22c5);break;case'lceil':ch=String.fromCharCode(0x2308);break;case'rceil':ch=String.fromCharCode(0x2309);break;case'lfloor':ch=String.fromCharCode(0x230a);break;case'rfloor':ch=String.fromCharCode(0x230b);break;case'lang':ch=String.fromCharCode(0x2329);break;case'rang':ch=String.fromCharCode(0x232a);break;case'loz':ch=String.fromCharCode(0x25ca);break;case'spades':ch=String.fromCharCode(0x2660);break;case'clubs':ch=String.fromCharCode(0x2663);break;case'hearts':ch=String.fromCharCode(0x2665);break;case'diams':ch=String.fromCharCode(0x2666);break;default:ch='';break;}}
i=semicolonIndex;}}
out+=ch;}
return out;}
function HtmlEncode(str)
{if(str==null)return;str=str.replace(/&/g,"&amp;");str=str.replace(/\"/g,"&quot;");str=str.replace(/</g,"&lt;");str=str.replace(/>/g,"&gt;");return str;}
function setMenuPosition(event,menu){}
function handleAjaxRedirection(respDetails,o)
{var ret=false;try
{if(typeof o!='undefined')
{eval(o.responseText);}
if(typeof respDetails.__l!='undefined')
{document.location.href=respDetails.__l;ret=true;}}catch(e){};return ret;}
var copyCandidate=function(jobItem,folderItem,source)
{var source=source||'';try
{var formObject=$('searchParams');YAHOO.util.Connect.setForm(formObject)
hideMessageBoxes();showModalPopup('processingPopup',200,100,'yes');var callback={success:function(o){try
{if(o.responseText!=null)
{var jsonData=YAHOO.lang.JSON.parse(o.responseText);if(jsonData.state=='S')
{showSuccessMessage(jsonData.msg);}
else
{showErrorMessage(jsonData.msg);}
hideModalPopup();scroll(0,0);}}
catch(e)
{var msg='<p>Error while copying candidate(s): Failed to copy some or all of the candidates.</p>';showErrorMessage(msg);hideModalPopup();scroll(0,0);}},failure:function(o){var msg='<p>Error while copying candidate(s): Failed to copy some or all of the candidates.</p>';showErrorMessage(msg);hideModalPopup();scroll(0,0);}}
var _priCrumb=generate_crumbed_uri(RDT_ROOT_PHP_PATH+"/copy_candidates.php");var _priPostParams='';if(typeof folderItem!==undefined&&folderItem!='')
{_priPostParams+="COPY_FOLDER_ID="+folderItem;}
else if(typeof jobItem!==undefined&&jobItem!='')
{_priPostParams+="COPY_JOB_ID="+jobItem;}
if(source=='jcp')
{_priPostParams+="&isajax=n";var _priActionPage=_priCrumb+'&'+_priPostParams;postToPage(_priActionPage,'searchParams');}
else
{_priPostParams+="&isajax=y"
YAHOO.util.Connect.asyncRequest('POST',_priCrumb,callback,_priPostParams);}}
catch(e)
{hideModalPopup();return;}}