conBrowser=1;
  switch1on  = new Image();  switch1on.src  = 'images/nav_on_01.gif';
  switch1off = new Image();  switch1off.src = 'images/nav_off_01.gif';
  switch2on  = new Image();  switch2on.src  = 'images/nav_on_02.gif';
  switch2off = new Image();  switch2off.src = 'images/nav_off_02.gif';
  switch3on  = new Image();  switch3on.src  = 'images/nav_on_03.gif';
  switch3off = new Image();  switch3off.src = 'images/nav_off_03.gif';
  switch4on  = new Image();  switch4on.src  = 'images/nav_on_04.gif';
  switch4off = new Image();  switch4off.src = 'images/nav_off_04.gif';
  switch5on  = new Image();  switch5on.src  = 'images/nav_on_05.gif';
  switch5off = new Image();  switch5off.src = 'images/nav_off_05.gif';
  switch6on  = new Image();  switch6on.src  = 'images/nav_on_06.gif';
  switch6off = new Image();  switch6off.src = 'images/nav_off_06.gif';
  switch7on  = new Image();  switch7on.src  = 'images/nav_on_07.gif';
  switch7off = new Image();  switch7off.src = 'images/nav_off_07.gif';
  switch8on  = new Image();  switch8on.src  = 'images/nav_on_08.gif';
  switch8off = new Image();  switch8off.src = 'images/nav_off_08.gif';
  switch10on  = new Image();  switch10on.src  = 'images/nav_on_09.gif';
  switch10off = new Image();  switch10off.src = 'images/nav_off_09.gif';
  switch9on  = new Image();  switch9on.src  = 'images/submit_on.gif';
  switch9off = new Image();  switch9off.src = 'images/submit_off.gif';
  switch10on  = new Image();  switch10on.src  = '/images/getstarted_on.gif';
  switch10off = new Image();  switch10off.src = '/images/getstarted_off.gif';
  switch11on  = new Image();  switch11on.src  = '/images/getstarted_on.gif';
  switch11off = new Image();  switch11off.src = '/images/getstarted_off.gif';
  switch12on  = new Image();  switch12on.src  = '/images/getstarted_on.gif';
  switch12off = new Image();  switch12off.src = '/images/getstarted_off.gif';
  switch13on  = new Image();  switch13on.src  = '/images/getstarted_on.gif';
  switch13off = new Image();  switch13off.src = '/images/getstarted_off.gif';
  switch14on  = new Image();  switch14on.src  = '/images/getstarted_on.gif';
  switch14off = new Image();  switch14off.src = '/images/getstarted_off.gif';


function HighLight(musswitch) {
	if (conBrowser) {
		switchnavn = eval(musswitch + "on");
      		document [musswitch].src = switchnavn.src;
    		}
  	}

function UndoHighLight(musswitch) {
	if (conBrowser) {
		switchnavn = eval(musswitch + "off");
		document [musswitch].src = switchnavn.src;
		}
	}

	function setForm()
	{
	rtn=false;
	for (i=0;i<document.loginForm.loginSelect.length;i++)
		if (document.loginForm.loginSelect[i].checked)
			{
			if (document.loginForm.loginSelect[i].value=='WOLogin'){
				document.loginForm.username.name='clientID';
				document.loginForm.action="https://secure.netlinksolution.com/portal/index.jsp?loginType=WebOrganizer&action=JLoginUser";
				rtn=validateInputFields();	
				}
			else{ 
				document.loginForm.action="https://secure.netlinksolution.com/portal/?action=JLoginUser";
				rtn=validateInputFields();	
				}
			}
	return (rtn);
	}

function setFocus() 
    {  
    if (null!=document.loginForm.firmID && ""==document.loginForm.firmID.value) 
        {
        var firmFocus = "document.loginForm.firmID.focus()";
        eval(firmFocus);
        } 
    else if (null!=document.loginForm.username && ""==document.loginForm.username.value) 
        {
        var clientFocus = "document.loginForm.username.focus()";
        eval(clientFocus);
        } 
    else 
        {
        var passwordFocus = "document.loginForm.password.focus()";
        eval(passwordFocus);
        }
    }

