<!doctype html>
<html>





<head>
<meta charset="utf-8">
<title>: Admin Login</title>

<meta name="viewport" content="width=device-width, initial-scale=1">


	<link rel="stylesheet" href="https://use.typekit.net/bwx2oiy.css">
	<link href="/css_styles/cpnet-responsive.css" rel="stylesheet" type="text/css">


<script>// trim11() -- efficient Javascript trim function tested on http://blog.stevenlevithan.com/archives/faster-trim-javascript

function trim11 (str) {
	str = str.replace(/^\s+/, '');
	for (var i = str.length - 1; i >= 0; i--) {
		if (/\S/.test(str.charAt(i))) {
			str = str.substring(0, i + 1);
			break;
		}
	}
	return str;
}

function Check_first_child(container_object){
	
	container_object.firstChild.checked = true;
	
}

function Toggle_check_first_child(container_object){
	
	if(container_object.firstChild.checked == false)
	{
		container_object.firstChild.checked = true;
	}
	else
	{
		container_object.firstChild.checked = false;
	}
	
}

function Health_name_remove_periods(form_field)
{
	var comma_position = form_field.value.indexOf(',');
	
	if(comma_position > 0)
	{
		var up_to_comma = form_field.value.substr(0,comma_position);
		var after_comma = form_field.value.substr(comma_position);
		var after_comma_no_periods = after_comma.replace(/\./g,"");
		var return_string = up_to_comma + after_comma_no_periods;
	
		return_string = return_string.replace(", Jr",", Jr.");
		return_string = return_string.replace(", Sr",", Sr.");
		
		form_field.value = return_string;
	}
	else
	{
		// do nothing
	}
	
}

function Health_URL_format(form_field)
{
	var clean_URL = form_field.value;
	
	clean_URL = clean_URL.replace('http://www.',"");
	
	clean_URL = clean_URL.replace('https://www.',"");
	
	clean_URL = clean_URL.replace('http://',"");
	
	clean_URL = clean_URL.replace('https://',"");
	
	clean_URL = clean_URL.replace('www.',"");
	
	form_field.value = clean_URL;
		
}

function Strip_URL_http(form_field)
{
	var clean_URL = form_field.value;
	
	clean_URL = clean_URL.replace('http://',"");
	
	clean_URL = clean_URL.replace('https://',"");
	
	form_field.value = clean_URL;
		
}


// in 4D phone type field onchange, enter this.value = UCLA_lowercase_phone_type(this)

function UCLA_lowercase_phone_type(Phone_type_object)
{
var Phone_type = trim11(Phone_type_object.value);

	if( Phone_type.substr(0,4) == "UCLA"  | 
	Phone_type.substr(0,5) == "(UCLA"  | 
	Phone_type.substr(0,2) == "US" | 
	Phone_type.substr(0,3) == "DRC" | 
	Phone_type.substr(0,10) == "Chancellor" | 
	Phone_type.substr(0,8) == "WhatsApp" | 
	Phone_type.substr(0,9) == "(WhatsApp" |  
	Phone_type.substr(0,7) == "Twitter" | 
	Phone_type.substr(0,8) == "(Twitter" | 
	Phone_type.substr(0,8) == "Facebook"  | 
	Phone_type.substr(0,9) == "(Facebook"  | 
	Phone_type.substr(0,6) == "Linked"  | 
	Phone_type.substr(0,7) == "(Linked"  )
	{
		// do nothing
	}
	else
	{
		Phone_type = Phone_type.toLowerCase();

	}
		
	return Phone_type;

}


function Health_period_phone_format(Phone_object)
{
var Phone_number=trim11(Phone_object.value)
var Phone_number_stripped=""
var Phone_number_formatted=""
var Numeral_counter=0

// strip all non numbers
for(var Char_counter=0; Char_counter<Phone_number.length; Char_counter++)
{
  if( (Phone_number.charAt(Char_counter)=="0") | (Phone_number.charAt(Char_counter)=="1") | (Phone_number.charAt(Char_counter)=="2") | (Phone_number.charAt(Char_counter)=="3") | (Phone_number.charAt(Char_counter)=="4") | (Phone_number.charAt(Char_counter)=="5") | (Phone_number.charAt(Char_counter)=="6") | (Phone_number.charAt(Char_counter)=="7") | (Phone_number.charAt(Char_counter)=="8") | (Phone_number.charAt(Char_counter)=="9")  )
  {
	 Phone_number_stripped = Phone_number_stripped + Phone_number.charAt(Char_counter)
			
	 if(Numeral_counter<10)
	 {
		Numeral_counter = Numeral_counter+1
	 }
  }
  else
  {
	 // after 10 numbers stripped out, just include everything else entered to deal with phone extensions
	 if(Numeral_counter>9)
	 {
		Phone_number_stripped = Phone_number_stripped + Phone_number.charAt(Char_counter)
	 }
  }
}

if( ( Phone_number_stripped.length < 8) || ( Phone_number.substr(0,1) == "1") || ( Phone_number.substr(0,1) == "+") || ( Phone_number.indexOf("@") > 0) || ( Phone_number.indexOf("SKIN") > 0) || ( ( Phone_number_stripped.length + 9 ) < Phone_number.length ) )
{
 // do nothing
 	Phone_object.value = Phone_number;
}
else
{
  // format new number

      Phone_number_formatted=""

      for(Char_counter=0; Char_counter<Phone_number_stripped.length;Char_counter++)
      {
         if(Char_counter==2)
         {
            Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter) + "."
         }
         else
         {
            if(Char_counter==5)
            {
               Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter) + "."
            }
            else
            {
               Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter)
            }
         }
      }
   Phone_object.value=Phone_number_formatted
}

