var newWindow;
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 Technology Mall on the AF SBIR/STTR Virtual Shopping Mall (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 Technology Mall on the AF SBIR/STTR Virtual Shopping Mall (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 Technology Mall on the AF SBIR/STTR Virtual Shopping Mall (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 Technology Mall on the AF SBIR/STTR Virtual Shopping Mall (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 Technology Mall on the AF SBIR/STTR Virtual Shopping Mall (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 to make/change this selection?';
	if(strSelected == "1")
	{
		alert(strValue);
	}
	else
	{
		strValue += '\n\nONLY \'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 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);
}