BeepPadUI/Workflow/shared/ccc.js
/* function used for opening up a URL or predefined content in a pop-up window */
function used for opening up a URL or predefined content in a pop-up window
function used for opening up a URL or predefined content in a pop - up window
function popitup(url,height,width)
{	
	var dimensions = "height=" + height + ",width=" + width + "'";
	var uniqid = Math.floor(Math.random()*100001);
	newwindow = window.open(url,'popup' + uniqid,dimensions);
	if (url == 'about:blank')
	{
		if (arguments[3] == 'MB') {
			newwindow.document.body.innerHTML = '<h2 style="font-size: 14px">Corel 30-Day Money-Back Guarantee</h2><div>At Corel, we\'re proud of our products and we\'re confident that you\'ll be satisfied with your purchase. That\'s why we offer the <strong>Corel 30-Day Money-Back Guarantee</strong>. Buy today and if you\'re not completely satisfied with your purchase, Corel will refund your money based on your original method of payment &#151; excluding any shipping costs. When you contact us about a return, your Corel Customer Service Representative may inquire as to the reason for your return so we can improve our products and our customer experience.</div><div style="margin-top: 10px"><strong>Please note</strong>: Only products purchased directly from Corel qualify for the Corel 30-Day Money-Back Guarantee. Purchases made from a retailer must be returned to where you made your purchase and are subject to the return policy of that retailer. Purchases of transactional license, maintenance purchases, Wilcom DecoStudio products, Wacom Cintiq products and download insurance are excluded from the 30 day money back guarantee.</div>';
		}
		else if (arguments[3] == 'UPGRADE') {
			newwindow.document.body.innerHTML = '<h2 style="font-size: 14px">Here\'s how you qualify to save big!</h2><div>If you own any of the following products, you can get Corel Paint Shop Pro Photo X2 Ultimate for only $59.99:</div><ul><li>Microsoft&reg; Digital Image Pro, Digital Image Suite or Picture It</li><li>Ulead&reg;/Nova&reg; Photo Impact or Nova&reg; Photo Explosion</li><li>CorelDRAW&reg;, CorelDRAW&reg; Graphics Suite, Corel&reg; Painter or Corel&reg; Painter Essentials</li></ul><div style="font-weight: bold">Get upgrade savings and order Paint Shop Pro Photo X2 Ultimate today!</div>';
		}
		else {
			newwindow.document.body.innerHTML = arguments[3];
		}
	}
	newwindow.focus();
}
function popitup ( url , height , width ) { var dimensions = "height=" + height + ",width=" + width + "'" ; var uniqid = Math . floor ( Math . random ( ) * 100001 ) ; newwindow = window . open ( url , 'popup' + uniqid , dimensions ) ; if ( url == 'about:blank' ) { if ( arguments [ 3 ] == 'MB' ) { newwindow . document . body . innerHTML = '<h2 style="font-size: 14px">Corel 30-Day Money-Back Guarantee</h2><div>At Corel, we\'re proud of our products and we\'re confident that you\'ll be satisfied with your purchase. That\'s why we offer the <strong>Corel 30-Day Money-Back Guarantee</strong>. Buy today and if you\'re not completely satisfied with your purchase, Corel will refund your money based on your original method of payment &#151; excluding any shipping costs. When you contact us about a return, your Corel Customer Service Representative may inquire as to the reason for your return so we can improve our products and our customer experience.</div><div style="margin-top: 10px"><strong>Please note</strong>: Only products purchased directly from Corel qualify for the Corel 30-Day Money-Back Guarantee. Purchases made from a retailer must be returned to where you made your purchase and are subject to the return policy of that retailer. Purchases of transactional license, maintenance purchases, Wilcom DecoStudio products, Wacom Cintiq products and download insurance are excluded from the 30 day money back guarantee.</div>' ; } else if ( arguments [ 3 ] == 'UPGRADE' ) { newwindow . document . body . innerHTML = '<h2 style="font-size: 14px">Here\'s how you qualify to save big!</h2><div>If you own any of the following products, you can get Corel Paint Shop Pro Photo X2 Ultimate for only $59.99:</div><ul><li>Microsoft&reg; Digital Image Pro, Digital Image Suite or Picture It</li><li>Ulead&reg;/Nova&reg; Photo Impact or Nova&reg; Photo Explosion</li><li>CorelDRAW&reg;, CorelDRAW&reg; Graphics Suite, Corel&reg; Painter or Corel&reg; Painter Essentials</li></ul><div style="font-weight: bold">Get upgrade savings and order Paint Shop Pro Photo X2 Ultimate today!</div>' ; } else { newwindow . document . body . innerHTML = arguments [ 3 ] ; } } newwindow . focus ( ) ; }
function used for opening up a URL or predefined content in a pop-up window
function used for opening up a URL or predefined content in a pop - up window
//generate new window with a unique name everytime someone clicks //popups with predefined content