function openWin(loc,xwd,xht){var newWind=window.open(loc,'remote','resizeable=no,scrollbars=yes,width=' + xwd + ',height=' + xht + '');if (newWind.opener == null) newWind.opener = self;}
var ie5 = (document.getElementById && document.all); 
var ns6 = (document.getElementById && !document.all);
var vis = 0;
var opak = 0;
var index = 0;
var mouseX = 10;
var mouseY = -10;
function showMsg(msg){vis = 1;obj.style.visibility = "visible";obj.innerHTML = msg;}
function hideMsg(){vis = 0;obj.style.visibility="hidden";obj.style.left = -300;obj.style.top = -500;}
function getMouseMove(e){if(ie5 && vis == 1){obj.style.left = document.body.scrollLeft + event.clientX + mouseX;obj.style.top = document.body.scrollTop + event.clientY + mouseY;}else if(ns6 && vis == 1){obj.style.left = window.pageXOffset + e.clientX + mouseX;obj.style.top = window.pageYOffset + e.clientY + mouseY;}}function tipsInit(){if(ie5 || ns6){obj = document.getElementById('box');lnk = document.links;for(var i=0;i<lnk.length;i++){if(ie5){lnk[i].attachEvent("onmouseout", hideMsg);}else if(ns6){lnk[i].addEventListener("mouseout", hideMsg, false);}}}}
document.onmousemove=getMouseMove;
onload=tipsInit;
function addComponent(){if (document.forms.complist.question.value){var winloc = "/ia/sa/forms/popup_win?win=addcomp&which=" + escape(document.forms.complist.question.value) + "&form_id=" + document.forms.complist.form_id.value;openWin(winloc,400,300);}}
function editComponent(comp_id){var winloc = "/ia/sa/forms/popup_win?win=editcomp&which=" + comp_id;openWin(winloc,400,300);}
function editResponse(form_id,resp_id){var loc = "/ia/sa/forms/form_display?form_id=" + form_id + "&response_id=" + resp_id + "&form_action=update";window.opener.location.href = loc;self.close();}
function refreshReturn(){window.opener.location.href = window.opener.location.href;self.close();}
function searchWin(form_id){var winloc = "/ia/sa/forms/popup_win?win=search&form_id=" + form_id;openWin(winloc,400,300);}
function openChampWin(xname,loc){var removeMe=new RegExp(/\./gi);xname=xname.replace(removeMe,"");var newWind=window.open(loc,xname,'resizeable=no,scrollbars=yes,width=700,height=500');if (newWind.opener == null) newWind.opener = self;}