Health_URL_format(Phone_object);


}


// Format_phone_hyphen - syntax: onchange="Format_phone_hyphen(this)"

function Format_phone_hyphen(Phone_object)
{
var Phone_number=Phone_object.value
var Phone_number_stripped=""
var Phone_number_formatted=""
var Numeral_counter=0


if( ( Phone_number.substr(0,3).toUpperCase() == "TEL" ) || ( Phone_number.substr(0,4) == "(01)" ) || ( Phone_number.substr(0,1).toUpperCase() == "P" ) || ( Phone_number.substr(0,2) == "c ") || ( Phone_number.substr(0,2) == "C ") || ( Phone_number.substr(0,2) == "01") || ( Phone_number.substr(0,1) == "+")  || ( Phone_number.length < 7) )
{
	// do nothing
}
else
{
	// strip all non numbers
	for(var Char_counter=0; Char_counter<Phone_number.length; Char_counter++)
	{
	  if( (Phone_number.charAt(Char_counter)=="0") | (Phone_number.charAt(Char_counter)=="1") | (Phone_number.charAt(Char_counter)=="2") | (Phone_number.charAt(Char_counter)=="3") | (Phone_number.charAt(Char_counter)=="4") | (Phone_number.charAt(Char_counter)=="5") | (Phone_number.charAt(Char_counter)=="6") | (Phone_number.charAt(Char_counter)=="7") | (Phone_number.charAt(Char_counter)=="8") | (Phone_number.charAt(Char_counter)=="9")  )
	  {
		 Phone_number_stripped = Phone_number_stripped + Phone_number.charAt(Char_counter)
				
		 if(Numeral_counter<10)
		 {
			Numeral_counter = Numeral_counter+1
		 }
	  }
	  else
	  {
		 // after 10 numbers stripped out, just include everything else entered to deal with phone extensions
		 if(Numeral_counter>9)
		 {
			Phone_number_stripped = Phone_number_stripped + Phone_number.charAt(Char_counter)
		 }
	  }
	}
	
	if( ( Phone_number_stripped.length < 8) || ( Phone_number.substr(0,1) == "1") || ( Phone_number.substr(0,1) == "+") || ( Phone_number.indexOf("@") > 0) || ( ( Phone_number_stripped.length + 9 ) < Phone_number.length ) )
	{
	 // do nothing
	}
	else
	{
	  // format new number
	
		  Phone_number_formatted=""
	
		  for(Char_counter=0; Char_counter<Phone_number_stripped.length;Char_counter++)
		  {
			 if(Char_counter==2)
			 {
				Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter) + "-"
			 }
			 else
			 {
				if(Char_counter==5)
				{
				   Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter) + "-"
				}
				else
				{
				   Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter)
				}
			 }
		  }
	   Phone_object.value=Phone_number_formatted
	}
}


}



// Format_phone_space - syntax: onchange="Format_phone_space(this)"

function Format_phone_space(Phone_object)
{
var Phone_number=Phone_object.value
var Phone_number_stripped=""
var Phone_number_formatted=""
var Numeral_counter=0

if(( Phone_number.substr(0,4) == "(01)" ) || ( Phone_number.substr(0,2) == "c ") || ( Phone_number.substr(0,2) == "C ") || ( Phone_number.substr(0,2) == "01") || ( Phone_number.substr(0,1) == "+"))
{
	// do nothing
}
else
{
	// strip all non numbers
	for(var Char_counter=0; Char_counter<Phone_number.length; Char_counter++)
	{
	  if( (Phone_number.charAt(Char_counter)=="0") | (Phone_number.charAt(Char_counter)=="1") | (Phone_number.charAt(Char_counter)=="2") | (Phone_number.charAt(Char_counter)=="3") | (Phone_number.charAt(Char_counter)=="4") | (Phone_number.charAt(Char_counter)=="5") | (Phone_number.charAt(Char_counter)=="6") | (Phone_number.charAt(Char_counter)=="7") | (Phone_number.charAt(Char_counter)=="8") | (Phone_number.charAt(Char_counter)=="9")  )
	  {
		 Phone_number_stripped = Phone_number_stripped + Phone_number.charAt(Char_counter)
				
		 if(Numeral_counter<10)
		 {
			Numeral_counter = Numeral_counter+1
		 }
	  }
	  else
	  {
		 // after 10 numbers stripped out, just include everything else entered to deal with phone extensions
		 if(Numeral_counter>9)
		 {
			Phone_number_stripped = Phone_number_stripped + Phone_number.charAt(Char_counter)
		 }
	  }
	}
	
	if( ( Phone_number_stripped.length < 8) || ( Phone_number.substr(0,1) == "1") || ( Phone_number.substr(0,1) == "+") || ( Phone_number.indexOf("@") > 0) || ( ( Phone_number_stripped.length + 9 ) < Phone_number.length ) )
	{
	 // do nothing
	}
	else
	{
	  // format new number
	
		  Phone_number_formatted=""
	
		  for(Char_counter=0; Char_counter<Phone_number_stripped.length;Char_counter++)
		  {
			 if(Char_counter==2)
			 {
				Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter) + " "
			 }
			 else
			 {
				if(Char_counter==5)
				{
				   Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter) + " "
				}
				else
				{
				   Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter)
				}
			 }
		  }
	   Phone_object.value=Phone_number_formatted
	}
}


}




