function GetLeft(newWidth) { return ((screen.width - newWidth) * .5); } function GetTop(newHeight) { return ((screen.height - newHeight) * .5); } function PopUpComments() { var windowwidth = 400; var windowheight = 500; var newWin = window.open("comments.asp","","toolbar=no,location=no,left=" + GetLeft(windowwidth) + ",top=" + GetTop(windowheight) + ",directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + windowwidth +",height=" + windowheight); } function PopUpBenefits(issuerCardTypeID) { var left = (screen.width - 400) / 2; var top = (screen.height - 400) / 2; var style = ",directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=400"; var page = ""; if(issuerCardTypeID == 101) page = "benefits-visa-classic.htm"; else if(issuerCardTypeID == 102) page = "benefits-visa-secured.htm"; else if(issuerCardTypeID == 103) page = "benefits-visa-gold.htm"; else if(issuerCardTypeID == 104) page = "benefits-visa-platinum.htm"; else if(issuerCardTypeID == 105) page = "benefits-visa-signature.htm"; else if(issuerCardTypeID == 106) page = "benefits-visa-business.htm"; else if(issuerCardTypeID == 107) page = "benefits-visa-titanium.htm"; else if(issuerCardTypeID == 201) page = "benefits-mastercard-standard.htm"; else if(issuerCardTypeID == 202) page = "benefits-mastercard-gold.htm"; else if(issuerCardTypeID == 203) page = "benefits-mastercard-platinum.htm"; else if(issuerCardTypeID == 204) page = "benefits-mastercard-gold.htm"; else if(issuerCardTypeID == 601) page = "benefits-fleet-platinum-visa-business-card.htm"; else if(issuerCardTypeID == 402) page = "benefits-discover-platinum.htm"; else if(issuerCardTypeID == 404) page = "benefits-discover-student.htm"; else if(issuerCardTypeID == 701) page = "benefits-platinum-plus.htm"; else if(issuerCardTypeID == 702) page = "benefits-signature.htm"; else if(issuerCardTypeID == 703) page = "benefits-platinum.htm"; window.open(page,"","toolbar=no,location=no,left=" + left + ",top=" + + style); } function PopUpDetail(featureID) { var windowwidth = 400; var windowheight = 275; var windowleft = ((screen.width - windowwidth) * .5); var windowtop = ((screen.height - windowheight) * .5); var newWin = window.open("detail.asp?featureID=" + featureID,"","toolbar=no,location=no,left=" + windowleft + ",top=" + windowtop + ",directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=" + windowwidth +",height=" + windowheight); } function PopUpDetailByDetailID(detailID) { var windowwidth = 400; var windowheight = 275; var windowleft = ((screen.width - windowwidth) * .5); var windowtop = ((screen.height - windowheight) * .5); var newWin = window.open("detail.asp?detailID=" + detailID,"","toolbar=no,location=no,left=" + windowleft + ",top=" + windowtop + ",directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=" + windowwidth +",height=" + windowheight); } function PopUpDetailByFeatureID(featureID) { var windowwidth = 400; var windowheight = 275; var windowleft = ((screen.width - windowwidth) * .5); var windowtop = ((screen.height - windowheight) * .5); var newWin = window.open("detail.asp?featureID=" + featureID,"","toolbar=no,location=no,left=" + windowleft + ",top=" + windowtop + ",directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=" + windowwidth +",height=" + windowheight); } function PopUpFeatures(CardID) { var windowwidth = 400; var windowheight = 275; var windowleft = ((screen.width - windowwidth) * .5); var windowtop = ((screen.height - windowheight) * .5); var newWin = window.open("features.asp?CardID=" + CardID,"","toolbar=no,location=no,left=" + windowleft + ",top=" + windowtop + ",directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=" + windowwidth +",height=" + windowheight); } function PopUpException(CardID, Field) { var windowwidth = 400; var windowheight = 275; var windowleft = ((screen.width - windowwidth) * .5); var windowtop = ((screen.height - windowheight) * .5); var newWin = window.open("exception.asp?CardID=" + CardID + "&field=" + Field,"","toolbar=no,location=no,left=" + windowleft + ",top=" + windowtop + ",directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=" + windowwidth +",height=" + windowheight); } function PopUpUrl(url, width, height, scroll) { var windowwidth = width; var windowheight = height; var windowleft = ((screen.width - windowwidth) * .5); var windowtop = ((screen.height - windowheight) * .5); var newWin = window.open(url,"","toolbar=no,location=no,left=" + windowleft + ",top=" + windowtop + ",directories=no,status=no,menubar=no,scrollbars=" + scroll + ",resizable=yes,width=" + windowwidth +",height=" + windowheight); } function PopUpExceptionDetail(CardID, Field) { var windowwidth = 400; var windowheight = 275; var windowleft = ((screen.width - windowwidth) * .5); var windowtop = ((screen.height - windowheight) * .5); var newWin = window.open("exceptiondetail.asp?CardID=" + CardID + "&field=" + Field,"","toolbar=no,location=no,left=" + windowleft + ",top=" + windowtop + ",directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=" + windowwidth +",height=" + windowheight); } function PopUpText(text) { var windowwidth = 400; var windowheight = 275; var windowleft = ((screen.width - windowwidth) * .5); var windowtop = ((screen.height - windowheight) * .5); var newWin = window.open("text.asp?text=" + text,"","toolbar=no,location=no,left=" + windowleft + ",top=" + windowtop + ",directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=" + windowwidth +",height=" + windowheight); }