auth.js revision f5c8d4782e3d33edc12a9216c7a8ce8e07e1dd44
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: auth.js,v 1.6 2008/06/25 05:44:32 qcheng Exp $
*
*/
/**
* Portions Copyrighted 2012 ForgeRock AS
*/
/** makes current page occupies entire browser window */
function occupyFullBrowser() {
}
}
/** places cursor on the first form element */
function placeCursorOnFirstElm() {
if (field) {
}
}
/**
* writes the corresponding css based on browser type
*
* @param serviceUri
*
*/
function writeCSS(serviceUri) {
if (is_ie6up) {
// IE 6.x or above.
} else if (is_ie5up) {
// IE 5.x or above.
} else if (is_gecko) {
// Netscape 6/7, Mozilla
// Netscape 4 Windows.
} else if (is_nav4) {
// Netscape 4 Solaris & Linux.
} else {
// All others
}
}
/**
* marks button
*
* @param label of button
* @param href of button
*/
}
/**
* aggregrates all the form elements in different forms into
* a hidden form
*/
function aggSubmit() {
if (hiddenFrm != null) {
for (var i = 0; i < elmCount; i++) {
if (frm != null) {
if (elm != null) {
} else {
}
}
}
}
}
}
/**
* gets selected radio value
*
* @param frmObj - form object
*/
function getSelectedRadioValue(frmObj) {
}
}
return "";
}
/**
* gets selected check box values separated by "|"
*
* @param frmObj - form object
*/
function getSelectedCheckBoxValues(frmObj) {
var checked = "";
}
}
return checked;
}
/**
* trims leading and trailing spaces of a string
*
* @param str - string to trim
* @return trimmed string
*/
}
/**
* clears all form elements
*
* @param frm - form obj
*/
function clearFormElms(frm) {
if (frm != null) {
}
}
}
}
/**
*
* does a check to see that cookies are enabled
* @return boolean
*
*/
function cookiesEnabled(){
if(!getCookieByName("cookieTest")){
return false;
}
var exp = new Date();
return true;
}
/**
*
* gets cookie value by cookie name
* @return string
*
*/
function getCookieByName(c_name) {
x = x.replace(/^\s+|\s+$/g,"");
if ( x === c_name) {
return unescape(y);
}
}
}