// Format_phone_parenspace - syntax: onchange="Format_phone_parenspace(this)"

function Format_phone_parenspace(Phone_object)
{
var Phone_number=Phone_object.value
var Phone_number_stripped=""
var Phone_number_formatted=""
var Numeral_counter=0

if( ( Phone_number.substr(0,5) == "Phone" ) || ( Phone_number.substr(0,6) == "Office" ) || ( Phone_number.substr(0,3) == "Fax" ) || ( Phone_number.substr(0,4) == "(01)" ) || ( Phone_number.substr(0,2) == "c ") || ( Phone_number.substr(0,2) == "C ") || ( Phone_number.substr(0,2) == "01") || ( Phone_number.substr(0,1) == "+") || ( Phone_number.substr(2,1) == " " ) )
{
	// do nothing
}
else
{
	// strip all non numbers
	for(var Char_counter=0; Char_counter<Phone_number.length; Char_counter++)
	{
	  if( (Phone_number.charAt(Char_counter)=="0") | (Phone_number.charAt(Char_counter)=="1") | (Phone_number.charAt(Char_counter)=="2") | (Phone_number.charAt(Char_counter)=="3") | (Phone_number.charAt(Char_counter)=="4") | (Phone_number.charAt(Char_counter)=="5") | (Phone_number.charAt(Char_counter)=="6") | (Phone_number.charAt(Char_counter)=="7") | (Phone_number.charAt(Char_counter)=="8") | (Phone_number.charAt(Char_counter)=="9")  )
	  {
		 Phone_number_stripped = Phone_number_stripped + Phone_number.charAt(Char_counter)
			
		 if(Numeral_counter<10)
		 {
			Numeral_counter = Numeral_counter+1
		 }
	  }
	  else
	  {
		 // after 10 numbers stripped out, just include everything else entered to deal with phone extensions
		 if(Numeral_counter>9)
		 {
			Phone_number_stripped = Phone_number_stripped + Phone_number.charAt(Char_counter)
		 }
	  }
	}

	if( ( Phone_number_stripped.length < 8) || ( Phone_number.substr(0,1) == "1") || ( Phone_number.substr(0,1) == "+") || ( Phone_number.indexOf("@") > 0) || ( ( Phone_number_stripped.length + 9 ) < Phone_number.length ) )
	{
	 // do nothing
	}
	else
	{
	  // format new number

		  Phone_number_formatted="("

		  for(Char_counter=0; Char_counter<Phone_number_stripped.length;Char_counter++)
		  {
			 if(Char_counter==2)
			 {
				Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter) + ") "
			 }
			 else
			 {
				if(Char_counter==5)
				{
				   Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter) + "-"
				}
				else
				{
				   Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter)
				}
			 }
		  }
	   Phone_object.value=Phone_number_formatted
	}


}



}



// Format_anderson_parenspace - syntax: onchange="Format_anderson_parenspace(this)"

function Format_anderson_parenspace(Phone_object)
{
var Phone_number=Phone_object.value
var Phone_number_stripped=""
var Phone_number_formatted=""
var Numeral_counter=0

if( ( Phone_number.substr(0,4) == "(01)" ) || ( Phone_number.substr(0,2) == "01") || ( Phone_number.substr(0,1) == "+") || ( Phone_number.substr(2,1) == " "))
{
	// do nothing
}
else
{
	// strip all non numbers
	for(var Char_counter=0; Char_counter<Phone_number.length; Char_counter++)
	{
	  if( (Phone_number.charAt(Char_counter)=="0") | (Phone_number.charAt(Char_counter)=="1") | (Phone_number.charAt(Char_counter)=="2") | (Phone_number.charAt(Char_counter)=="3") | (Phone_number.charAt(Char_counter)=="4") | (Phone_number.charAt(Char_counter)=="5") | (Phone_number.charAt(Char_counter)=="6") | (Phone_number.charAt(Char_counter)=="7") | (Phone_number.charAt(Char_counter)=="8") | (Phone_number.charAt(Char_counter)=="9")  )
	  {
		 Phone_number_stripped = Phone_number_stripped + Phone_number.charAt(Char_counter)
			
		 if(Numeral_counter<10)
		 {
			Numeral_counter = Numeral_counter+1
		 }
	  }
	  else
	  {
		 // after 10 numbers stripped out, just include everything else entered to deal with phone extensions
		 if(Numeral_counter>9)
		 {
			Phone_number_stripped = Phone_number_stripped + Phone_number.charAt(Char_counter)
		 }
	  }
	}

	if( ( Phone_number_stripped.length < 8) || ( Phone_number.substr(0,1) == "1") || ( Phone_number.substr(0,1) == "+") || ( Phone_number.indexOf("@") > 0) || ( ( Phone_number_stripped.length + 9 ) < Phone_number.length ) )
	{
	 // do nothing
	}
	else
	{
	  // format new number

		  Phone_number_formatted="("

		  for(Char_counter=0; Char_counter<Phone_number_stripped.length;Char_counter++)
		  {
			 if(Char_counter==2)
			 {
				Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter) + ") "
			 }
			 else
			 {
				if(Char_counter==5)
				{
				   Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter) + "-"
				}
				else
				{
				   Phone_number_formatted=Phone_number_formatted + Phone_number_stripped.charAt(Char_counter)
				}
			 }
		  }
	   Phone_object.value=Phone_number_formatted
	}


}



}






