/*
Copyright Bankrate Inc. 2005
Script Version: 1.0.0
Description:
		08/24/2007 AI - Modified perform_action function. Copied it from brm\inc\rate\javascriptwrapper.js
*/
var offsetxpoint=-60;var offsetypoint=20;var ie=document.all;var ns6=document.getElementById&&!document.all;var enabletip=false;if(ie||ns6){var tipobj=document.all?document.all.dhtmltooltip:document.getElementById?document.getElementById("dhtmltooltip"):""}function ietruebody(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function ddrivetip(b,c,a){if(ns6||ie){if(typeof a!="undefined"){tipobj.style.width=a+"px"}if(typeof c!="undefined"&&c!=""){tipobj.style.backgroundColor=c}tipobj.innerHTML=b;enabletip=true;return false}}function positiontip(f){if(enabletip){var b=(ns6)?f.pageX:event.x+ietruebody().scrollLeft;var a=(ns6)?f.pageY:event.y+ietruebody().scrollTop;var d=ie&&!window.opera?ietruebody().clientWidth-event.clientX-offsetxpoint:window.innerWidth-f.clientX-offsetxpoint-20;var c=ie&&!window.opera?ietruebody().clientHeight-event.clientY-offsetypoint:window.innerHeight-f.clientY-offsetypoint-20;var g=(offsetxpoint<0)?offsetxpoint*(-1):-1000;if(d<tipobj.offsetWidth){tipobj.style.left=ie?ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px":window.pageXOffset+f.clientX-tipobj.offsetWidth+"px"}else{if(b<g){tipobj.style.left="5px"}else{tipobj.style.left=b+offsetxpoint+"px"}}if(c<tipobj.offsetHeight){tipobj.style.top=ie?ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px":window.pageYOffset+f.clientY-tipobj.offsetHeight-offsetypoint+"px"}else{tipobj.style.top=a+offsetypoint+"px"}tipobj.style.visibility="visible"}}function hideddrivetip(){if(ns6||ie){enabletip=false;tipobj.style.visibility="hidden";tipobj.style.left="-1000px";tipobj.style.backgroundColor="";tipobj.style.width=""}}document.onmousemove=positiontip;function brm_AssignStyle(c,a){try{c.className=a}catch(b){alert("AssignStyle: "+b)}}function performAction(d,a,f,g,e,b){if(typeof(d)!="object"){if(typeof(d)=="string"&&d.length>0){alert("A form must be passed into the performAction() function.");return}if(d==""&&globalForm!=null){d=globalForm}else{alert("A global variable named globalForm needs to be set in this jsp.");return}}arr=f.split("||");var c=createDateTime();if(arr[1]!=null){oArr=arr[1].split(",")}switch(parseInt(e)){case 2:if(b!=null){if(g!=null&&g.length>0){winx=window.open(a+arr[0]+"&click_date="+c+"&ref_url="+escape(location.href),"openWindow",g)}else{winx=window.open(a+arr[0]+"&click_date="+c+"&ref_url="+escape(location.href),"openWindow","width=600,height=500,top=10,left=100,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,resizable=yes,copyhistory=yes")}winx.focus()}else{if(g!=null&&g.length>0){winx=window.open(a+arr[0]+"&click_date="+c+"&ref_url="+escape(location.href),"openWindow",g);winx.focus()}else{window.location.replace(a+arr[0]+"&click_date="+c+"&ref_url="+escape(location.href))}}break;case 1:winx=window.open(a+arr[0]+"&click_date="+c+"&ref_url="+escape(location.href),"openWindow",g);winx.focus();return;break;case 4:window.location=a+arr[0]+"&click_date="+c+"&ref_url="+escape(location.href);break;case 5:if(b!=null){if(g!=null&&g.length>0){winx=window.open(a+arr[0]+"&click_date="+c+"&ref_url="+escape(location.href),"openWindow",g);winx.focus()}else{window.location=a+arr[0]+"&amp;click_date="+c+"&amp;ref_url="+escape(location.href)}}else{if(g!=null&&g.length>0){winx=window.open(a+arr[0]+"&click_date="+c+"&ref_url="+escape(location.href),"openWindow",g);winx.focus()}else{window.location=a+arr[0]+"&click_date="+c+"&ref_url="+escape(location.href)}}break}}function createDateTime(){var b=new Date();var e=b.getFullYear();var g=b.getMonth()+1;var d=b.getDate();var a=b.getHours();var h=b.getMinutes();var c=b.getSeconds();var f=b.getMilliseconds();currentDT=g+"/"+d+"/"+e+" "+a+":"+h+":"+c+"."+f;return currentDT}function AdvPopUp(a){winx=window.open(a,"","width=415,height=165,toolbar=no,location=yes,directories=no,status=yes,scrollbars=no,resizable=yes,copyhistory=yes");winx.focus()};