		
var isFormButtonPressed;
isFormButtonPressed = false;
	
	
function jsfunc_form_popupVenue(theType,theID,theFieldName,theHeight,theWidth) {

  valuesField = eval( "window.document.forms[0]." + theFieldName );
  theValues=valuesField.value;			  
  var newWindow;	
  var props = 'scrollBars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,width='+theWidth+',height='+theHeight;
  newWindow = window.open( 'dialog-popup-Venues.asp?values='+theValues+'&field='+theFieldName+'&i='+theID+'&t='+theType, "Add_Remove_Win", props);

  newWindow.focus();
  }	
  
  			  
function jsfunc_form_popupselect(thePopup,theFieldName,theHeight,theWidth) {

  valuesField = eval( "window.document.forms[0]." + theFieldName );
  theValues=valuesField.value;			  
  var newWindow;	
  var props = 'scrollBars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,width='+theWidth+',height='+theHeight;
  newWindow = window.open( 'dialog-popup-'+thePopup+'.asp?values='+theValues+'&field='+theFieldName, "Add_Remove_Win", props);

  newWindow.focus();
  }	
  		  
  
function jsfunc_form_updateListFromChild( theFieldName, theValues, theDisplayValues ) {

	destField = eval( "window.document.forms[0]." + theFieldName );
	destField.value = theValues;
	
	myH1=document.getElementById(theFieldName+'_displayID');
	myH1.innerHTML=theDisplayValues;

}			  


function jsfunc_form_updateCounter(thisField,limit) {
   f = document.forms[0];
   var newLength = thisField.value.length;   
   counterField=document.getElementById(thisField.name+'_counter');
   counterField.value=newLength;
 
   if (newLength>limit) {
       counterField.style.fontWeight = 'bold';
       counterField.style.color = '#ff0000'; }
   else  {
       counterField.style.fontWeight = 'normal';
       counterField.style.color = '#000000'; 
       }
   return true;
   }
   