// Disable_enterkey_submit() - disables enter key when cursor is in input field where function is called
//   by  onkeydown="Disable_enterkey_submit(event.keyCode,event)"

function Disable_enterkey_submit(key_pressed_for_Gecko,event_for_Gecko) 
{    
	var k_code = key_pressed_for_Gecko

	if(isGecko())
	{
		if(k_code == 13)
		{
			event_for_Gecko.preventDefault()
		}
	}
	else
	{
		if(isIE())
		{
			k_code == event.keyCode
			
			if (k_code == 13) 
			{        
				event.cancelBubble = true;
				event.returnValue = false;
      			}
		}
		else 
		{
      			// do nothing, (Enter key does not submit old netscape)
		}
		
	}
	
} 

// stop bubbling, such as when a check box is clicked
function Stop_propagation(event){

	if (event.stopPropagation)
	{    // standard
			event.stopPropagation();
	} else {
	    // IE6-8
			event.cancelBubble = true;
	}
}


// Open_image_subwindow() - opens another window according to size of image

function Open_image_subwindow(Subwindow_url,Image_width,Image_height)
{

var max_width =790
var max_height = 540
var set_width = Image_width + 40
var set_height = Image_height + 40

	if(set_width > max_width)
	{
		set_width = max_width
	}

	if(set_height > max_height)
	{
		set_height = max_height
	}


var sub_window = eval("window.open('','subwindow','width=" + set_width + ",height=" + set_height + ",resizable,scrollbars,status')");


sub_window.location = Subwindow_url

sub_window.focus()

}


// Open_image_subwindow_unnamed() - opens another window according to size of image
// unnamed allows multiple windows to be opened at same time

function Open_image_subwindow_unnamed(Subwindow_url,Image_width,Image_height)
{
var max_width =700
var max_height = 480
var set_width = Image_width + 40
var set_height = Image_height + 40

	if(set_width > max_width)
	{
		set_width = max_width
	}

	if(set_height > max_height)
	{
		set_height = max_height
	}


var sub_window = eval("window.open('','','width=" + set_width + ",height=" + set_height + ",resizable,scrollbars,status')");


sub_window.location = Subwindow_url

}





// Open_wait_subwindow() - opens sub window and displays wait message passed
var sub_window_open="false"
var sub_window_wait
function Open_wait_subwindow(Wait_for_reason)
{

	sub_window_wait = window.open('','subwindow','width=600, height=150,resizable,scrollbars,status');
	sub_window_wait.outerHeight=200
	sub_window_wait.location="/4dcgi/wait/"+Wait_for_reason
	sub_window_open="true"
sub_window_wait.focus()
}
// Close_wait_window() - closes wait message subwindow
function Close_wait_window()
{
	if(sub_window_open=="true")
	{
		if(!sub_window_wait.closed)
		
		{
			sub_window_wait.close()
		}
	}
}

// Open_link_subwindow() - opens a subwindow 600x420 pixels
function Open_link_subwindow(Link_href)


{
var Link_subwindow = window.open('','linksubwindow','width=600, height=420, resizable, scrollbars, status, toolbar, menubar')
Link_subwindow.location = Link_href
Link_subwindow.focus()
}

// Show_hidden_element() - pass element ID
function Show_hidden_element(Element_ID)
{
var Element_to_show = document.getElementById(Element_ID)
Element_to_show.style.visibility="visible"
}

// Hide_element() - pass element ID
function Hide_element(Element_ID)
{
var Element_to_show = document.getElementById(Element_ID)
Element_to_show.style.visibility="hidden"
}

// Browser testers
function isMac()
{
	if(navigator.userAgent.indexOf("Mac") != -1){
		return true;
	}
}
function isGecko()
{
// Safari browser also returns True as a Gecko Browser, usually it is compatible
// use isGeckoNotSafari() if you do not want to include Safari
	if(navigator.userAgent.indexOf("Gecko") != -1){
		return true;
	}
}
function isSafari()
{
// Safari browser also returns True as a Gecko Browser, usually it is compatible
// use isGeckoNotSafari() if you do not want to include Safari
	if(navigator.userAgent.indexOf("Safari") != -1){
		return true;
	}
}
function isIE()
{
	if(navigator.appName == "Microsoft Internet Explorer"){
		return true;
	}
}
function isOldNetscape()
{
	if( (navigator.appName == "Netscape") && ( parseInt(navigator.appVersion) < 5) ){
		return true;
	}
}

function isGeckoNotSafari()
{
	if(isGecko())
	{
		if(isSafari())
		{
			return false; 
		}
		else
		{
			return true;
		}
	}
}

function isGeckoNotMac()
{
	if(isGecko())
	{
		if(isMac())
		{
			return false; 
		}
		else
		{
			return true;
		}
	}
}

function isDigit(passedChar)
{
	if( passedChar >= "0" && passedChar <= "9")
	{
		return true;
	}
	else
	{
		return false;
	}
}

