function confirm(message,callback,what,embed,search_id,response_volfirst,researcher_id,irb,temp,newid,netwell) { if(what == "sv"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_saveme.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");",8000); } else if(what == "currentnewsletter"){ domodal(850,0,message,0); $j("#cboxLoadedContent").load("https://www.researchmatch.org/cm__/index.php/site/newsletters/"+callback+"/"); } else if(what == "partnercampaign"){ domodal(850,1,"Manage a campaign for this partner:",0); $j("#cboxLoadedContent").load("_partnercampaigns_create.php?preview="+callback); } else if(what == "liaisoncampaign"){ domodal(850,0,"Manage this campaign:"); $j("#cboxLoadedContent").load("_liaisoncampaigns_create.php?preview="+callback); } else if(what == "createlcampaign"){ domodal(850,0,"Create a campaign:"); $j("#cboxLoadedContent").load("_liaisoncampaigns_create.php?w=lia&preview=create"); } else if(what == "campaign_homeimg"){ domodal(850,1,"Previewing your uploaded banner image on the home page:",0); $j("#cboxLoadedContent").load("index_home_preview.php?preview="+callback); } else if(what == "campaign_headerimg"){ domodal(850,1,"Previewing your uploaded banner image on the volunteer page:",0); $j("#cboxLoadedContent").load("index_volunteer_preview.php?preview="+callback); } else if(what == "getpws"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_sendpw.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");",8000); } else if(what == "thenewsletter"){ domodal(450,200,"Thank you!",0); $j("#cboxLoadedContent").load("/_newsletter.php?se="+$j('#searchnewsletteri').val()); $j("#searchnewsletteri").val("").css("background","url(/images/_footer_imgs_28.png) no-repeat scroll 7px 50% white"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");",8000); } else if(what == "kiosksignup"){ domodal(450,200,"Thank you for signing up with ResearchMatch! ",0); $j("#cboxLoadedContent").html(""); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");",8000); } else if(what == "removepartner"){ domodal(450,250,"",0); $j("#cboxLoadedContent").load("_confirmremovepartner.php?id="+callback); } else if(what == "removesubregistry"){ domodal(450,250,"",0); $j("#cboxLoadedContent").load("_confirmremovesubregistry.php",{ subreg_id: callback }); } else if(what == "prodsubregistry"){ domodal(450,250,"",0); $j("#cboxLoadedContent").load("_confirmprodsubregistry.php",{ subreg_id: callback }); } else if(what == "removeliaison"){ domodal(450,250,"",0); $j("#cboxLoadedContent").load("_confirmremoveliaison.php?id="+callback); } else if(what == "removedomain"){ domodal(450,250,"",0); $j("#cboxLoadedContent").load("_confirmremovedomain.php?id="+callback); } else if(what == "emptyval"){ domodal(450,250,"",0); $j("#cboxLoadedContent").load("_emptyval.php"); } else if(what == "notifyprofanity"){ domodal(450,250,"",0); $j("#cboxLoadedContent").load("_notifyprofanity.php"); } else if(what == "notifycui"){ domodal(450,250,"",0); $j("#cboxLoadedContent").load("_notifycui.php"); } else if(what == "notifytype"){ domodal(450,250,"",0); $j("#cboxLoadedContent").load("_notifytype.php"); } else if(what == "partnercondition"){ domodal(650,1,"Find Partner [related] conditions:",0); $j("#cboxLoadedContent").load("_searchforconditions.php",{ id: callback, vol_id : callback }); } else if(what == "subregistrycondition"){ domodal(650,1,"Find Subregistry [related] conditions:",0); $j("#cboxLoadedContent").load("_subregistryconditions.php",{ subreg_id : callback, origin_page : message }); } else if(what == "addvolcondition"){ domodal(650,1,"Add or modify conditions:",0); $j("#cboxLoadedContent").load("_addvolconditions.php",{ origin_page : message }); } else if(what == "checkingrefs"){ domodal(650,1,"Sorry, but the follow domain(s) are already being used:",0); $j("#cboxLoadedContent").html(message); } else if(what == "siteinsupd"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_siteinsupd.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");",8000); } else if(what == "researchregview"){ domodal(850,0,"Site Instructions",0); $j("#cboxLoadedContent").load("../_insinstructions.php"); } else if(what == "savesearchquest"){ domodal(450,1,"Save your search?",0); $j("#cboxLoadedContent").load("_savesearchquest.php"); } else if(what == "researchreg"){ domodal(850,1,"Researcher Registration",0); $j("#cboxLoadedContent").load("../_researchreg.php?ty="+message+"&inst="+callback); } else if(what == "checkemail"){ domodal(850,1,"",0); $j("#cboxLoadedContent").load("_researchersendconfmessage.php",{ study_res_id: callback, msg:message }); } else if(what == "researchregvol"){ domodal(850,1,"Researcher Registration",0); $j("#cboxLoadedContent").load("../_researchregvol.php?inst="+callback); } else if(what == "viewresearcherdetails"){ domodal(850,1,"View Researcher Details",0); $j("#cboxLoadedContent").load("_viewresearcher_details.php",{ nr: message, gId: callback, study_res_id: embed }); } else if(what == "doyescontacts"){ domodal(450,1,"Researcher to Volunteer Contact Status:",0); $j("#cboxLoadedContent").load("../researchers/_doyescontacts.php"); } else if(what == "searchvols_temp"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_searchvols.php"); } else if(what == "removeaccess"){ domodal(450,1,"Remove Access?",0); $j("#cboxLoadedContent").load("_removeaccess.php",{ usr: callback, user_id :embed, study_id:search_id, callback: response_volfirst }); } else if(what == "bannerdisclaimer"){ domodal(450,1,"Are you sure this banner images is valid?",0); $j("#cboxLoadedContent").load("_bannerdisclaimer.php"); } else if(what == "removeauto"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("_removeauto.php",{ sauto_id: callback }); } else if(what == "campaignexample"){ domodal(650,1,"Campaign Example",0); $j("#cboxLoadedContent").html(""); } else if(what == "contactmessage"){ domodal(650,1,"Contact Message Activity",0); $j("#cboxLoadedContent").load("../partners/_viewmessage_details.php", { message_id: callback }); } else if(what == "searchsaved"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("_searchsaved.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");",8000); } else if(what == "removeself"){ domodal(450,1,"Remove yourself from this study?",0); $j("#cboxLoadedContent").load("_removeself.php",{ study_id: callback, user_id : message, irb_number: embed }); } else if(what == "disablestudy"){ domodal(450,1,"Disable this study?",0); $j("#cboxLoadedContent").load("_disablestudy.php",{ study_id: callback, user_id : message, irb_number: embed, status: search_id }); } else if(what == "closestudy"){ domodal(450,1,"Close this study?",0); $j("#cboxLoadedContent").load("_closestudy.php",{ study_id: callback, user_id : message }); } else if(what == "addstudyraf"){ domodal(450,1,"Add New Study",0); $j("#cboxLoadedContent").load("_addstudymessage.php",{ inst_id: search_id, user_id :embed, action:'curruser' }); } else if(what == "redcapcheck"){ domodal(450,1,"Confirm REDCap Survey",0); $j("#cboxLoadedContent").load("_redcapcheck.php",{ study_id: callback }); } else if(what == "explainStatus"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("_explainStatus.php"); } else if(what == "contactType"){ domodal(500,1,"",0); $j("#cboxLoadedContent").load("../_text_contacttype.php"); } else if(what == "wstudyType"){ domodal(500,1,"",0); $j("#cboxLoadedContent").load("../_text_wstudytype.php"); } else if(what == "recruitmentPop"){ domodal(500,1,"",0); $j("#cboxLoadedContent").load("../_text_recruitmentpopulation.php"); } else if(what == "israreDisease"){ domodal(500,1,"",0); $j("#cboxLoadedContent").load("../_text_rarediseases.php"); } else if(what == "ispreScreening"){ domodal(500,1,"",0); $j("#cboxLoadedContent").load("../_text_prescreening.php"); } else if(what == "irbType"){ domodal(500,1,"",0); $j("#cboxLoadedContent").load("../_text_irbtype.php"); } else if(what == "descautoContact"){ domodal(500,1,"",0); $j("#cboxLoadedContent").load("../_text_whatisautocontact.php"); } else if(what == "explainNCT"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("_explainNCT.php"); } else if(what == "explainREDCap"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("_explainREDCap.php"); } else if(what == "searchvolsloading"){ $j("#searchcitystate").fadeOut("fast"); domodal(650,1,"Specific search conditions found from multiple sources.....Loading Now",0); $j("#cboxLoadedContent").load("/_loading.php"); } else if(what == "showVolSearchConds"){ domodal(650,1,"Specific search conditions found....."); $j("#cboxLoadedContent").load("/_showVolSearchResults.php",{ volnum: message, ctnumcity :callback, google_res :embed, condition :search_id, ctnumstate :response_volfirst, ctnumus :researcher_id, city: irb, state: temp, sm_id: newid, netwell:netwell }); } else if(what == "s_roar"){ domodal(650,1,""); $j("#cboxLoadedContent").load("/campaigns/_roar.php",{ volnum: message, ctnumcity :callback, google_res :embed, condition :search_id, ctnumstate :response_volfirst, ctnumus :researcher_id, city: irb, state: temp, sm_id: newid, netwell:netwell }); $j("#cboxLoadedContent").css("margin-top","10px"); } else if(what == "s_iocdf"){ domodal(650,1,""); $j("#cboxLoadedContent").load("/campaigns/_iocdf.php",{ volnum: message, ctnumcity :callback, google_res :embed, condition :search_id, ctnumstate :response_volfirst, ctnumus :researcher_id, city: irb, state: temp, sm_id: newid, netwell:netwell }); $j("#cboxLoadedContent").css("margin-top","10px"); } else if(what == "s_care"){ domodal(650,1,""); $j("#cboxLoadedContent").load("/campaigns/_care.php",{ volnum: message, ctnumcity :callback, google_res :embed, condition :search_id, ctnumstate :response_volfirst, ctnumus :researcher_id, city: irb, state: temp, sm_id: newid, netwell:netwell }); $j("#cboxLoadedContent").css("margin-top","10px"); } else if(what == "s_ccfa"){ domodal(650,1,""); $j("#cboxLoadedContent").load("/campaigns/_ccfa.php",{ volnum: message, ctnumcity :callback, google_res :embed, condition :search_id, ctnumstate :response_volfirst, ctnumus :researcher_id, city: irb, state: temp, sm_id: newid, netwell:netwell }); $j("#cboxLoadedContent").css("margin-top","10px"); } else if(what == "volsearchcrit"){ domodal(850,1,"",0); $j("#cboxLoadedContent").load("index_gsearch.php"); } else if(what == "prt"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("_prt.php",{ logo: message, msg : callback }); } else if(what == "explainLiaisonStatus"){ domodal(650,1,"Information regarding the researcher request.",0); $j("#cboxLoadedContent").load("_explainLiaisonStatus.php"); } else if(what == "explainSubreg"){ domodal(650,300,"Why do I see these questions?",0); $j("#cboxLoadedContent").load("_explainSubreg.php",{ vol_id: message, subreg_id: callback }); } else if(what == "editexpiration"){ domodal(450,1,"Edit Expiration Date?",0); $j("#cboxLoadedContent").load("_editexpiration.php",{ usr: callback, expiration: embed, confirmed :callback, study_id:message, callback: response_volfirst }); } else if(what == "needfirefox"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("/_needfirefox.php"); } else if(what == "resend"){ domodal(450,1,"Resend the re-authorization message to the PI?",0); $j("#cboxLoadedContent").load("_resendconfirm.php",{ study_res_id: callback }); } else if(what == "remove"){ domodal(450,1,"Remove Recruitment Request?",0); $j("#cboxLoadedContent").load("_removeconfirm.php",{ study_res_id: callback }); } else if(what == "resendemail"){ domodal(450,1,"Resend the email?",0); $j("#cboxLoadedContent").load("_resendconfirmself.php",{ study_res_id: callback }); } else if(what == "addstudy"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../researchers/_addstudy.php"); } else if(what == "upload"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_uploadme.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");",8000); } else if(what == "uploadnewletter"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_uploadme.php"); } else if(what == "send"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_sendme.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='"+embed+"';",8000); } else if(what == "nosend"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_nosendme.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");",4000); } else if(what == "tellid"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_tellid.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");",8000); } else if(what == "sendrem"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_remindme.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/volunteers/index_remindself.php';",8000); } else if(what == "researcherinterest"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_researcherinterest.php"); $j.ajax({type:"POST", url:"/_researcherrequest.php",data:these,success:function(data){}}); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/';",8000); } else if(what == "researcherapproval"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_researcherapprovalmsg.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/researchers/';",8000); } else if(what == "noinst"){ domodal(650,1,"Don't see your institution?",0); $j("#cboxLoadedContent").load("../_noinst.php"); } else if(what == "notaccept"){ domodal(450,1,"Please type in ACCEPT",0); $j("#cboxLoadedContent").load("_notaccept.php"); } else if(what == "contactvol"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_contactvol.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/researchers/index_home.php';",8000); } else if(what == "alreadydisease"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_alreadydisease.php"); } else if(what == "alreadymedication"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_alreadymedication.php"); } else if(what == "studyexists"){ domodal(650,470,"Existing Study Found",0); $j("#cboxLoadedContent").load("_showmatch.php",{ study_id: callback, user_id: embed, role: search_id, inst_id :message, action: response_volfirst }); } else if(what == "std_agreement_vol"){ domodal(650,470,"Current Volunteer Agreement"); $j("#cboxLoadedContent").load("../cm__/index.php/site/site/331"); } else if(what == "agreement_vol"){ domodal(650,470,"Volunteer Agreement"); $j("#cboxLoadedContent").load("../_agreement_vols.php", { callback: callback, learnabout: embed, rmcode: search_id, learnaboutother: response_volfirst }); } else if(what == "agreementvol"){ domodal(650,470,"Volunteer Agreement"); $j("#cboxLoadedContent").load("../_agreementvol.php", { callback: callback, learnabout: embed, rmcode: search_id, learnaboutother: response_volfirst }); } else if(what == "extclintrial"){ domodal(650,270,"Going to external site"); $j("#cboxLoadedContent").load("_agreeclintrial.php", { user_id: embed, cui: search_id, cttype: response_volfirst, str: researcher_id }); } else if(what == "extclintrialext"){ domodal(650,270,"Going to external site"); $j("#cboxLoadedContent").load("_agreeclintrialext.php", { user_id: embed, pt_id: search_id, ptlink: response_volfirst }); } else if(what == "roarlink"){ domodal(650,270,"Going to external site"); $j("#cboxLoadedContent").load("_agreeroarlink.php", { ptlink: embed, pt_id: search_id }); } else if(what == "carelink"){ domodal(650,270,"Going to external site"); $j("#cboxLoadedContent").load("_agreecarelink.php", { ptlink: embed, pt_id: search_id }); } else if(what == "ccfalink"){ domodal(650,270,"Going to external site"); $j("#cboxLoadedContent").load("_agreeccfalink.php", { ptlink: embed, pt_id: search_id }); } else if(what == "extclintrialextmulti"){ domodal(650,270,"Going to external site"); $j("#cboxLoadedContent").load("_agreeclintrialextmulti.php", { user_id: embed, inst_id: search_id }); } else if(what == "extpartner"){ domodal(650,270,"Going to external site"); $j("#cboxLoadedContent").load("_agreepartnerext.php", { user_id: embed, pt_id: search_id, ptlink: response_volfirst, cui: researcher_id }); } else if(what == "extcondlink"){ domodal(650,270,"Going to external site"); $j("#cboxLoadedContent").load("/_extcondlink.php", { user_id: embed, sm_id: search_id, fk_type: response_volfirst, fk_id: researcher_id, ptlink: irb, cui: temp }); } else if(what == "instructions_cond"){ domodal(650,600,"Instructions for Conditions",0); $j("#cboxLoadedContent").load("_instructions_cond.php", { callback: callback, learnabout: embed }); } else if(what == "instructions_med"){ domodal(650,600,"Instructions for Medications",0); $j("#cboxLoadedContent").load("_instructions_med.php", { callback: callback, learnabout: embed }); } else if(what == "irbLangReady"){ domodal(650,1,"Ready to contact Volunteers?",0); $j("#cboxLoadedContent").load("../_irb_lang_ready.php", { callback: callback, learnabout: embed }); } else if(what == "showidentifiers"){ domodal(650,1,"Identifier Found:",0); $j("#cboxLoadedContent").load("_showidentifiers.php", { message: message }); } else if(what == "showregistry"){ domodal(650,1,"Registry or Database detected:",0); $j("#cboxLoadedContent").load("_showregistry.php", { message: message }); } else if(what == "showblank"){ domodal(650,1,"Identifier Found:",0); $j("#cboxLoadedContent").load("_showblank.php", { message: message }); } else if(what == "confFeasibility"){ domodal(650,1,"Ready to contact Volunteers?",0); $j("#cboxLoadedContent").load("../_confFeasibility.php", { callback: callback, learnabout: embed }); } else if(what == "autosearch"){ domodal(650,1,"Ready to contact Volunteers?",0); $j("#cboxLoadedContent").load("_autosearchapply.php", { user_id: callback }); } else if(what == "createautosearch"){ domodal(650,1,"View search query details:",0); $j("#cboxLoadedContent").load("autosearch.php", { searchlog_id: callback, user_id: message }); } else if(what == "showmessage"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("showmessage.php", { message_id: callback, user_id: message }); } else if(what == "vvdetails"){ domodal(650,1,"Volunteer Details",0); $j("#cboxLoadedContent").load("_healthinfo.php", { id: callback, user_id: embed }); } else if(what == "editextendaccess"){ domodal(850,1,"Edit Study/Extend Access",0); $j("#cboxLoadedContent").css("width","700px").load("_extend_study.php", { user_id: embed, inst_id: search_id, study_id: response_volfirst, action: 'editstudy', role: callback }); } else if (what == "res_cond_select"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("../researchers/search_conditions.php?"+callback); } else if(what == "researcher_dua"){ domodal(850,1,"Researcher Acknowledgement Form",0); $j("#cboxLoadedContent").load("../_researcher_dua.php", { callback: callback, user_id:embed }); } else if(what == "givereason"){ domodal(450,1,"Resubmit to Liaison with reason:",0); $j("#cboxLoadedContent").load("_text_givereason.php", { uid: callback, sid: embed }); } else if(what == "showreason"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("_text_showreason.php", { uid: callback, sid: embed, nr: search_id, isnew: response_volfirst, study_res_id: researcher_id }); } else if(what == "feasibility"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_feasibility.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/researchers/index_home.php';",8000); } else if(what == "coordupdate"){ domodal(450,250,"",0); $j("#cboxLoadedContent").load(message+".php",{ study_id: callback, action: embed }); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/coordinator/index_home.php';",8000); } else if(what == "recruitment"){ domodal(450,250,"",0); $j("#cboxLoadedContent").load(message+".php",{ study_id: callback, action: embed }); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/researchers/index_home.php';",8000); } else if(what == "nowhy"){ domodal(450,1,"",1); $j("#cboxLoadedContent").load("/_nowhy.php"); //setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/';",8000); } else if(what == "nothankyou"){ domodal(450,1,"",1); $j("#cboxLoadedContent").load("/_nothankyou.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/';",5000); } else if(what == "confsend"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("/_nowhy.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/';",8000); } else if(what == "remove_vol"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("_remove_vol.php", { user_id: message, vol_id: callback, role: embed }); } else if(what == "rename_profile"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("_rename_profile.php", { user_id: message }); } else if(what == "remove_incompletevol"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("_remove_incompletevol.php", { user_id: message, vol_id: callback, role: embed }); } else if(what == "remove_user"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("__removeuser.php", { user_id: message }); } else if(what == "volsubidea"){ domodal(650,1,"Share an Idea with ResearchMatch!",0); $j("#cboxLoadedContent").load("_volsubidea.php", { user_id: message, cui: callback, myvoice: embed, editcont: search_id }); } else if(what == "showvolidea"){ domodal(850,1,"",0); $j("#cboxLoadedContent").load("_showvolidea.php", { cui: message, myvoice: embed }); } else if(what == "thankyouvoice"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_thankyouvoice.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");",8000); } else if(what == "instispartner"){ domodal(850,1,"",0); $j("#cboxLoadedContent").load("_instisapartner.php", { inst_id: message }); setTimeout("$j.colorbox.close();window.location='../researchers/register.php'",8000); } else if(what == "processing"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_processingvoice.php"); } else if(what == "remove_volreup"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("_remove_volreup.php", { user_id: message, vol_id: callback, role: embed }); } else if(what == "remove_vol_reason"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("_remove_vol_reasons.php", { existstatus: message, vol_id: callback, role: embed }); } else if(what == "remove_volhash"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("_remove_volhashreasons.php", { existstatus: message, vol_id: callback, role: embed }); } else if(what == "remove_vol_reasonreup"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("_remove_vol_reasonsreup.php", { existstatus: message, vol_id: callback, role: embed }); } else if(what == "liaisonext"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("_liaisonext.php", { user_id: message, vol_id: callback, role: embed }); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");",8000); $j("#ftype").attr("src","/images/"+message+".gif"); setTimeout("$j(\"#fuploaded\").fadeIn(\"fast\");",3300); setTimeout("$j(\"#fuploaded\").fadeOut(\"slow\");",3800); } else if(what == "liaisonirbletter"){ domodal(450,1,"Upload New IRB Approval Letter",0); $j("#cboxLoadedContent").load("_uploadirbletter.php", { study_id: callback, user_id: message }); } else if(what == "analyzethis"){ domodal(450,1,"Analyze Response Data",0); $j("#cboxLoadedContent").load("_analyzethis.php", { studyid: embed }); } else if(what == "thiserrormsg"){ domodal(450,1,"Error message",0); $j("#cboxLoadedContent").load("../_thiserrormsg.php", { thiserrormsg: embed }); } else if(what == "loading"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("/_loading.php"); } else if(what == "savesearch"){ domodal(450,1,"Save this search:",0); $j("#cboxLoadedContent").load("_savesearch.php", { searchlog_id: callback, user_id: message, savesearch: embed }); } else if(what == "savesearchapply"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("_savesearchapply.php", { user_id: callback }); } else if(what == "exportcontact"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("../_exportcontacts.php"); } else if(what == "add_vol"){ domodal(650,1,"Volunteer Agreement",0); $j("#cboxLoadedContent").load("_add_guardee_vol.php", { user_id: message, ut: callback, action: embed }); } else if(what == "start_signup"){ domodal(650,1,"Before you get started, remember:"); $j("#cboxLoadedContent").load("_start_signup.php", { }); } else if(what == "finish_signup"){ domodal(750,1,"Thank you! Now, sit back, relax, and let ResearchMatch do the work for you!"); $j("#cboxLoadedContent").load("_finish_signup.php", { }); } else if(what == "healthinfo"){ domodal(650,1,"Health Information",0); $j("#cboxLoadedContent").load("_yesresp_healthinfo.php", { any: message, ut: callback, id: callback }); } else if(what == "contactinfo"){ domodal(450,1,"Contact Information",0); $j("#cboxLoadedContent").load("_yesresp_contactinfo.php", { any: message, ut: callback, id: callback }); } else if(what == "getConditions"){ domodal(650,1,"Select Volunteer Conditions",0); $j("#cboxLoadedContent").load("search_autocompleteCond_rela.php",{ queryString: callback, queryFor: message }); } else if(what == "getHyphoConditions"){ domodal(650,1,"Select Volunteer Conditions",0); $j("#cboxLoadedContent").load("hypho_autocompleteCond_rela.php",{ queryString: callback, queryFor: message }); } else if(what == "getMedications"){ domodal(650,1,"Select Volunteer Medications",0); $j("#cboxLoadedContent").load("search_autocompleteMed_rela.php",{ queryString: callback, queryFor: message }); } else if(what == "volunteercontact_pre"){ $j.colorbox.close(); these = "&message_id="+message; if(callback=="1"){ $j.ajax({type:"POST", url:"__contact_qc.php",data:these,success:function(data){}}); } } else if(what == "contactdisplay"){ domodal(450,1,"Contact Volunteers:",0); $j("#cboxLoadedContent").load("../_contactvolnow.php", { contactnow: message, contactpro: callback }); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/researchers/index_home.php';",6000); } else if(what == "autocontactdate"){ domodal(650,1,"",0); $j("#cboxLoadedContent").load("_autocontactdate.php", { message_id: message, searchlog_id: callback, user_id: embed }); } else if(what == "sendcheckemail"){ these = "&msg="+message; $j.ajax({type:"POST", url:"__researcher_confirmemail.php",data:these,success:function(data){}}); } else if(what == "contactus"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("../_contactus.php"); var thecomment = $j("#comments").val(); thecomment = thecomment.replace(/'/g,"`"); $j.ajax({type:"POST", url:"/index_thankyou_contact.php",data:embed+"&comments="+thecomment+"&type="+$j("#type").val(),success:function(data){}}); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/';",8000); } else if(what == "sessiontimeout"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("/_timeout.php"); } else if(what == "getpassword"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("_thankyou_password.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/login/?w=error&logout=1';",14000); } else if(what == "rstpassword"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("_thankyou_password.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");",5000); } else if(what == "getemail"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("_thankyou_email.php"); setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/login/?w=error&logout=1';",14000); } else if(what == "changepass"){ domodal(450,1,"",0); $j("#cboxLoadedContent").load("_thankyou_changepass.php"); if (callback =='') callback = "login"; setTimeout("$j.colorbox.close();$j(\"#cboxLoadedContent\").html(\"\");window.location='/"+callback+"/';",8000); } else { $j("#modalheaderimg").css("background-image","url(/scripts/confirm/img/confirm/selectdisease.png)"); $j("#modalclosebutton").html(""); selCnds="&"; $j("#selected_conditions").children().each(function(){selCnds=selCnds+this.id+"=1&"}); disease="../_sel_disease.php?dis="+message.replace(/ /g,"%20")+selCnds; $j("#cboxLoadedContent").load(disease); } if (typeof ga == 'function') { ga('send', 'pageview', '__modal_'+what); } } domodal=function(cboxWidth,cboxHeight,cboxTitle,cboxCloseButton){ cboxWidth = cboxWidth+"px"; if(cboxCloseButton == 0){$j("#cboxClose").css("display","none");} if(cboxHeight == 0){cboxHeight = "90%";} else if(cboxHeight == 1){cboxHeight = ""; if($j('#cboxLoadedContent').html() != ""){setTimeout("$j.colorbox.resize();",2000);} else setTimeout("$j.colorbox.resize();",2000);} else cboxHeight = cboxHeight+"px"; $j.colorbox({title:cboxTitle,width:cboxWidth, height:cboxHeight, opacity:0.5,overlayClose:false,html:"",fixed:true,onClosed:function(){$j("#cboxClose").css("display","block");},onComplete:function(){if(cboxTitle!=""){Cufon.replace('#cboxTitle',{fontFamily:'rw'});}}}); // autoadjust height based on content $j("#colorbox").css("display","block"); }