   var pup;
   var win_num=1;
   function ShowPopup(URL,w,h,xpos,ypos){
      win_num=win_num+1;
      if (h==0){
         window.open(URL, win_num, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=720,height=430,left = 250,top = 134');   
      }
      else{
         window.open(URL, win_num, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width='+w+',height='+h+',left = '+xpos+',top = '+ypos);
      }
   }
   
   function ShowPopupWin(URL,w,h,xpos,ypos,win_name){
      win_num=win_num+1;
      if (h==0){
         window.open(URL, win_name, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=720,height=430,left = 175,top = 134');   
      }
      else{
         window.open(URL, win_name, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width='+w+',height='+h+',left = '+xpos+',top = '+ypos);
      }
   }

   function check_cancel() {
      window.close();   
   }
   
   function hello() {
      alert("Hello");
   }

function submitForm(cont) {
   document.snc_form.cont.value=cont;
   document.snc_form.submit();   
}

   function printStyle(page,query,status,keywords,date2) {
//      var header=confirm("Do you wish to print this page with your name and address header?\n\nChoosing Cancel will print the page without the header.");
//      if (header) {
//               ShowPopup(page+'?qprint=1&header=1&date_show='+date_set+'&date1='+date1+'&date2'+date2+'&'+query,800,600)
   //      ShowPopup(page+'?qprint=1&header=1&date_show='+date+'&date1='+date1+'&date2'+date2+'&'+query,800,600)
//      }
//      else {
//               ShowPopup(page+'?qprint=1&header=0&date_show='+date_set+'&date1='+date1+'&date2'+date2+'&'+query,800,600)
   //      ShowPopup(page+'?qprint=1&header=0&date_show='+date+'&date1='+date1+'&date2'+date2+'&'+query,800,600)
//      }
               ShowPopup(page+'?qprint=1&header=0&status='+status+'&keywords='+keywords+'&date2'+date2+'&'+query,800,600)
   }

   function QuickPrint() {
      bV = parseInt(navigator.appVersion);
      if (bV >= 4) {
         window.print();
      }
   }
// the next 2 functions get called on the m_signup.cfm page DB 6/12/05

	function check_fields(){
		var r=0, amt=0;
		for(i=1; i<13; i++){
			holder ='ff_'+i;
			img_holder='sun_'+i;
			if(document.getElementById(holder)){
				amt++;
				if(document.getElementById(holder).value==''||document.getElementById(holder).value=='required'){
				document.getElementById(img_holder).src='../../images/bullet_sun.gif';
				document.getElementById(holder).value='required';
				}
				else{
					r++;
				}
			}
		}
		if(document.getElementById('ff_8').value!=document.getElementById('v_email').value){
			alert('Email verification error. Both entries must match');
		}
		else if(r==amt){
			document.signup_form.submit();
		}
		else{
			alert('Please check the required fields indicated by the red sun');
		}
			//alert(holder+', '+amt+', '+r);		
	}
	
	function set_assoc(N, cid){
		//alert('n= '+N+' '+'class id= '+cid);
		if(cid==2&&N!=1){
			for(i=0; i<=4; i++){
				var holder1='rep_'+i;
				document.getElementById(holder1).style.visibility="hidden";
			}
			for(i=0; i<=N; i++){
				var holder2='rep_'+i;
				document.getElementById(holder2).style.visibility="visible";
			}
		}
		else{
			for(i=0; i<=4; i++){
				var holder1='rep_'+i;
				document.getElementById(holder1).style.visibility="hidden";
			}
		}
		
		if(cid==3&&N!=1){
			for(i=0; i<=4; i++){
				var holder1='rep_'+i;
				document.getElementById(holder1).style.visibility="hidden";
			}
			for(i=0; i<N; i++){
				var holder2='rep_'+i;
				document.getElementById(holder2).style.visibility="visible";
			}
		}
		/*else{
			for(i=0; i<=4; i++){
				var holder1='rep_'+i;
				document.getElementById(holder1).style.visibility="hidden";
			}
		}*/
	}
	function set_vs_value(price){
			document.getElementById('vs_price').value=price;
	}
//  End -->