function isAlpha(passedChar)
{
	if(((passedChar >= "a") && (passedChar <= "z")) || ((passedChar >= "A") && (passedChar <= "Z")))
	{
		return true;
	}
	else
	{
		return false;
	}
}

function isAlphaOrDigit(passedChar)
{
	if(isAlpha() || isDigit())
	{
		return true;
	}
	else
	{
		return false;
	}
	
}

// Show_upload_preview_window - pass file upload object, shows file source in new window
function Show_upload_preview_window(browse_object)
{
var image_path = browse_object.value
	if(image_path=="")
	{
	var window_open = window.open("","image_window","height=400,width=400,resizable,scrollbars,status")
	var Document_html = "No file to view, click browse to select file."
	window_open.document.write(Document_html)
	window_open.document.close()
	}
	else
	{
	var file_path
		if(isMac())
			{
			if(isGecko())
				{
				file_path = "file:///" + image_path.replace(/\:/g,"\/")
				file_path = file_path.replace(/\ /g,"\%20")
				}
			else
				{
				file_path  = "file://" + image_path
				}
			}
		else
			{
			if(isGecko())
				{
				file_path = "file:///"+image_path.replace(/\\/g,"\/")
				file_path = file_path.replace(/\ /g,"\%20")
				}
			else
				{
				file_path = image_path
				}
			}
		//alert(file_path)
		var window_open = window.open(file_path,"image_window","height=400,width=400,resizable,scrollbars,status")
		}

}


//this function swaps images on rollovers

function swapImage(imageName)
{
var storeImage= imageName.src
	imageName.src = imageName.lowsrc
	imageName.lowsrc = storeImage
}





// Name_to_uppercase - all caps name, except for Mc and PhD, pass object:  Name_to_uppercase(this)

function Name_to_uppercase(Name_object)
{
	if( Name_object.value.substr(0,1) == "!" )
	{
		var SubstrCount = Name_object.value.length ;
		var Name_to_return = Name_object.value.substring(1,SubstrCount);
	}
	else
	{
		var Name_to_return = Name_object.value.toUpperCase();
	
		Name_to_return = Name_to_return.replace(/ MC/, " Mc");
		Name_to_return = Name_to_return.replace(/, Mc/, ", MC");
	
		Name_to_return = Name_to_return.replace(/AEENG\./, "AeEng.");
		Name_to_return = Name_to_return.replace(/AE\.ENG\./, "AeEng.");
		Name_to_return = Name_to_return.replace(/B\.AG\./, "B.Ag.");
		Name_to_return = Name_to_return.replace(/B\.ARCH\./, "B.Arch.");
		Name_to_return = Name_to_return.replace(/B\.CH\.E\./, "B.Ch.E.");
		Name_to_return = Name_to_return.replace(/B\.LIT\./, "B.Lit.");
		Name_to_return = Name_to_return.replace(/B\.PHARM\./, "B.Pharm.");
		Name_to_return = Name_to_return.replace(/B\.S\.ED\./, "B.S.Ed.");
		Name_to_return = Name_to_return.replace(/CENG\./, "CEng.");
		Name_to_return = Name_to_return.replace(/CH\.E\./, "Ch.E.");

		Name_to_return = Name_to_return.replace(/CHARTERED\ FINANCIAL\ ANALYST/, "Chartered Financial Analyst");

		Name_to_return = Name_to_return.replace(/D\.ED\./, "D.Ed.");
		Name_to_return = Name_to_return.replace(/D\.ENV/, "D.Env");
		Name_to_return = Name_to_return.replace(/D\.SC\./, "D.Sc.");
		Name_to_return = Name_to_return.replace(/ED\.D\./, "Ed.D.");
		Name_to_return = Name_to_return.replace(/ED\.S\./, "Ed.S.");
		Name_to_return = Name_to_return.replace(/E\.MET\./, "E.Met.");
		Name_to_return = Name_to_return.replace(/LITT\.B\./, "Litt.B.");
		Name_to_return = Name_to_return.replace(/LITT\.M\./, "Litt.M.");
		Name_to_return = Name_to_return.replace(/M\.AERO\.E\./, "M.Aero.E.");
		Name_to_return = Name_to_return.replace(/M\.DIV\./, "M.Div.");
		Name_to_return = Name_to_return.replace(/M\.ARCH\./, "M.Arch.");
		Name_to_return = Name_to_return.replace(/M\.ARCH/, "M.Arch");
		Name_to_return = Name_to_return.replace(/M\.ENG\./, "M.Eng.");
		Name_to_return = Name_to_return.replace(/M\.ED\./, "M.Ed.");
		Name_to_return = Name_to_return.replace(/ED\.M\./, "Ed.M.");
		Name_to_return = Name_to_return.replace(/M\.MUS\./, "M.Mus.");
		Name_to_return = Name_to_return.replace(/M\.TH\./, "M.Th.");
		Name_to_return = Name_to_return.replace(/MSED/, "MSEd");
		Name_to_return = Name_to_return.replace(/MS\.ED\./, "MS.Ed.");
		

		Name_to_return = Name_to_return.replace(/M\.SC\./, "M.Sc.");
		
		if( Name_to_return.indexOf("MSCE") > -1)
		{
			// do not fix "MSC" if "MSCE"
		}
		else
		{
			Name_to_return = Name_to_return.replace(/MSC/, "M.Sc.");
		}
		
		Name_to_return = Name_to_return.replace(/NUC\.E\./, "Nuc.E.");
		Name_to_return = Name_to_return.replace(/PHARM\.D\./, "Pharm.D.");
		Name_to_return = Name_to_return.replace(/PHD/, "PhD");
		Name_to_return = Name_to_return.replace(/PH\.D/, "Ph.D");
		Name_to_return = Name_to_return.replace(/PHB/, "PhB");
		Name_to_return = Name_to_return.replace(/PH\.B\./, "Ph.B.");
		Name_to_return = Name_to_return.replace(/SC\.D\./, "Sc.D.");
		Name_to_return = Name_to_return.replace(/S\.SC\.D\./, "S.Sc.D.");
		Name_to_return = Name_to_return.replace(/TH\.B\./, "Th.B.");
		Name_to_return = Name_to_return.replace(/TH\.D\./, "Th.D.");
		Name_to_return = Name_to_return.replace(/TH\.M\./, "Th.M.");
		Name_to_return = Name_to_return.replace(/D\.PHIL/, "D.Phil");
		Name_to_return = Name_to_return.replace(/DPHIL/, "DPhil");
		Name_to_return = Name_to_return.replace(/ESQ\./, "Esq.");
		Name_to_return = Name_to_return.replace(/ RPH/, " RPh");
		Name_to_return = Name_to_return.replace(/ED\.D/, "Ed.D");
		Name_to_return = Name_to_return.replace(/, EDD/, ", EdD");
		Name_to_return = Name_to_return.replace(/DNSC/, "DNSc");
		Name_to_return = Name_to_return.replace(/\(H\.C\.\)/g, "(h.c.)");
		Name_to_return = Name_to_return.replace(/D\.ENG/, "D.Eng");
		Name_to_return = Name_to_return.replace(/MPHIL/, "MPhil");
		Name_to_return = Name_to_return.replace(/\(CANTAB\)/, "(cantab)");
		Name_to_return = Name_to_return.replace(/CANDIDATE/, "Candidate");

	}
	
	return Name_object.value = Name_to_return;

}




