// JavaScript Document
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function changeHeight(intHeight){
	top.document.getElementById("dateframe").height = intHeight;
}
function autoResize_iframe(objContents, strFrameName, intResizeType) {
	var intHeight = objContents.scrollHeight;
	var intWidth = objContents.scrollWidth;
	if (intResizeType =="") {intResizeType = 0}
	if ((intResizeType == 1)||(intResizeType = 0)) {parent.document.getElementById(strFrameName).height = intHeight;}
	if ((intResizeType == 2)||(intResizeType = 0)) {parent.document.getElementById(strFrameName).width = intWidth;}
}

function externalLinks()
{
    if (!document.getElementsByTagName) return;
    var anchors = document.getElementsByTagName("a");
    for ( var i=0; i < anchors.length; i++ )
    {
        var anchor = anchors[i];
        if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external" )
        {
			anchor.target = "_blank";
        }
    }
}
function disableElement(objElement,blnState) {
	if (undefined == blnState) {
		if (objElement.disabled) {blnState = false}else{blnState = true};
	};	
	objElement.disabled = blnState;
}

function confirmAction(strMsg,strAction){
	var intResponse = confirm(strMsg)
	if (intResponse){
		if (strAction != ''){location.href = strAction};
		return true
	}else{
		return false
	};
}
window.onload = externalLinks;

