
function ShowOfferDetails(appPath, id, type, headline, offerId)
{
	if(type=="P"){
		MM_openBrWindow(appPath+'/showcase/sc_program_details.aspx?id='+id +'&type='+ type, 'Details', 'resizable=yes,width=500,height=420,scrollbars=yes');

	} else {
	if (offerId == null || offerId == "undefined") {
		offerId = "";
	}
	if (headline == null || headline == "undefined") {
		headline = "";
	}
		MM_openBrWindow(appPath+'/showcase/sc_details.aspx?id='+id +'&type='+ type +'&oh=' + headline + '&offerId=' + offerId, 'Details', 'resizable=yes,width=500,height=420,scrollbars=yes');
	}
}

function ShowAbout(appPath)
{
	MM_openBrWindow(appPath+'/showcase/sc_about_myawards.aspx', 'About', 'resizable=yes,width=500,height=520');
}

function GotoBuyPage(winName)
{
     childWin = window.open(winName,'','');
}

function PrintShoppingList(appPath)
{
	childWin = window.open(appPath+'/showcase/sc_print_shoppinglist.aspx','','');
}

function TakePrint()
{
	window.print();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
   	var childWin;
   	if (!features.length > 0)
   	{
   		features = "resizable=yes,width=560,height=420";
   	}
   	//features += ",left=20,top=20";
   	childWin = window.open(theURL,winName,features);
   	if(window.focus)
   	{
   		childWin.focus();
   	}
}

/**************************************************
 * Included from many component files
 *************************************************/
function openBigWin(thisUrl,h,w) { 
	//alert("foobar!"); 
	var BigWin = window.open(thisUrl, 'bigWin','scrollbars=yes,location=yes,resizable=yes,toolbar=no,height='+h+',width='+w+',left=100,top=0');      
	if (window.focus) { 
		BigWin.focus(); 
	} 
}