function Disallow_caps(form_field)
{
	var compare_text = form_field.value
	
	if( trim11(compare_text).length != 0 )
	{
		if( compare_text === compare_text.toUpperCase() )
		{
			alert("All caps are not allowed for this field" )
		
			setTimeout( function(){form_field.focus();form_field.select()}, 10 )
		}
	}

}

function Disallow_URL_UCLA_Address(form_field)
{
	var compare_text = form_field.value;
	
	if( compare_text.includes(".com") )
	{
			alert("Internet URLS are not allowed in address area." );
			setTimeout( function(){form_field.focus();form_field.select()}, 10 );
	}
	if( compare_text.includes(".org") )
	{
			alert("Internet URLS are not allowed in address area." );
			setTimeout( function(){form_field.focus();form_field.select()}, 10 );
	}
	if( compare_text.includes(".edu") )
	{
			alert("Internet URLS are not allowed in address area." );
			setTimeout( function(){form_field.focus();form_field.select()}, 10 );
	}

}


function Disallow_caps_UCLA_name (form_field)
{
	var comma_position = form_field.value.indexOf(',')
	
	var compare_text = ""
	
	if(comma_position == -1)
	{
		compare_text = form_field.value
	}
	else
	{
		compare_text = form_field.value.substr(0,comma_position)
	}
	

	if( trim11(compare_text).length != 0 )
	{
		if( compare_text === compare_text.toUpperCase() )
		{
			alert("All caps are not allowed for name." )
		
			setTimeout( function(){form_field.focus();form_field.select()}, 10 )
		}
	}

}




// Interpolated_Y_Value -- 
// pass X value of related Y value to be determined and 2 parallel Arrays of pre-determined X,Y value relationships to interpolate
// Terminology Note: _is_above_... and _is_below_... refer to position in array, not value

