    // SHOW OR HIDE SECTION
    function ShowHide(nr){
        if(document.getElementById(nr).style.display=="none")
        {
            document.getElementById(nr).style.display=''  ;
        } else {
            document.getElementById(nr).style.display="none";
        }
    }
	
    function taLimit() {
    	var taObj=event.srcElement;
    	if (taObj.value.length==255*1) return false;
    }
    
    function taCount(visCnt) { 
    	var taObj=event.srcElement;
    	if (taObj.value.length>255*1) taObj.value=taObj.value.substring(0,255*1);
    	if (visCnt) visCnt.innerText=255-taObj.value.length;
    }
	
    // OPEN NEW WINDOW (centered)
    function NewWindow(mypage, myname, w, h, scroll) {
    	var winl = (screen.width - w) / 2;
    	var wint = (screen.height - h) / 2;
    	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
    	win = window.open(mypage, myname, winprops)
    	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
    }

    // CLEAR LOGIN
    function ClearLogin(ID,I_NAME) {
    	if (confirm("Are you sure you want to clear your login (username & password) information ?")) {
    		window.location.replace("reminder.asp?smode=clear");
    	}
    }
	
	function ValidateUpload(){
        if (document.frm.FILE1.value=="") {
        	alert("Please select the file you'd like to upload from your local hard drive.")
        	document.frm.FILE1.focus()
        return false }
    }
	

    // VALIDATE ISSUE
    function ValidStepOne(){
        if (document.frm.title.value=="") {
        	alert("Please enter a descriptive title for the support issue you'd like submit.")
        	document.frm.title.focus()
        return false }
    }

    // ADDITIONAL INFORMATION FORM VALIDATION
    function ValidateADDITIONALINFO(){
        if (document.frm.add_info.value=="") {
        	alert("Please enter additional information.")
        	document.frm.add_info.focus()
        return false }
    }
    // CLEAR BOOKMARKS
    function ClearBooks() {
    	if (confirm("Clear all bookmarks ?")) {
    		window.location.replace("bookmarks.asp?clear=true");
    	}
    }
    // CLOSE ISSUE
    function CloseIssue(ID) {
    	if (confirm("Would you like to close this issue ?\nOnce closed the issue will not be updated with additional information by any agent.\n\nYou will be able to reopen the issue at any time after it's been closed.")) {
    		window.location.replace("update.asp?ID=" + ID + "&closed=True");
    	}
    }    
    // VALIDATE STATUS
    function ValidateStatus(){
        if (document.frm.id.value=="") {
        	alert("Please enter issue ID (number) to track.")
        	document.frm.id.focus()
        return false }
    }    
    // ADD BOOKMARK
    function AddBookmark(ID, CATE) {
    	if (confirm("Add this issue to your bookmarks ?")) {
    		window.location.replace("bookmark_add.asp?ID=" + ID + "&CATE=" + CATE);
    	}
    }
    // REMINDER FORM VALIDATION
    function ValidateREMINDER(){
        if (document.frm.email.value=="") {
        	alert("Please enter your email address.")
        	document.frm.email.focus()
        return false }
    }
    // SEND EMAIL FORM VALIDATION \\
    function ValidateSENDEMAIL(){
        if (document.frm.y_name.value=="") {
        	alert("Please enter your name.")
        	document.frm.y_name.focus()
        return false }
        if (document.frm.y_email.value=="") {
        	alert("Please enter your email address.")
        	document.frm.y_email.focus()
        return false }
        if (document.frm.f_name.value=="") {
        	alert("Please enter friend's name.")
        	document.frm.f_name.focus()
        return false }
        if (document.frm.f_email.value=="") {
        	alert("Please enter friend's email address.")
        	document.frm.f_email.focus()
        return false }
    }
    // SEARCH FORM VALIDATION \\
    function ValidateSEARCH(){
        if (document.frm.search.value=="") {
        	alert("Please enter a phrase to search for.")
        	document.frm.search.focus()
        return false }
    }
    // MY QUESTIONS LOGIN FORM VALIDATION \\
    function ValidateMYQUESTIONS(){
        if (document.frm.username.value=="") {
        	alert("Please enter your username.")
        	document.frm.username.focus()
        return false }
        if (document.frm.password.value=="") {
        	alert("Please enter your password.")
        	document.frm.password.focus()
        return false }
    }
    // SUBMIT ISSUE FORM VALIDATION \\
    function ValidateNEWISSUE(){
        if (document.frm.name.value=="") {
        	alert("Please enter your name.")
        	document.frm.name.focus()
        return false }
        if (document.frm.email.value=="") {
        	alert("Please enter your email address.")
        	document.frm.email.focus()
        return false }
        if (document.frm.title.value=="") {
        	alert("Please enter questions title.")
        	document.frm.title.focus()
        return false }
        if (document.frm.cate.value=="") {
        	alert("Please select appropriate category.")
        	document.frm.cate.focus()
        return false }		
        if (document.frm.question.value=="") {
        	alert("Please enter your question.")
        	document.frm.question.focus()
        return false }
    }
    // OPEN SIDE WIDNOW PANEL
    function MDM_openWindow(theURL,winName,features) { 
	  window.resizeTo(screen.width-280,screen.height-26)
	  window.moveTo(0,0);
      var _W=window.open(theURL,winName,features);
	  _W.focus();
	  _W.resizeTo(280,screen.height-26)
      _W.moveTo(screen.width-280,0); 	  
      _W.opener.name = "opener";
    }
    // ASK BEFORE LAUNCHING
    function ASK_MDM_openWindow(theURL,winName,features) { 
        if (confirm("Launch Browser Toolbar Window ? \n\nA new window will be opened next to this one featuring \neasily accessible help desk issues and search utility.")) {
    	  window.resizeTo(screen.width-280,screen.height-26)
    	  window.moveTo(0,0);
          var _W=window.open(theURL,winName,features);
    	  _W.focus();
    	  _W.resizeTo(280,screen.height-26)
          _W.moveTo(screen.width-280,0); 	  
          _W.opener.name = "opener";
    	}
    }      
    // VALIDATE COMMENT FORM
    function ValidComment(){
        if (document.frm.comment.value=="") {
        	alert("Please enter your comment.")
        	document.frm.comment.focus()
        return false }
    }
    // DROP DOWN NAVIG    
    function Jump(fe){
        var opt_key = fe.selectedIndex;
        var uri_val = fe.options[opt_key].value;
        window.open(uri_val,'_top');
        return true;
    }
    function show(object) {
    	if (document.layers && document.layers[object] != null)
    	    document.layers[object].visibility = 'visible';
    	else if (document.all)
    	    document.all[object].style.visibility = 'visible';
    }
    function hide(object) {
    	if (document.layers && document.layers[object] != null)
    	    document.layers[object].visibility = 'hidden';
    	else if (document.all)
    	    document.all[object].style.visibility = 'hidden';
    }
    // VALIDATE ADD & EDIT USER    
    function ValidateUserEdit(){
        if (document.frm.name.value=="") {
        	alert("Please enter username.")
        	document.frm.name.focus()
        return false }
        if (document.frm.password.value=="") {
        	alert("Please enter desired password.")
        	document.frm.password.focus()
        return false }
        if (document.frm.email.value=="") {
        	alert("Please enter user's email address.")
        	document.frm.email.focus()
        return false }
    }
    // VALIDATE ADD
    function ValidateUser(){
        if (document.frm.name.value=="") {
        	alert("Please enter your name in this format. (Firstname Lastname)")
        	document.frm.name.focus()
        return false }
        if (document.frm.username.value=="") {
        	alert("Please enter desired username; must be between 5 and 25 characters.")
        	document.frm.username.focus()
        return false }
        if (document.frm.password.value=="") {
        	alert("Please enter desired password; must be between 5 and 25 characters.")
        	document.frm.password.focus()
        return false }
        if (document.frm.email.value=="") {
        	alert("Please enter your email address.")
        	document.frm.email.focus()
        return false }
    }
    // VALIDATE URL 
    function ValidateURL(URL){
    	if (document.frm.url.value=="") {
    		alert("The web site URL is empty.")
    		document.frm.url.focus()
    	return false 
    	} else {
    		window.open(URL)
    		return true
    	}
    }
    // VALIDATE LOGIN FORM
    function ValidateReminder(){
        if (document.frm.email.value=="") {
        	alert("Please enter your email address.")
        	document.frm.email.focus()
        return false }
    }
    // VALIDATE LOGIN FORM
    function ValidateLogin(){
        if (document.frm.username.value=="") {
        	alert("Please enter your username.")
        	document.frm.username.focus()
        return false }
        if (document.frm.password.value=="") {
        	alert("Please enter your password.")
        	document.frm.password.focus()
        return false }
    }
    function ValidateSendEmailNewsArticle(){
        if (document.frm.email.value=="") {
        	alert("Please enter Friend's email address.")
        	document.frm.email.focus()
        return false }
        if (document.frm.msg.value=="") {
        	alert("Please enter your message.")
        	document.frm.msg.focus()
        return false }
    }
