/* default js file */
document.getTagsByClassName = function( sTagName, sClassName ) {
	var tags = document.getElementsByTagName( sTagName );
	var tagsReturn = new Array();
	var regExp = new RegExp( '\\b' + sClassName + '\\b' );
	for( var iTag = 0; iTag< tags.length; iTag++ ) {
		var tag = tags[ iTag ];
		if( regExp.test( tag.className ) ) {
			tagsReturn[tagsReturn.length] = tag;
		}
	}
	return tagsReturn;
}




/* onchange event for select fields */

function jumpTo(selectElement){
var pageUrl = selectElement.options[selectElement.selectedIndex].value;
window.location.href = pageUrl;
}


/* Popup window scripts */
function popWindow(popURL, height, width) {
	theWindow=window.open( popURL, "theWindow", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=" + width + ",height=" + height + "");
	theWindow.opener=self;
	setTimeout("theWindow.focus();",200);
};

function popWindowEvent(popURL) {
	theWindow=window.open( popURL, "theWindow", "toolbar=1,location=1,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=500,height=400");
	theWindow.opener=self;
	setTimeout("theWindow.focus();",200);
};

// POP UP A PREFORMATTED EMAIL MESSAGE WINDOW
function sitewide_email_this_page() {
  // SET MESSAGE VALUES
  var to = "";
//  var cc = "";
//  var bcc = "";
  var subject = "RSA Security Web Link";
  var body = "Here is an interesting link from RSA Security:\r\r" + document.location.href + "\r\rFor more information, visit http:\/\/www.rsasecurity.com";
  // BUILD MAIL MESSAGE COMPONENTS 
  var doc = "mailto:" + to + "?" +
 //     "cc=" + cc + "&" +
 //     "bcc=" + bcc + "&" +
      "subject=" + escape(subject) + "&" +
      "body=" + escape(body); 
  // POP UP EMAIL MESSAGE WINDOW
  window.location.href = doc;
}


