function popupWin(strURL, strTarget, strWinOptions)
 {
  var myWin = window.open(strURL, strTarget, strWinOptions);
  return false;
}

function form_resize(v_val){//first
	if(navigator.appName=='Netscape'){//second
	
	var t_val = "."+v_val;
        
        
       for(var f=0;f<document.forms.length;f++){//third
         for(var i=0;i<document.forms[f].elements.length;i++){ //fourth                                         
              
              if(document.forms[f].elements[i].type.toLowerCase()=="text"){
              var t_size = document.forms[f].elements[i].size * eval(t_val);
              document.forms[f].elements[i].size = document.forms[f].elements[i].size - t_size;}
                }//fourth
                }//third
                }//second
           }//first


function Disclaimer(){
   	popupWin('http://www.iuoe825.org/iuoe/disclaimer.htm','login','height=300,width=500,screenX=180,screenY=80,scrollbars=yes,resizable=no');
}

function Training(){
	popupWin('http://www.iuoe825.org/info/trainingclass.htm','login','height=400,width=300,screenX=400,screenY=80,scrollbars=yes,resizable=no');
}
function Benefits(){
   	window.location='http://www.iuoe825.org/iuoe/benefits.htm';
}
function Minutes(){
   	window.location='http://www.iuoe825.org/iuoe/minutes.htm';
}

function fName(vval){
   	popupWin(vval,'local825','height=300,width=475,screenX=180,screenY=80,scrollbars=yes,resizable=no');
}

function mlogin(){
   	window.location='http://www.iuoe825.org/iuoe/login.htm';
}

function NJLink(){
   	popupWin('http://www.iuoe825.org/iuoe/NJAgents.htm','login','height=320,width=400,screenX=180,screenY=80,scrollbars=yes,resizable=no');
}

function NYLink(){
   	popupWin('http://www.iuoe825.org/iuoe/NYAgents.htm','login','height=220,width=400,screenX=180,screenY=80,scrollbars=yes,resizable=no');
}
function PExt(){
   	popupWin('http://www.iuoe825.org/iuoe/PExt.htm','login','height=350,width=400,screenX=180,screenY=80,scrollbars=yes,resizable=no');
}
function Scholarships(){
   	popupWin('http://www.iuoe825.org/iuoe/Scholarships.htm','login','height=300,width=550,screenX=180,screenY=80,scrollbars=yes,resizable=no');
}

function IHlp(){
   	popupWin('http://www.iuoe825.org/iuoe/helpinfo.htm','login','height=220,width=450,screenX=180,screenY=80,scrollbars=yes,resizable=no');
}

function tlogin(){
   	popupWin('http://www.iuoe825.org/info/traindir.htm','login','height=260,width=400,screenX=400,screenY=80,scrollbars=no,resizable=no');
}

function slogin(){
   	popupWin('http://www.iuoe825.org/info/trainingclass.htm','login','height=400,width=300,screenX=400,screenY=80,scrollbars=yes,resizable=no');
}

function PWin(vVal){
var tloc = 'vcalendar.aspx?vVar=' + vVal;

   	popupWin(tloc,'Calendar','height=300,width=300,screenX=180,screenY=80,scrollbars=no,resizable=no');
}


function onadmin(){
 document.Administration.src="Administration_lnk.gif";
 
 }
function offadmin(){
 document.Administration.src="Administration.gif"
   }
   
function ontraining(){
 document.Training.src="Training_lnk.gif"
 }
 
function offtraining(){
 document.Training.src="Training.gif"
  }
function oncontractors(){
 document.Contractors.src="Contractors_lnk.gif"
 }
function offcontractors(){
 document.Contractors.src="Contractors.gif"
  }
function onorganizing(){
 document.Organizing.src="Organizing_lnk.gif"
 }
function offorganizing(){
 document.Organizing.src="Organizing.gif"
  }
function onhealthcare(){
 document.Healthcare.src="healthcare_lnk.gif"
 }
function offhealthcare(){
 document.Healthcare.src="Health.gif"
  }
function onpolitical(){
 document.Political.src="Political_lnk.gif"
 }
function offpolitical(){
 document.Political.src="Political.gif"
  }
function onevents(){
 document.Events.src="Events_lnk.gif"
 }
function offevents(){
 document.Events.src="Events.gif"
  }
function oncontact(){
 document.Contact.src="Contact_lnk.gif"
 }
function offcontact(){
 document.Contact.src="Contact.gif"
  }
function Goto(){
  if(document.form1.Quicklink.options[document.form.Quicklink.selectedIndex].value=="1"){
  alert('Please make a selection.');
 }else if(document.form1.Quicklink.options[document.form.Quicklink.selectedIndex].value=="2"){
  mlogin();
 }else if(document.form1.Quicklink.options[document.form.Quicklink.selectedIndex].value=="3"){
  Benefits();
 }else if(document.form1.Quicklink.options[document.form.Quicklink.selectedIndex].value=="4"){
  Minutes();
 }else if(document.form1.Quicklink.options[document.form.Quicklink.selectedIndex].value=="5"){
  NJLink();
 }else if(document.form1.Quicklink.options[document.form.Quicklink.selectedIndex].value=="6"){
  NYLink();
 }else if(document.form1.Quicklink.options[document.form.Quicklink.selectedIndex].value=="7"){
  PExt();
 }else if(document.form1.Quicklink.options[document.form.Quicklink.selectedIndex].value=="8"){
  Qref();
 }else if(document.form1.Quicklink.options[document.form.Quicklink.selectedIndex].value=="9"){
  Scholarships();
 }
    }
    
 function member(v_val,v_ss){
    popupWin('contsummary.aspx?ID='+v_val+'&SS='+v_ss,'Menu','height=400,width=700,screenX=180,screenY=35,scrollbars=yes,resizable=no');
}   
    
function mLinks(vOpt,vIndx){

alert(vOpt[vIndx].value);

if(vOpt[vIndx].value=="1"){
  alert('Please make a selection.');}
}


function popuplogin(){
  var str_url;
   temp=document.LOGIN.T1.value;
   temp2=document.LOGIN.T2.value;
   
   if(temp=="" || temp2==""){
    alert('Please complete login information.');
     }
   else{
   str_url = "vloading.aspx?Page=MemberAcct.aspx?SS="+temp+"&PS="+temp2+"&SE=LKJU90903OAS";    //"vloading.aspx?Page=webtemplate.aspx?SS="+temp+"&PS="+temp2+"&SE=LKJU90903OAS"; //"vloading.aspx?Page=MemberAcct.aspx?SS="+temp+"&PS="+temp2+"&SE=LKJU90903OAS";
   //document.LOGIN.T1.value=""
   //document.LOGIN.T2.value=""
      window.location = str_url;   
      }
	}

function doclogin(){
   
   temp=document.DOC.ID2.value;
   if(temp==""){
    alert('Please enter your Social Security No.');
     }
   else{ 
   window.location="https://www.iuoe825.org/funds/doctor.asp?ID="+temp;
     
      }
	}
function dLog(){
window.open('https://www.iuoe825.org/doctors','Local825','height=500,width=451,screenX=400,screenY=80,scrollbars=no,resizable=no,status=yes');


}

function iButton(v){
			v.value = "Processing File Upload...";
			return true;
					
			}
			
			function vButton(v){
			v.value = "Processing Credentials...";
			return true;
					
			}
			
			function tButton(v){
			v.value = "Processing Form Submission...";
			return true;
					
			}