function Interpolated_Y_Value(X_passed,X_values_array,Y_values_array)
{
var Position_in_Xarray = -1
var Number_of_value_pairs = 0
var Values_array_counter = 0
var X_is_above = 0
var X_is_below = 0
var Y_is_above = 0
var Y_is_below = 0
var X_range = 0
var Y_range = 0
var X_difference = 0
var Y_difference = 0
var No_X_is_below_found_b = true
var No_X_is_above_found_b = true
var X_out_of_range_below_b = false
var X_out_of_range_above_b = false
var Y_interpolated = null

	Number_of_value_pairs = X_values_array.length

	// convert passed text values to numbers
	X_passed = parseFloat(X_passed)
	for(var i = 0;i < Number_of_value_pairs; i = i + 1)
	{
		X_values_array[i]=parseFloat(X_values_array[i])
		Y_values_array[i]=parseFloat(Y_values_array[i])
	}
	
	
	for(var i = 0;i < Number_of_value_pairs;i=i+1)
	{
		if(X_values_array[i] == X_passed)
		{
		Position_in_Xarray = i
		}
	}

	if(Position_in_Xarray > -1)
	{
		//if X_passed is in X Array, return corresponding Y, no need to interpolate
		Y_interpolated = Y_values_array[Position_in_Xarray]
	}
	else
	{
	
		if(X_values_array[0] < X_values_array[Number_of_value_pairs - 1])
		{
			// X Ascending values
			
			if(X_passed < X_values_array[0])
			{
				//X out of range BELOW
				X_out_of_range_below_b = true
			}
			else
			{
				if(X_passed > X_values_array[Number_of_value_pairs - 1])
				{
					//X out of range ABOVE
					X_out_of_range_above_b = true
				}
				
				else
				{
					// determine nearest value above and below to interpolate
					
					for(var i = 0; i < Number_of_value_pairs; i = i + 1)
					{
					
						if(i < Number_of_value_pairs - 1)
						{
							// not last time through
							if((X_passed > X_values_array[i]) && (X_passed < X_values_array[i + 1]))
							{
							
								X_is_above = X_values_array[i]
								Y_is_above = Y_values_array[i]
								No_X_is_above_found_b = false
								X_is_below = X_values_array[i + 1]
								Y_is_below = Y_values_array[i + 1]
								No_X_is_below_found_b = false
							}
						}
					}
				}
			}
		}
		else
		{
			// X Descending values
			if(X_passed > X_values_array[0])
			{
				//X out of range BELOW
				X_out_of_range_below_b = true
			}
			else
			{
				if(X_passed < X_values_array[Number_of_value_pairs - 1])
				{
					//X out of range ABOVE
					X_out_of_range_above_b = true
				}
				else
				{
					// determine nearest value above and below to interpolate
					for(var i = 0; i < Number_of_value_pairs; i = i + 1)
					{
						if(i < Number_of_value_pairs - 1)
						{
							// not last time through
							if((X_passed < X_values_array[i]) && (X_passed > X_values_array[i + 1]))
							{
								X_is_above = X_values_array[i]
								Y_is_above = Y_values_array[i]
								No_X_is_above_found_b = false
								X_is_below = X_values_array[i + 1]
								Y_is_below = Y_values_array[i + 1]
								No_X_is_below_found_b = false
							}
						}
					}
				}
			}
		}
	}
	
	if(X_out_of_range_below_b)
	{
		// return lowest position in array
		Y_interpolated = Y_values_array[0]
	}
	else
	{
		if(X_out_of_range_above_b)
		{
			// return highest position in array
			Y_interpolated = Y_values_array[Number_of_value_pairs - 1]
		}
		else
		{
			if(Y_interpolated != null)
			{
			 	// already found above, do nothing
			}
			else
			{
				// interpolate Y Value
				X_range = Math.abs(X_is_below - X_is_above)
				Y_range = Math.abs(Y_is_below - Y_is_above)
						
				if(X_passed > X_is_above)
				{
					X_difference = X_passed - X_is_above
				}
				else
				{
					X_difference = X_is_above - X_passed
				}
			
				Y_difference =( X_difference / X_range) * Y_range
			
				if(Y_is_below > Y_is_above)
				{
					// Y is ascending
					Y_interpolated = Y_is_above + Y_difference
				}
				else
				{
					// Y is descending
					Y_interpolated = Y_is_above - Y_difference

				}	
			}
		}
	}
	
	return Y_interpolated;
	
}

// Round_two_decimals_text - Pass value, returns text formatted to 2 decimal places

function Round_two_decimals_text(Passed_value)
{
var Passed_value_as_text = String(Passed_value)
var Position_decimal = Passed_value_as_text.indexOf(".")


	if(Position_decimal == -1)
	{
		// no decimal, return value + ".00"
		return Passed_value_as_text + ".00";
	}
	else
	{
		var Before_decimal_text = Passed_value_as_text.substring(0,Position_decimal)
		var After_decimal_text = Passed_value_as_text.substring(Position_decimal + 1, Passed_value_as_text.length)
		var Temp_num


		if(After_decimal_text.length>2)
		{
			if(parseInt(After_decimal_text.substring(0,1)) > 4)
			{
			console.log(After_decimal_text.substring(0,1));
			
				Temp_num = parseInt(After_decimal_text.substring(1,2))+1
				
				if(Temp_num == 10)
				{
					Temp_num = parseInt(After_decimal_text.substring(0,1))+1
					After_decimal_text = Temp_num + "0"
					
					
				}
				else
				{
					After_decimal_text = After_decimal_text.substring(0,1) + Temp_num
				}
				
			}
			else
			{
				After_decimal_text = After_decimal_text.substring(0,2)
			}
		
		}
		else
		{
			if(After_decimal_text.length==0)
			{
				After_decimal_text = After_decimal_text + "00"
			}
			else
			{
				if(After_decimal_text.length==1)
				{
					After_decimal_text = After_decimal_text + "0"
				}
				else
				{
					// it is length 2, no change
				}
			}
		}
	}
	
	
	
	return Before_decimal_text + "." + After_decimal_text;
	
	
	
}

function Open_mailinglists_subwindow(Link_href)
{
var Link_subwindow = window.open('','mailinglistssubwindow','width=820, height=600, resizable, scrollbars')
Link_subwindow.location = Link_href
}


function User_verify_link(Confirm_text,URL_requested)
{	
	if(confirm(Confirm_text))
	{
		window.location = URL_requested
	}
	else
	{
		// do nothing
	}
}


