

//-------------------------------------------------------------------------------------------------------

function amexSurveyPop(country_str,source_str)
{
	
	//alert("Opening Pop-under window for "+country_str+". The source was : "+source_str);
	
	var guid = "X"; // is removed from final url
	var screenW;
	var screenH;
	var browserName=navigator.appName;
	
	/*
	SAMPLE URL = 
	http://exapp015.informative.com/amex/portal/controller/action/launchSession?service=action&context=launchSession&sessionName=AmEx_WorldWide&GUID=<guid>&ID=GG
	*/
	
	//--------------------------------------------------------------------------------------------------------
	
	//var url = "http://exapp015.informative.com/amex/portal/controller/action/launchSession?service=action&context=launchSession&sessionName=AmEx_WorldWide&GUID="+guid+"&ID=GG";
	
	var url = "http://exapp015.informative.com/amex/portal/controller/action/launchSession?service=action&context=launchSession&sessionName=AmEx_WorldWide&ID=GG";
	
	var url2 = "&SOURCE="+source_str+"&COUNTRY="+country_str;
	
	var fullURL = url+url2;
	
	//--------------------------------------------------------------------------------------------------------
	
	// Check version is over 3:
		
	if (parseInt(navigator.appVersion)>3)
	{
 		screenW = screen.width;
 		screenH = screen.height;
	}
	else
	{
		// If this is an old browser we need to look for the Java toolkit to get the screen size :
			
		if(navigator.javaEnabled())
		{
			var jToolkit = java.awt.Toolkit.getDefaultToolkit();
 			var jScreenSize = jToolkit.getScreenSize();
 			screenW = jScreenSize.width;
 			screenH = jScreenSize.height;
		}
		else
		{
			// set a default for old browsers with no java
				
			screenW = 640;
 			screenH = 480;
		}
	}
	
//--------------------------------------------------------------------------------------------------------

	var finalH = screenH - 26;
	var finalW = screenW - 12;
	
	var browserProperties = "resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no";
	var sizeProperties = "height="+finalH+",width="+finalW;
	var positionProperties = "left=0,top=0,screenX=0,screenY=0";
	
	var features = browserProperties+","+sizeProperties+","+positionProperties;
	
	//alert("SURVEY : "+fullURL);
	var win2 = window.open(fullURL,'win2',features);
	
	//alert("Opening Pop-under window for "+country_str+". The source was : "+source_str+"\n\nThe URL is : "+fullURL);
	
	//win2.moveTo(0,0);
	
	// Move the new window to the background and focus the main window :
	//win2.blur();
	
	//-----------------------------------------
	window.focus();
}