function validateInputFields() 
    {
    var returnMessage = "";
    if (document.loginForm.username != null) 
        {
        if (document.loginForm.username.value == "") 
            {
            var label = document.getElementById("loginLabel").innerHTML;
            label = label.replace(":", "");
            returnMessage += "\t- " + label + "\n";
            }
        }
    if (document.loginForm.password.value == "") 
        {
        returnMessage += "\t- Password\n";                      
        }               
                
    if (returnMessage != "") 
        {
        returnMessage = "The following field(s) must be entered:\n\n" + returnMessage;
        alert(returnMessage);
        return false;
        }
    }

function onKeypress_UC(e)
    {
    var isIE=navigator.appName.indexOf('Microsoft')!=-1;
    if (isIE) 
        {
        e.keyCode = String.fromCharCode(e.keyCode).toUpperCase().charCodeAt(0);
        e.returnValue = true;    
        }
    }

function labelChange(app)
	{
	  if (app=='Organizer')
		document.getElementById("loginLabel").innerHTML='Client ID:';
	  else
		document.getElementById("loginLabel").innerHTML='Login:';
	}	
	
	


function check_form() {
	for (var i = 0; i < document.forms['contact'].elements.length; i++) {
		var FormElement = document.forms['contact'].elements[i].name
		 var j;
		 var radio_button_checked;
		 var radio_set;
		 
		
	 	if (FormElement == "fname") {
				if (document.forms['contact'].elements[i].value.length == 0)
				{
					alert("You must provide the your first name!")
					
					return false
				}
			}
			
		if (FormElement == "lname") {
				if (document.forms['contact'].elements[i].value.length == 0)
				{
					alert("You must provide the your last name!")
					
					return false
				}
			}	
		
		if (FormElement == "phone") {
				if (document.forms['contact'].elements[i].value.length == 0)
				{
					alert("You must provide the phone number!")
					
					return false
				}
			}
				
		if (FormElement =="email") {
				var vlength
    			  	vlength=document.forms['contact'].elements[i].value.length-1
				if (document.forms['contact'].elements[i].value.length == 0)
				{
					alert("You must enter a valid email address.  Example:  name@kanterpa.biz ")
					return false
				}

				if (document.forms['contact'].elements['email'].value != document.forms['contact'].elements['confEmail'].value)
				{
					alert("Your confirmation email must equal your email address!");
					return false
				}
  				// Check for a valid email address (Does it contain a "@" and ".")
  				if(document.forms['contact'].elements[i].value.indexOf('@', 0) == -1 || document.forms['contact'].elements[i].value.indexOf('.',0)==-1)
				{
					alert("You must enter a valid email address.  Example:  name@kanterpa.biz ")
					return false
				}
 				// Check for a valid email address ("@" or "." cannot be first character)
				if(document.forms['contact'].elements[i].value.charAt(0)=='@' || document.forms['contact'].elements[i].value.charAt(0)=='.')
				{
					alert("You must enter a valid email address.  Example:  name@kanterpa.biz ")
					return false
				}
				// Check for a valid email address ("@" or "." cannot be last character)
				if(document.forms['contact'].elements[i].value.charAt(vlength)=='@' || document.forms['contact'].elements[i].value.charAt(vlength)=='.')
				{
					alert("You must enter a valid email address.  Example:  name@kanterpa.biz ")
					return false
				}
  				// Check for a valid email address (Cannot have "@." or ".@")
				if(document.forms['contact'].elements[i].value.indexOf('@.')!=-1 || document.forms['contact'].elements[i].value.indexOf('.@')!=-1)
				{
					alert("You must enter a valid email address.  Example:  name@kanterpa.biz ")
					return false
				}
			
			}
			
		
			
		}
		
	return true	

}
function openScript(url, width, height) {
	        var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no,status=no' );
		}
