// JavaScript Document
// testing function
function subit(s,t,u,v,w) { 
	var popwin = window.open ('','tester','height=600,width=600, scrollbars=yes,resize=yes');
	popwin.document.write(s+'<br />'+t+'<br />'+u+'<br />'+v+'<br />'+w);
}

function CloseMe() {
        parent.window.close();
}

function go(url,w,h) {
	var dim = eval('"width=' + w + ',height=' + h + ',toolbar=0, location=0,directories=0,status=0, menubar=0,scrollbars=0,resizable=yes, top=100, left=100"');
	Npop = window.open(url,"instruct",dim);
	oldWin = Npop.opener;
}

function prePopBirthday() {	
  	elem = document.getElementsByTagName('input');
  	for ( i = 0; elem.length > i +1; i++) {
  		if (elem[i].name == 'dob' ) {
  			if( elem[i].value == '') {
  				elem[i].value = 'mm/dd/yyyy';
  			}
  			elem[i].onfocus = function() {
  				if(this.value == 'mm/dd/yyyy') {
  					this.value = '';
  				}	
  			}
  		}
  	}
}

/*************************************************************************
		This code is from Dynamic Web Coding at www.dyn-web.com
		Copyright 2001-4 by Sharon Paine 
		See Terms of Use at www.dyn-web.com/bus/terms.html
		regarding conditions under which you may use this code.
		This notice must be retained in the code as is!
*************************************************************************/

function initScrollLayer() { 
   // arguments: id of layer containing scrolling layers (clipped layer), id of layer to scroll, 
   // if horizontal scrolling, id of element containing scrolling content (table?)
   var wndo = new dw_scrollObj('filmStripWrapper', 'filmStripdiv', 'filmtable');

   // pass id's of any wndo's that scroll inside tables
   // i.e., if you have 3 (with id's wn1, wn2, wn3): 
   dw_scrollObj.GeckoTableBugFix('wn1', 'wn2', 'wn3');
   dw_scrollObj.GeckoTableBugFix('filmStripWrapper'); 
}