function Switch_foot_to_apostrophe(Input_object)
{
Input_object.value = Input_object.value.replace(/'/g,String.fromCharCode(8217))
}

// Cross-browser implementation of element.addEventListener()
function Add_event_listener (element, type, expression, bubbling)
{
	bubbling = bubbling || false;
 
	if(window.addEventListener)	{ // Standard
		element.addEventListener(type, expression, bubbling);
		return true;
	} else if(window.attachEvent) { // IE
		element.attachEvent('on' + type, expression);
		return true;
	} else return false;
}


//Used in for Degrees/Credential field -- Adds comma in beginning and removes periods

function OIC_add_Comma(field)
{
var field_value = trim11(field.value).replace(/\./g,"");

	if(field_value != "")
	{
		if(field_value == ",")
		{
		field_value = "";		
		}
		else
		{
			if(field_value.charAt(0) == ",")
			{
			//do nothing			
			}
			else
			{
			field_value = ", " + field_value;
			}
		}
		
	}

return field_value;
}




</script>

<script>


function Set_login_destination(Form_to_submit,Form_action)
{
	Form_to_submit.action=Form_action
	Form_to_submit.submit()
}

function Set_password_or_user_focus()
{
var Login_error = ""

	if(Login_error=="Password")
	{
		document.forms[0].Admin_password_web.focus()
	}
	else
	{
		document.forms[0].Admin_login_web.focus()
		document.forms[0].Admin_login_web.select()
	}
}

function Update_admin_submit(action_task)
{
	
	document.forms.WebadminLogin.action = '/4dcgi/webadmin//'+action_task+'/18217';
	
	document.getElementById("Admin_login_web").focus();
	
}


</script>



</head>

<body onload="Set_password_or_user_focus();">

<div id="mainWrapper">
  <header>

		<div id="logo">
	
			
				<img class="logoimg" src="" border="0">
			
	
		</div>

  </header>
  
<!-- The offer section displays a banner text for promotions 
  <section id="offer"> 
  </section>
-->
  <div id="content">
  
    <section class="sidebarNarrow"> 
		<img  src="/images/cp800smalllogo.gif" alt="For support call " border="0">
		
		<p>	
			<a href="index.html">
				Return to catalog login
			</a>
		</p>

	</section>
    
    
    <section class="mainContentWide">
    
		
		
	
		<h1>Admin Login</h1>
		
				
		<div class="loginInputContainer" id="loginInput">
		
			<p>
				Please select task and enter admin login and password.
			</p>
		
			<form name="WebadminLogin" method="post" action="/4dcgi/webadmin//approvalorders/5182">

				<div class="loginInputFields">
					<label>Select task</label><div style="display:inline-block">
												<div class="radioOption" onclick="Check_first_child(this); Update_admin_submit('approvalorders')"><input type="radio" onclick="Update_admin_submit('approvalorders')" name="Keyword_web" value="approvalorders"  checked   >&nbsp;Show orders requiring approval</div><br>
												
												<div class="radioOption" onclick="Check_first_child(this); Update_admin_submit('orderhistory')"><input type="radio" onclick="Update_admin_submit('orderhistoryfind')" name="Keyword_web" value="orderhistoryfind"  >&nbsp;Order history</div><br>
												
												<div class="radioOption" onclick="Check_first_child(this); Update_admin_submit('inventory')"><input type="radio" onclick="Update_admin_submit('inventory')" name="Keyword_web" value="inventory"  >&nbsp;Check Inventory</div><br>

												<!--
												
												<div class="radioOption" onclick="Check_first_child(this); Update_admin_submit('itemhistory')"><input type="radio" onclick="Update_admin_submit('itemhistory')" name="Keyword_web" value="itemhistory"  >&nbsp;Item history</div><br>
											
												<div class="radioOption" onclick="Check_first_child(this); Update_admin_submit('adminaccount')"><input type="radio" onclick="Update_admin_submit('adminaccount')" name="Keyword_web" value="adminaccount"  >&nbsp;WebAdmin edit account information</div><br>
												
												<div class="radioOption" onclick="Check_first_child(this); Update_admin_submit('rights/page')"><input type="radio" onclick="Update_admin_submit('rights/page')" name="Keyword_web" value="rights/page"  >&nbsp;Edit user approval rights</div><br>
												
												<div class="radioOption" onclick="Check_first_child(this); Update_admin_submit('editsupervisors/page')"><input type="radio" onclick="Update_admin_submit('editsupervisors/page')" name="Keyword_web" value="editsupervisors/page"  >&nbsp;Edit approval supervisors dropdowns</div><br>
												
												<div class="radioOption" onclick="Check_first_child(this); Update_admin_submit('supervisors')"><input type="radio" onclick="Update_admin_submit('supervisors')" name="Keyword_web" value="supervisors"  >&nbsp;Edit approval supervisors dropdowns</div><br>

												-->

												</div>
				</div>

				<div class="loginInputFields">
					<label>Admin Login</label><input type="text" id="Admin_login_web" name="Admin_login_web" size="35" value="" >
				</div>
			
				<div class="loginInputFields">
					<label>Admin Password</label><input type="password" name="Admin_password_web" size="10" value="" >
				</div>
				
				
				<p>
					<button type="submit" class="itemVariableSubmitButton">Login</button>
				</p>
				
				

					
				

			

										
			</form>
		</div>
		
    </section>
  </div>
  
  <footer> 

  </footer>
  
</div>
</body>
</html>
