// ie image caching bug fix try { document.execCommand("BackgroundImageCache", false, true); } catch(err) {} function trOver(trObj, cssClass) { for(td=0; td < trObj.childNodes.length; td++) { trObj.childNodes[td].className = cssClass; } } function getCheckedRadioValue(radioObj) { var radioLength = radioObj.length; if(radioLength == undefined) { if(radioObj.checked) return radioObj.value; else return ""; } for(var i=0; i < radioLength; i++) { if(radioObj[i].checked) { return radioObj[i].value; } } return ""; } function isMail(adress) { var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; return filter.test(adress); } function changeClass(Obj, newClass) { Obj.className = newClass; } /** * Returns the value of the selected radio button in the radio group * * @param {radio Object} or {radio id} el * OR * @param {form Object} or {form id} el * @param {radio group name} radioGroup */ function $RF(el, radioGroup) { if($(el).type == 'radio') { var el = $(el).form; var radioGroup = $(el).name; } else if ($(el).tagName.toLowerCase() != 'form') { return false; } return $F($(el).getInputs('radio', radioGroup).find( function(re) {return re.checked;} )); } function doPopup(popupPath, popupName, pxWidth, pxHeight) { var left = (screen.width - pxWidth) / 2; var top = (screen.height - pxHeight) / 2; return window.open(popupPath, popupName, "left="+left+",top="+top+",width="+pxWidth+",height="+pxHeight+",resizable=NO,scrollbars=NO"); }