//<!--

 function showTip1(tipName)	{
if (tipName) {
		  //define window parameters - url, window name and window attributes
		  var winUrl = "/discover/data/account/tips/" + tipName + ".shtml";
		  var winName = "tip";
	  var winAttributes = "width=507,height=400,top=50,left=50,scrollbars,status";
		 		 
		  //launch the new window and capture a reference to that window
		  var childWindow = window.open(winUrl,winName,winAttributes);
		 	 
		  //bring "focus" to the new window so it appears on top of the window stack
		  childWindow.focus();
	 }

} 
function showTip(tipName)	{
	//define window parameters - url, window name and window attributes
 switch (tipName) {
 	case "worksheet":
		var winUrl = "/discover/data/account/autobillpay/" + tipName + ".shtml";
		var winName = "tip";
		var winAttributes = "width=570,height=570,top=30,left=30,scrollbars,status";
	break;
 	case "billers_pop":
		var winUrl = "/discover/data/account/autobillpay/" + tipName + ".shtml";
		var winName = "tip";
		var winAttributes = "width=570,height=570,top=30,left=30,scrollbars,status";
	break;
 	default:
		var winUrl = "/discover/data/account/tips/" + tipName + ".shtml";
		var winName = "tip";
		var winAttributes = "width=575,height=400,top=50,left=50,scrollbars,status";
 	
	}
	
	//launch the new window and capture a reference to that window
	var childWindow = window.open(winUrl,winName,winAttributes);
		 	 
	//bring "focus" to the new window so it appears on top of the window stack
	childWindow.focus();
	 }
 
//Covansys start 
function showTip_PaymentProtection(tipName)   {
if (tipName) {
          //define window parameters - url, window name and window attributes
          var winUrl = "/discover/data/account/tips/" + tipName + ".shtml";
          var winName = "tip";
      var winAttributes = "width=570,height=400,top=50,left=50,scrollbars,status";

          //launch the new window and capture a reference to that window
          var childWindow = window.open(winUrl,winName,winAttributes);

          //bring "focus" to the new window so it appears on top of the window stack
          childWindow.focus();
     }

}
//Covansys end 

/**
 * This function opens a new window for "Tips."
 *
 * @author SBI and Company, Inc.
 * @modified Eric Guanlao 09/23/2003 2:01 PM
 */
function openTipWindow(filename) {
	var winWidth = 570;
	var winHeight;
	var winLeft = screen.width - winWidth - 20;
	var winTop = 0;

	switch (filename) {
	case "HowYouGetItTip":
		winHeight = 600;
		break;
	case "AvailableToRedeemTip":
		winHeight = 350;
		break;
	case "AddressTip":
		winHeight = 230;
		break;
	case "AccountNumberTip":
		winHeight = 330;
		break;
	default:
		winHeight = 400;
	}

	if (winLeft < 0) {
		winLeft = 0;
	}
	if (winTop < 0) {
		winTop = 0;
	}

	var winTip = window.open("https://www.discovercard.com/discover/data/rewards/" + filename + ".html", "",
		"location=no,menubar=no,resizable=no,scrollbars=yes,height=" + winHeight + ",width=" + winWidth +
		",screenX=" + winLeft + ",screenY=" + winTop + ",left=" + winLeft + ",top=" + winTop);
}

//-->


