/****************************************
* Copyright 2006 Ex-designz.net & Myasp-net.com
* JavaScript written by: Dexter Zafra
****************************************/

//--------------------------------------------------------//
// Handle PopUp Window
function openWinReqPassword(url) 
 {
 popupWin = window.open(url,'new_page','width=430,height=230,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no')
}
//--------------------------------------------------------//

//--------------------------------------------------------//
// Multiple Functions to handle element OnFocus event on Login form
function UnameFocus() 
 {
   document.getElementById('username').style.backgroundColor = '#FFF9EC'; //Make the textbox color lightyellow
   document.getElementById('lbluname').style.color = '#000000'; //Make the label text color black
   document.getElementById('lbluname').innerHTML = 'Username:'; //On error raised textbox focus, assign label default text 
}
function PassWordFocus() 
 {
   document.getElementById('password').style.backgroundColor = '#FFF9EC'; 
   document.getElementById('lblpass').style.color = '#000000';
   document.getElementById('lblpass').innerHTML = 'Password:';
}
function ConfirmPassFocus() 
{   
   document.getElementById('confirmpassword').style.backgroundColor = '#FFF9EC'; 
   document.getElementById('lblconfirmpass').style.color = '#000000';
   document.getElementById('lblconfirmpass').innerHTML = 'Confirm Password:';
}
function EmailAddress() 
{
   document.getElementById('emailaddress').style.backgroundColor = '#FFF9EC'; 
   document.getElementById('lblemailaddress').style.color = '#000000';
   document.getElementById('lblemailaddress').innerHTML = 'Email Address:';
}
