var VacanciesAreOnThisPage = true EmbedOK = true function centerWin(zwidth,zheight){ var winHeight var winWidth winHeight = screen.availHeight winWidth = screen.width if (zwidth > winWidth){zwidth=winWidth} if (zheight > winHeight){zheight=winHeight} zleft = parseInt((winWidth/2)-(zwidth/2)) if (zleft < 10){zleft = 0} ztop = parseInt((winHeight/2)-(zheight/2)) if (ztop < 25){ztop = 0} var x = "width=" + zwidth + ",height=" + zheight + ",left=" + zleft + ",top=" + ztop return x } function applyFor(posJobCode,posFirstChoice,posSpecialty){ var openwindow = false if (document.layers){ alert("Please go back and then click 'Start an Application' to apply for this position.") return false; } var OpenWin = true try { if (typeof self.opener.updateApp == "boolean"){ OpenWin = false } } catch (e) { OpenWin = true } if (OpenWin){ var applyFor = window.open("https://www.generalasp.com/scook/onlineapp/0applyFor.asp?posJobCodes=" + posJobCode + "&posFirstChoice=" + posFirstChoice + "&posSpecialty=" + posSpecialty,"applyFor","location=no,resizable=yes,scrollbars=yes," + centerWin(635,430)) applyFor.focus() } else { window.opener.location = "javascript: applyFor('" + posJobCode + "','" + posFirstChoice + "','" + posSpecialty + "')" self.close() } } function oldWay(){ if (opener == null){ var applyFor = window.open("https://www.generalasp.com/scook/onlineapp/0applyFor.asp?posJobCodes=" + posJobCode + "&posFirstChoice=" + posFirstChoice + "&posSpecialty=" + posSpecialty,"applyFor","location=no,resizable=yes,scrollbars=yes," + centerWin(635,430)) applyFor.focus() }else{ if (typeof self.opener == "undefined"){ var applyFor = window.open("https://www.generalasp.com/scook/onlineapp/0applyFor.asp?posJobCodes=" + posJobCode + "&posFirstChoice=" + posFirstChoice + "&posSpecialty=" + posSpecialty,"applyFor","location=no,resizable=yes,scrollbars=yes," + centerWin(635,430)) applyFor.focus() }else{ if (typeof self.opener.updateApp == "boolean"){ window.opener.location = "javascript: applyFor('" + posJobCode + "','" + posFirstChoice + "','" + posSpecialty + "')" self.close() }else{ var applyFor = window.open("https://www.generalasp.com/scook/onlineapp/0applyFor.asp?posJobCodes=" + posJobCode + "&posFirstChoice=" + posFirstChoice + "&posSpecialty=" + posSpecialty,"applyFor","location=no,resizable=yes,scrollbars=yes," + centerWin(635,430)) applyFor.focus() } } } } function old_applyFor(posJobCode,posFirstChoice,posSpecialty){ var openwindow = false if (typeof self.opener == "undefined"){ var applyFor = window.open("https://www.generalasp.com/scook/onlineapp/0applyFor.asp?posJobCodes=" + posJobCode + "&posFirstChoice=" + posFirstChoice + "&posSpecialty=" + posSpecialty,"applyFor","location=no,resizable=yes,scrollbars=yes," + centerWin(635,430)) applyFor.focus() }else{ if (typeof self.opener.updateApp == "boolean"){ window.opener.location = "javascript: applyFor('" + posJobCode + "','" + posFirstChoice + "','" + posSpecialty + "')" self.close() }else{ var applyFor = window.open("https://www.generalasp.com/scook/onlineapp/0applyFor.asp?posJobCodes=" + posJobCode + "&posFirstChoice=" + posFirstChoice + "&posSpecialty=" + posSpecialty,"applyFor","location=no,resizable=yes,scrollbars=yes," + centerWin(635,430)) applyFor.focus() } } } function applyForInternal(posJobCode,posFirstChoice,posSpecialty){ var applyFor = window.open("https://www.generalasp.com/scook/onlineapp/appFramesetTransfer.asp?district=&posJobCodes=" + posJobCode + "&posFirstChoice=" + posFirstChoice + "&posSpecialty=" + posSpecialty,"applyFor","location=no,resizable=yes,scrollbars=yes," + centerWin(635,430)) applyFor.focus() } function applyForOutsideDistrict(district,posJobCode,posFirstChoice,posSpecialty){ var applyFor = window.open("https://www.generalasp.com/" + district + "/onlineapp/0applyFor.asp?posJobCodes=" + posJobCode + "&posFirstChoice=" + posFirstChoice + "&posSpecialty=" + posSpecialty,"applyFor","location=no,resizable=yes,scrollbars=yes," + centerWin(635,430)) applyFor.focus() } function toggle_block(i) { if (document.getElementById(i).style.display == 'none'){ document.getElementById(i).style.display = 'block';} else {document.getElementById(i).style.display = 'none';} setUpPageBreaks() return false; } document.write(''); document.write('