
function parseUrl(data){var matches;var url=data;var exp=new RegExp("^http.*://.+/(.+)/.+/.+");matches=exp.exec(url);if(matches==null)
return null;return matches[1];}
function openSurveyWindow(url,name,width,height,status,scrollbars,moreProperties,openerName){var x,y=0;if(screen){x=(screen.availWidth-width)/2;y=(screen.availHeight-height)/2;}
if(!status)status='';if(!openerName)openerName='';var reference=openPositionedWindow2(url,name,width,height,x,y,status,scrollbars,moreProperties,openerName);return reference;}
function openPositionedWindow2(url,name,width,height,x,y,status,scrollbars,moreProperties,openerName){var agent=navigator.userAgent.toLowerCase();if(agent.indexOf("mac")!=-1&&agent.indexOf("msie")!=-1&&(agent.indexOf("msie 4")!=-1||agent.indexOf("msie 5.0")!=-1)){height+=(status)?17:2;}
width+=(scrollbars!=''&&scrollbars!=null&&agent.indexOf("mac")==-1)?16:0;var properties='width='+width+',height='+height+',screenX='+x+',screenY='+y+',left='+x+',top='+y+((status)?',status':'')+',scrollbars'+((scrollbars)?'':'=no')+((moreProperties)?','+moreProperties:'');var reference=openWindow(url,name,properties,openerName);return reference;}