var newWindow;
function openQuadChart(pk)
{		
	var strURL = "../../Include/Report/SummaryReport.aspx?firm_area=1&pk="+pk;
	openPopUp(strURL,600,800,"yes");				
}

function openPopUp(URL,Height,Width,blnScrollbars){

	if (newWindow && !newWindow.closed) 
	{
				newWindow.focus();
	}

	newWindow=window.open(URL,"newWindow","height=" + Height + 
	    ",width=" + Width + ",toolbar=no,status=no,scrollbars=" + blnScrollbars + 
	    ",resizable=yes");

}

function alertClassified(strSelected)
{
	boolYes = confirm('Are you sure want to make/change this selection?');
	
	/* Only displays if the action is YES */
	if(strSelected == "1" && boolYes)
	{
		var strValue;
		strValue = 'CLASSIFIED INFORMATION IS NOT PERMITTED ON THIS SYSTEM!!'
			+ '\n\nThis submission system is unclassified; therefore, classified information is prohibited. In addition, once cleared and accepted by the Air Force, Summary Reports will be included in the Topic/Award Data Search on the Air Force SBIR/STTR web site (a public, unclassified website).'
			+ '\n\nPlease return to the Summary Report and remove ALL classified material, revising as needed to provide an unclassified and comprehensive Summary Report.';
			
		alert(strValue);
	}
}

function alertProprietary(strSelected)
{
	boolYes = confirm('Are you sure want to make/change this selection?');
	
	/* Only displays if the action is YES */
	if(strSelected == "1" && boolYes)
	{
		var strValue;
		strValue = 'PROPRIETARY INFORMATION IS NOT PERMITTED ON THIS SYSTEM!!'
			+ '\n\nOnce cleared and accepted by the Air Force, Summary Reports will be included in the Topic/Award Data Search on the Air Force SBIR/STTR web site (a public website).'
			+ '\n\nPlease return to the Summary Report and remove all proprietary text, revising as needed to provide a comprehensive non-proprietary Summary Report.'; 
		alert(strValue);
	}
}

function alertNoClassified()
{
	var strValue;
	strValue = 'CLASSIFIED INFORMATION IS NOT PERMITTED ON THIS SYSTEM!!'
			+ '\n\nThis submission system is unclassified; therefore, classified information is prohibited. In addition, once cleared and accepted by the Air Force, Summary Reports will be included in the Topic/Award Data Search on the Air Force SBIR/STTR web site (a public, unclassified website).'
			+ '\n\nPlease return to the Summary Report and remove ALL classified material, revising as needed to provide an unclassified and comprehensive Summary Report.';
	alert(strValue);
}

function alertNoProprietary()
{
	var strValue;
	strValue = 'PROPRIETARY INFORMATION IS NOT PERMITTED ON THIS SYSTEM!!'
			+ '\n\nOnce cleared and accepted by the Air Force, Summary Reports will be included in the Topic/Award Data Search on the Air Force SBIR/STTR web site (a public website).'
			+ '\n\nPlease return to the Summary Report and remove all proprietary text, revising as needed to provide a comprehensive non-proprietary Summary Report.'; 
	alert(strValue);
}

function alertNoClassifiedProprietary()
{
	var strValue;
	strValue = 'CLASSIFIED AND PROPRIETARY INFORMATION ARE NOT PERMITTED ON THIS SYSTEM!!'
			+ '\n\nOnce cleared and accepted by the Air Force, Summary Reports will be included in the Topic/Award Data Search on the Air Force SBIR/STTR web site (a public website).'
			+ '\n\nPlease return to the Summary Report and remove all classified and proprietary text, revising as needed to provide a comprehensive non-classified and non-proprietary Summary Report.'; 
	alert(strValue);
}

function alertNoGrantAf()
{
	var strValue;
	strValue = 'ONLY \'I DO\' GRANT PERMISSIONS FOR AF USE CONTENT IS PERMITTED ON THIS SYSTEM.'
			+ '\n\nPlease change your selection to \'I DO\' when you are ready to \'Save as Draft\' or \'Submit as Final\' on your Summary Report submission.'
			+ '\n\nYour Summary Report will NOT be saved if you do not change the permissions to \'I DO\'.'; 
	alert(strValue);
}

function alertGrantAf(strSelected)
{
	var strValue;
	strValue = 'Are you sure you want make/change this selection?';
	if(strSelected == "1")
	{
		alert(strValue);
	}
	else
	{
		strValue += '\n\nYOUR SUMMARY REPORT CANNOT BE DISPLAYED ON THE Air Force SBIR/STTR web site!!'
			+ '\n\nSince you have selected \'I DO NOT\' grant US Air Force permission for editing and public use, your Summary Report cannot be processed and displayed. The purpose of a Summary Report is to highlight a firm\'s R&D accomplishments to prospective buyers, thereby increasing commercialization opportunities.'
			+ '\n\nSince the Air Force SBIR/STTR web site is a public website, the Air Force must have the opportunity to conduct a security and public affairs review of each summary report. Some editing may occur to remove sensitive information or to improve clarity. If you wish to have your Summary Report displayed, please return to the Summary Report and select \'I DO\' in the permission statement. If you still wish to select \'I DO NOT\', your reason(s) for such choice should be stated in the \'Additional Comments\' field (which is intended for Air Force use only).'
		
		alert(strValue);
	}
}

function alertWrongPhoneFormat()
{
	var strValue;
	strValue = 'Please make sure you input the Summary Report Point of Contact phone number in the format (XXX) XXX-XXXX.'; 
	alert(strValue);
}

function alertUpdateStatusNotChosen()
{
	var strValue;
	strValue = 'Please indicate whether or not this Summary Report been updated to reflect more than a repetition/duplication of the Phase II Award Abstract.'; 
	alert(strValue);
}

function alertDuplicateSummaryReport()
{
	var strValue;
	strValue = 'Our records indicate your firm has already submitted a Summary Report for this Proposal and Phase combination.'
		+ '\n\nDuplicate Summary Reports are not permitted. This report will not be saved.'
		+ '\n\nPlease make sure you have selected the correct Summary Report type and/or Proposal number.'; 
	alert(strValue);
}
