var mImgPath = null;

function popUpScreenshot(psImgPath) {
	mImgPath = psImgPath;
	
  var windowHandle = window.open("Static/ScreenshotPopUp.htm", "SampleImg", "height=600,width=800,resizable=yes,scrollbars=yes,status=no,top=0,left=0,screenX=0,screenY=0");
  
  if (windowHandle.opener)
    windowHandle.focus();	    
}

function popUpScreenshotPartners(psImgPath) {
	mImgPath = psImgPath;
	
  var windowHandle = window.open("../Static/ScreenshotPopUp.htm", "SampleImg", "height=600,width=800,resizable=yes,scrollbars=yes,status=no,top=0,left=0,screenX=0,screenY=0");
  
  if (windowHandle.opener)
    windowHandle.focus();	    
}

function launchWideWindowExample(psExampleURL) {
		var windowHandle = window.open(psExampleURL, null, "height=600,width=800,resizable=yes,scrollbars=yes,status=no,top=0,left=0,screenX=0,screenY=0");
		
		if (windowHandle.opener)
		    windowHandle.focus();
}

function launchSupportCenter(psSupportCenterURL) {
    var windowHandle = window.open(psSupportCenterURL, null, "height=800,width=995,resizable=yes,scrollbars=yes,status=no,top=0,left=0,screenX=0,screenY=0");

    if (windowHandle.opener)
        windowHandle.focus();
}

function launchPDF(psPDFURL) {
		var windowHandle = window.open(psPDFURL, null, "height=600,width=650,resizable=yes,scrollbars=yes,status=no,top=0,left=0,screenX=0,screenY=0");
		
		if (windowHandle.opener)
    			windowHandle.focus();
}		

function launchNews(psNewsURL) {
		var windowHandle = window.open(psNewsURL, null, "height=600,width=650,resizable=yes,scrollbars=yes,status=no,top=0,left=0,screenX=0,screenY=0");
		
		if (windowHandle.opener)
    			windowHandle.focus();
}

function launchPrivacy(psPrivacyURL) {
		var windowHandle = window.open(psPrivacyURL, null, "height=600,width=650,resizable=yes,scrollbars=yes,status=no,top=0,left=0,screenX=0,screenY=0");
		
		if (windowHandle.opener)
    			windowHandle.focus();
}

function launchSupport(psSupportURL) {
		var windowHandle = window.open(psSupportURL, null, "height=300,width=300,resizable=no,scrollbars=no,status=no,top=0,left=0,screenX=0,screenY=0");
		
		if (windowHandle.opener)
    			windowHandle.focus();	
}

function launchTrainingSchedule(psTrainingScheduleURL) {	
		var windowHandle = window.open(psTrainingScheduleURL, null, "height=600,width=700,resizable=yes,scrollbars=yes,status=no,top=0,left=0,screenX=0,screenY=0");
		
		if (windowHandle.opener)
    			windowHandle.focus();
}

function launchImage(psSupportURL, plHeight, plWidth) {
		var windowHandle = window.open(psSupportURL, null, "height=" + plHeight + ",width=" + plWidth + ",resizable=no,scrollbars=no,status=no,top=0,left=0,screenX=0,screenY=0");
		
		if (windowHandle.opener)
    			windowHandle.focus();	
}