// JAVASCRIPT utility_functions.js VERSION 1.0
// General variables

<!--
//Show video upload progress GIF and message - Used in addvideo.php
function showVidProgressON() {
  // check for empty Description
  var len1 = document.getElementById("eChar3").value.length;
  if(len1 > 0) {
    document.getElementById("progressbar").style.display = 'inline';
    document.getElementById("plswait1").style.display = 'inline';
    }
}

//Show image upload progress GIF and message - Used in managephotos.php
function showImgProgressON() {
  var len1 = document.getElementById("eChar3").value.length;
  if(len1 > 0) {  
    document.getElementById("progressbar").style.display = 'inline';
    document.getElementById("plswait1").style.float = 'left';
    document.getElementById("plswait1").style.display = 'inline';
    }
}

//Open new window to display image
var newpixwindow;
function poptastic(url, name)
{

newpixwindow=window.open('showpix.php?pix='+url,'name','height=620,width=640,left=100,top=100,resizable=yes,scrollbars=yes,status=yes');	
	if (window.focus) {newpixwindow.focus()}
}

//Open popup window centered in screen, used for playing embedded videos
var win = null;

function popUpcenter(mpage,mname,w,h,scroll){
LPos = (screen.width) ? (screen.width-w)/2 : 0;
TPos = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TPos+',left='+LPos+',scrollbars='+scroll+',resizable=0,statusbar=0';
win = window.open(mpage,mname,settings);
}
//-->
