/*
 * Javascript functions used for the Jumpcut media popup.
 */

// Popup window that resizes if it is open when it is called again
function popUpMediaWindow( url ) {
	var windowFeatures = "scrollbars=yes,resizable=yes,dependent=yes,width=505,height=650";
    var popUp = window.open(url,"popUpMediaWindow",windowFeatures);
    if (window.focus) { popUp.focus(); }
    popUp.resizeTo(507, 680);
}
function validatePrint(assetType,wadId,acifId,printType){
	var url ="printActivePopup.do?wadId="+wadId+"&acifId="+acifId+"&printType="+printType;
	var op=window.open(url);	
}
function validatePrintInAdminCalendar(assetType,wadId,acifId){
	var url ="printAthleteActivePopup.do?wadId="+wadId+"&acifId="+acifId+"&printType="+assetType;
	var op=window.open(url);	
}
function validatePrintCustomActivityInAdminCalendar(assetType,wadId,acifId){
	
	var url ="printMediaCustomActivityAction.do?wadId="+wadId+"&acifId="+acifId+"&printType="+assetType;
	var op=window.open(url);	
}
// view the sample video
function popUpSampleVideoWindow( url ) {
	var windowFeatures = "scrollbars=yes,resizable=yes,dependent=yes,width=505,height=650";
    var popUp = window.open(url,"popup",windowFeatures);
    if (window.focus) { popUp.focus(); }
    popUp.resizeTo(465, 515);
}

