function FrameBuilder (formId, initialHeight, iframeCode){ this.formId = formId, this.initialHeight = initialHeight, this.iframeCode = iframeCode, this.frame = null, this.timeInterval= 200, // initialize function for object this.init = function(){ this.createFrame(); this.addFrameContent(this.iframeCode); }, // Create the frame this.createFrame = function(){ var htmlCode = "" document.write(htmlCode); // also get the frame for future use. this.frame = document.getElementById(this.formId); // set the time on the on load event of the frame this.addEvent (this.frame, 'load', this.bindMethod(this.setTimer, this)); }, // add event function for different browsers this.addEvent = function( obj, type, fn ) { if ( obj.attachEvent ) { obj["e"+type+fn] = fn; obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }; obj.attachEvent( "on"+type, obj[type+fn] ); } else{ obj.addEventListener( type, fn, false ); } }, this.addFrameContent = function (string){ string = string.replace(new RegExp('src\=\"[^"]*captcha.php\"><\/scr'+'ipt>', 'gim'), 'src="http://api.recaptcha.net/js/recaptcha_ajax.js">
'+ ''+ ' window.onload = function(){ Recaptcha.create("6Ld9UAgAAAAAAMon8zjt30tEZiGQZ4IIuWXLt1ky", "recaptcha_div", {theme: "clean",tabindex: 0,callback: function (){'+ 'if (document.getElementById("uword")) { document.getElementById("uword").parentNode.removeChild(document.getElementById("uword")); } if (window["validate"] !== undefined) { if (document.getElementById("recaptcha_response_field")){ document.getElementById("recaptcha_response_field").onblur = function(){ validate(document.getElementById("recaptcha_response_field"), "Required"); } } } if (document.getElementById("recaptcha_response_field")){ document.getElementsByName("recaptcha_challenge_field")[0].setAttribute("name", "anum"); } if (document.getElementById("recaptcha_response_field")){ document.getElementsByName("recaptcha_response_field")[0].setAttribute("name", "qCap"); }}})'+ ' }'); string = string.replace(/(type="text\/javascript">)\s+(validate\(\"[^"]*"\);)/, '$1 jTime = setInterval(function(){if("validate" in window){$2clearTimeout(jTime);}}, 10);'); var frameDocument = (this.frame.contentWindow) ? this.frame.contentWindow : (this.frame.contentDocument.document) ? this.frame.contentDocument.document : this.frame.contentDocument; frameDocument.document.open(); frameDocument.document.write(string); setTimeout( function(){frameDocument.document.close();},200); }, this.setTimer = function(){ var self = this; this.interval = setTimeout(function(){self.changeHeight();},this.timeInterval); }, this.changeHeight = function (){ var actualHeight = this.getBodyHeight(); var currentHeight = this.getViewPortHeight(); if (Math.abs(actualHeight - currentHeight) > 18){ this.frame.style.height = (actualHeight)+"px"; } this.setTimer(); }, this.bindMethod = function(method, scope) { return function() { method.apply(scope,arguments); }; }, this.getBodyHeight = function (){ var height; var scrollHeight; var offsetHeight; if (this.frame.contentWindow.document.height){ height = this.frame.contentWindow.document.height; } else if (this.frame.contentWindow.document.body){ if (this.frame.contentWindow.document.body.scrollHeight){ height = scrollHeight = this.frame.contentWindow.document.body.scrollHeight; } if (this.frame.contentWindow.document.body.offsetHeight){ height = offsetHeight = this.frame.contentWindow.document.body.offsetHeight; } if (scrollHeight && offsetHeight){ height = Math.max(scrollHeight, offsetHeight); } } return height; }, this.getViewPortHeight = function(){ var height = 0; if (this.frame.contentWindow.window.innerHeight) { height = this.frame.contentWindow.window.innerHeight - 18; } else if ((this.frame.contentWindow.document.documentElement) && (this.frame.contentWindow.document.documentElement.clientHeight)) { height = this.frame.contentWindow.document.documentElement.clientHeight; } else if ((this.frame.contentWindow.document.body) && (this.frame.contentWindow.document.body.clientHeight)) { height = this.frame.contentWindow.document.body.clientHeight; } return height; }, this.init(); } new FrameBuilder("91532254057","1377", "\n\n\nForm<\/title>\n<meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\" \/>\n<script src=\"http:\/\/v2.jotform.com\/js\/form.js?v2.0.1407\" type=\"text\/javascript\"><\/script>\n<style type=\"text\/css\">html,body{\nmargin:0;}\n.tbmain{ \n \/* Changes on the form *\/\n background: white !important; \n}\n.left{\n \/* Changes on the form *\/\n color: black !important; \n font-family: Verdana !important;\n font-size: 12px !important;\n}\n.head{\n color:#333333;\n font-size:20px;;\n text-decoration:underline;\n font-family:\"Verdana\";\n}\ntd.left {\n font-family:\"Verdana\";\n font-size:12px;\n color:black;\n}\n.pagebreak{\n font-family:\"Verdana\";\n font-size:12px;\n color:black;\n}\n.tbmain{\n height:100%;\n background:white;\n}\nspan.required{\n font-size: 13px !important;\n color: red !important;\n}\n\ndiv.backButton{\n background: transparent url(\"http:\/\/v2.jotform.com\/\/images\/btn_back.gif\") no-repeat scroll 0 0;\n height:16px;\n width:53px;\n float:left;\n margin-bottom:15px;\n padding-right:5px;\n}\ndiv.backButton:hover{\n background: transparent url(\"http:\/\/v2.jotform.com\/\/images\/btn_back_over.gif\") no-repeat scroll 0 0;\n}\ndiv.backButton:active{\n background: transparent url(\"http:\/\/v2.jotform.com\/\/images\/btn_back_down.gif\") no-repeat scroll 0 0;\n}\ndiv.nextButton{\n background: transparent url(\"http:\/\/v2.jotform.com\/\/images\/btn_next.gif\") no-repeat scroll 0 0;\n height:16px;\n width:53px;\n float: left;\n margin-bottom:15px;\n padding-right:5px;\n}\ndiv.nextButton:hover{\n background: transparent url(\"http:\/\/v2.jotform.com\/\/images\/btn_next_over.gif\") no-repeat scroll 0 0;\n}\ndiv.nextButton:active{\n background: transparent url(\"http:\/\/v2.jotform.com\/\/images\/btn_next_down.gif\") no-repeat scroll 0 0;\n}\n.pageinfo{\n padding-right:5px;\n margin-bottom:15px;\n float:left;\n}\n\n<\/style> \n<table width=\"100%\" cellpadding=\"2\" cellspacing=\"0\" class=\"tbmain\">\n<tr><td class=\"topleft\" width=\"10\" height=\"10\"> <\/td>\n<td class=\"topmid\"> <\/td>\n<td class=\"topright\" width=\"10\" height=\"10\"> <\/td>\n <\/tr>\n<tr>\n<td class=\"midleft\" width=\"10\">   <\/td>\n<td class=\"midmid\" valign=\"top\">\n<form accept-charset=\"utf-8\" action=\"http:\/\/v2.jotform.com\/submit.php\" method=\"post\" name=\"q_form_91532254057\">\n<input type=\"hidden\" name=\"formID\" value=\"91532254057\" \/>\n<div id=\"main\"> \n<div class=\"pagebreak\"> \n<table width=\"520\" cellpadding=\"5\" cellspacing=\"0\">\n <tr >\n <td colspan=\"2\" class=\"head\" >\n SAC Feedback Form\n <\/td>\n <\/tr>\n <tr >\n <td colspan=\"2\" class=\"left\" >\n About You\n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" valign=\"top\" >\n <label>Are You a: <span class=\"required\">*<\/span><\/label>\n <\/td>\n <td class=\"right\">\n <input type=\"radio\" class=\"other\" name=\"q14_AreYoua\" id=\"q14_0\" value=\"Home student \" onblur=\"validate(this,'Required')\" \/> \n <label class=\"left\">Home student <\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q14_AreYoua\" id=\"q14_1\" value=\"International student\" onblur=\"validate(this,'Required')\" \/> \n <label class=\"left\">International student<\/label> <br \/> \n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" valign=\"top\" >\n <label>Gender: <span class=\"required\">*<\/span><\/label>\n <\/td>\n <td class=\"right\">\n <input type=\"radio\" class=\"other\" name=\"q16_Gender\" id=\"q16_0\" value=\"Male\" onblur=\"validate(this,'Required')\" \/> \n <label class=\"left\">Male<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q16_Gender\" id=\"q16_1\" value=\"Female\" onblur=\"validate(this,'Required')\" \/> \n <label class=\"left\">Female<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q16_Gender\" id=\"q16_2\" value=\"Other\" onblur=\"validate(this,'Required')\" \/> \n <label class=\"left\">Other<\/label> <br \/> \n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" valign=\"top\" >\n <label>Age: <span class=\"required\">*<\/span><\/label>\n <\/td>\n <td class=\"right\">\n <input type=\"radio\" class=\"other\" name=\"q57_Age\" id=\"q57_0\" value=\"Under 25 \" onblur=\"validate(this,'Required')\" \/> \n <label class=\"left\">Under 25 <\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q57_Age\" id=\"q57_1\" value=\"Over 25\" onblur=\"validate(this,'Required')\" \/> \n <label class=\"left\">Over 25<\/label> <br \/> \n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" valign=\"top\" >\n <label>Type of Study: <span class=\"required\">*<\/span><\/label>\n <\/td>\n <td class=\"right\">\n <input type=\"radio\" class=\"other\" name=\"q15_TypeofStudy\" id=\"q15_0\" value=\"Undergraduate \" onblur=\"validate(this,'Required')\" \/> \n <label class=\"left\">Undergraduate <\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q15_TypeofStudy\" id=\"q15_1\" value=\"Postgraduate\" onblur=\"validate(this,'Required')\" \/> \n <label class=\"left\">Postgraduate<\/label> <br \/> \n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" valign=\"top\" >\n <label>What did you use the SAC for?<\/label>\n <\/td>\n <td valign=\"top\" class=\"right\">\n <input type=\"checkbox\" name=\"q21_WhatdidyouusetheSACf[]\" class=\"other\" id=\"q21_0\" value=\"Housing \" \/> \n <label class=\"left\">Housing <\/label> <br \/> \n <input type=\"checkbox\" name=\"q21_WhatdidyouusetheSACf[]\" class=\"other\" id=\"q21_1\" value=\"Personal \" \/> \n <label class=\"left\">Personal <\/label> <br \/> \n <input type=\"checkbox\" name=\"q21_WhatdidyouusetheSACf[]\" class=\"other\" id=\"q21_2\" value=\"Finance \" \/> \n <label class=\"left\">Finance <\/label> <br \/> \n <input type=\"checkbox\" name=\"q21_WhatdidyouusetheSACf[]\" class=\"other\" id=\"q21_3\" value=\"Legal \" \/> \n <label class=\"left\">Legal <\/label> <br \/> \n <input type=\"checkbox\" name=\"q21_WhatdidyouusetheSACf[]\" class=\"other\" id=\"q21_4\" value=\"Other or Clinics \" \/> \n <label class=\"left\">Other or Clinics <\/label> <br \/> \n <input type=\"checkbox\" name=\"q21_WhatdidyouusetheSACf[]\" class=\"other\" id=\"q21_5\" value=\"UNCLE\" \/> \n <label class=\"left\">UNCLE<\/label> <br \/> \n <\/td>\n <\/tr>\n <tr >\n <td colspan=\"2\" class=\"left\" >\n Could you please rate the SAC's service in the following areas.\n <\/td>\n <\/tr>\n <tr >\n <td colspan=\"2\" class=\"left\" >\n ( 5 = Excellent, 4 = Very Good, 3 = Good, 2 = Not Very Good, 1 = Poor )\n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" valign=\"top\" >\n <label>Friendliness \/ helpfulness of Reception<\/label>\n <\/td>\n <td class=\"right\">\n <input type=\"radio\" class=\"other\" name=\"q22_Friendlinesshelpfuln\" id=\"q22_0\" value=\"5 \" \/> \n <label class=\"left\">5 <\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q22_Friendlinesshelpfuln\" id=\"q22_1\" value=\"4 \" \/> \n <label class=\"left\">4 <\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q22_Friendlinesshelpfuln\" id=\"q22_2\" value=\"3 \" \/> \n <label class=\"left\">3 <\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q22_Friendlinesshelpfuln\" id=\"q22_3\" value=\"2 \" \/> \n <label class=\"left\">2 <\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q22_Friendlinesshelpfuln\" id=\"q22_4\" value=\"1\" \/> \n <label class=\"left\">1<\/label> <br \/> \n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" valign=\"top\" >\n <label>Friendliness \/ helpfulness of Adviser<\/label>\n <\/td>\n <td class=\"right\">\n <input type=\"radio\" class=\"other\" name=\"q24_Friendlinesshelpfuln\" id=\"q24_0\" value=\"5\" \/> \n <label class=\"left\">5<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q24_Friendlinesshelpfuln\" id=\"q24_1\" value=\"4\" \/> \n <label class=\"left\">4<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q24_Friendlinesshelpfuln\" id=\"q24_2\" value=\"3\" \/> \n <label class=\"left\">3<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q24_Friendlinesshelpfuln\" id=\"q24_3\" value=\"2\" \/> \n <label class=\"left\">2<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q24_Friendlinesshelpfuln\" id=\"q24_4\" value=\"1\" \/> \n <label class=\"left\">1<\/label> <br \/> \n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" valign=\"top\" >\n <label>Adviser's understanding of your problem<\/label>\n <\/td>\n <td class=\"right\">\n <input type=\"radio\" class=\"other\" name=\"q25_Advisersunderstandin\" id=\"q25_0\" value=\"5\" \/> \n <label class=\"left\">5<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q25_Advisersunderstandin\" id=\"q25_1\" value=\"4\" \/> \n <label class=\"left\">4<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q25_Advisersunderstandin\" id=\"q25_2\" value=\"3\" \/> \n <label class=\"left\">3<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q25_Advisersunderstandin\" id=\"q25_3\" value=\"2\" \/> \n <label class=\"left\">2<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q25_Advisersunderstandin\" id=\"q25_4\" value=\"1\" \/> \n <label class=\"left\">1<\/label> <br \/> \n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" valign=\"top\" >\n <label>Did you need further advice?<\/label>\n <\/td>\n <td class=\"right\">\n <input type=\"radio\" class=\"other\" name=\"q27_Didyouneedfurtheradv\" id=\"q27_0\" value=\"Yes\" \/> \n <label class=\"left\">Yes<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q27_Didyouneedfurtheradv\" id=\"q27_1\" value=\"No\" \/> \n <label class=\"left\">No<\/label> <br \/> \n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" valign=\"top\" >\n <label>Quality of advice \/ service given<\/label>\n <\/td>\n <td class=\"right\">\n <input type=\"radio\" class=\"other\" name=\"q29_Qualityofadviceservi\" id=\"q29_0\" value=\"5\" \/> \n <label class=\"left\">5<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q29_Qualityofadviceservi\" id=\"q29_1\" value=\"4\" \/> \n <label class=\"left\">4<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q29_Qualityofadviceservi\" id=\"q29_2\" value=\"3\" \/> \n <label class=\"left\">3<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q29_Qualityofadviceservi\" id=\"q29_3\" value=\"2\" \/> \n <label class=\"left\">2<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q29_Qualityofadviceservi\" id=\"q29_4\" value=\"1\" \/> \n <label class=\"left\">1<\/label> <br \/> \n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" valign=\"top\" >\n <label>Quality of Literature on display\/Equipment issued<\/label>\n <\/td>\n <td class=\"right\">\n <input type=\"radio\" class=\"other\" name=\"q34_QualityofLiteratureo\" id=\"q34_0\" value=\"5\" \/> \n <label class=\"left\">5<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q34_QualityofLiteratureo\" id=\"q34_1\" value=\"4\" \/> \n <label class=\"left\">4<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q34_QualityofLiteratureo\" id=\"q34_2\" value=\"3\" \/> \n <label class=\"left\">3<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q34_QualityofLiteratureo\" id=\"q34_3\" value=\"2\" \/> \n <label class=\"left\">2<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q34_QualityofLiteratureo\" id=\"q34_4\" value=\"1\" \/> \n <label class=\"left\">1<\/label> <br \/> \n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" valign=\"top\" >\n <label>Suitability of waiting room<\/label>\n <\/td>\n <td class=\"right\">\n <input type=\"radio\" class=\"other\" name=\"q37_Suitabilityofwaiting\" id=\"q37_0\" value=\"5\" \/> \n <label class=\"left\">5<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q37_Suitabilityofwaiting\" id=\"q37_1\" value=\"4\" \/> \n <label class=\"left\">4<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q37_Suitabilityofwaiting\" id=\"q37_2\" value=\"3\" \/> \n <label class=\"left\">3<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q37_Suitabilityofwaiting\" id=\"q37_3\" value=\"2\" \/> \n <label class=\"left\">2<\/label> <br \/> \n <input type=\"radio\" class=\"other\" name=\"q37_Suitabilityofwaiting\" id=\"q37_4\" value=\"1\" \/> \n <label class=\"left\">1<\/label> <br \/> \n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" valign=\"top\" >\n <label>Comments and suggestions welcomed:<\/label>\n <\/td>\n <td class=\"right\" >\n <textarea cols=\"30\" rows=\"4\" name=\"q53_Commentsandsuggestio\" class=\"text\" id=\"q53\" ><\/textarea>\n <\/td>\n <\/tr>\n <tr >\n <td width=\"150\" class=\"left\" > \n \n <\/td>\n <td class=\"right\">\n <input type=\"submit\" class=\"btn\" value=\"Submit\" \/>\n <\/td>\n <\/tr>\n<\/table>\n<\/div>\n<\/div>\n<\/form>\n<\/td>\n<td class=\"midright\" width=\"10\">   <\/td>\n<\/tr>\n<tr>\n <td class=\"bottomleft\" width=\"10\" height=\"10\"> <\/td>\n <td class=\"bottommid\"> <\/td>\n <td class=\"bottomright\" width=\"10\" height=\"10\"> <\/td>\n<\/tr>\n<\/table>\n<script type=\"text\/javascript\">\nvalidate(\"q_form_91532254057\");\n<\/script>\n\n<\/body>\n<\/html>\n");