// Occurs before the form is loaded function before_load() { } // Occurs just before submitting the form function before_submit() { } // Occurs just before resetting the form function before_reset() { } #form12 .recaptcha_input_area input{height:initial !important;}#form12 .wdform_grading input { width: 100px;}#form12 .wdform-matrix-cell input[type="text"] { width: 100px;}#form12 .wdform-matrix-cell select { width: 60px;}#form12 .wdform_section .wdform_column:last-child { padding-right: 0px !important;}#form12 .wdform_preload { display: none; content: url(/components/com_formmaker/images/01/02/next_hoverbg.png) url(/components/com_formmaker/images/01/02/previous_hover.png) url(/components/com_formmaker/images/01/02/next_hover.png);}#form12 .wdform_grading { padding: 3px 0px;}#form12 .wdform-matrix-table { display: table; border-spacing: 0px;}#form12 .wdform-matrix-column { text-align: left; display: table-cell;}#form12 .wdform-matrix-cell { text-align: center; display: table-cell; padding: 6px 10px;}#form12 .wdform-matrix-head>div { display: table-cell; text-align: center;}#form12 .wdform-matrix-head { display: table-row;}#form12 .wdform-matrix-row0 { background: #DFDFDF; display: table-row;}#form12 .wdform-matrix-row1 { background: #E9E9E9; display: table-row;}#form12 .selected-text { text-align: left;}#form12 .wdform-quantity { width: 30px; margin: 2px 0px;}#form12 .wdform_scale_rating label { vertical-align: middle;}#form12 .ui-corner-all { border-radius: 3px;}#form12 .ui-widget-content { border: 0px; background: transparent;}#form12 a.ui-spinner-button:hover{ background: #004D8E !important; color: #fff; outline: none;}#form12 a.ui-spinner-button:active{ background: #004D8E !important; color: #fff; outline: none;}#form12 a.ui-spinner-button:focus{ background: #FFB471 !important; color: #fff; outline: none;}#form12 a.ui-slider-handle:hover{ background: #004D8E !important; color: #fff; outline: none;}#form12 a.ui-slider-handle:active{ background: #FFB471 !important; color: #fff; outline: none;}#form12 a.ui-slider-handle:focus{ background: #004D8E !important; color: #fff; outline: none;}#form12 ui-state-hover { background: #FFB471 !important; color: #fff; outline: none;}#form12 .ui-slider { height: 6px; background: #fff; margin: 7px 0px;}#form12 a.ui-slider-handle { border-radius: 10px; border: 2px solid #fff; background: #A4A4A4;}#form12 .ui-slider-horizontal .ui-slider-handle { top: -8px !important;}#form12 .ui-state-default{ border: 1px solid #d3d3d3; background: #DFDDDD; font-weight: normal; color: #555555;}#form12 .ui-widget-content .ui-state-default{ border: 1px solid #d3d3d3; background: #DFDDDD; font-weight: normal; color: #555555;}#form12 .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3; background: #DFDDDD; font-weight: normal; color: #555555;}#form12 .ui-slider-range { background: #A4A4A4 !important;}#form12 .wdform-page-and-images { width: 100%; border: 0px !important;}#form12 .paypal-property { display: inline-block; margin-right: 15px; vertical-align: middle;}#form12 .sel-wrap { display: inline-block; vertical-align: middle; width:100%;}#form12 .sel-wrap select { position: absolute; z-index:-1; width: 0px !important;}#form12 .sel-imul { display: inline-block;}#form12 .sel-imul .sel-selected { cursor: pointer; position: relative; display: inline-block; border-radius: 7px; padding: 2px 0px 2px 2px; font-size: 13px; height: 26px; line-height: 26px; overflow: hidden; background: #fff; border: 1px solid #ccc; background-position: right 2px center; width: 100%;}#form12 .sel-imul.act .sel-selected { background: #fff;}#form12 .sel-selected .sel-arraw { height: 28px; width: 32px; background: url(/components/com_formmaker/images/01/01.png) 50% 50% no-repeat; position: absolute; top: 0px; right: 0px; padding: 1px;}#form12 .sel-imul:hover .sel-selected .sel-arraw {// background-color:#e0e0e0;// border-left:1px solid #bbb;}#form12 .sel-imul.act .sel-selected .sel-arraw {// background-color:#e0e0e0;// border-left:1px solid #bbb;}#form12 .sel-imul .sel-options { background: #fff; border: 1px solid #dbdbdb; border-top: none; position: absolute; width: inherit; display: none; z-index: 10; max-height: 200px; overflow-y: auto; overflow-x: hidden;}#form12 .sel-options .sel-option { padding: 3px 4px; font-size: 13px; border: 1px solid #fff; border-right: none; border-left: none; text-align: left;}#form12 .sel-options .sel-option:hover { border-color: #dbdbdb; cursor: pointer;}#form12 .sel-options .sel-option.sel-ed { background: #dbdbdb; border-color: #dbdbdb;}#form12 input[type=text] { margin: 0px;}#form12 input[type=password] { margin: 0px;}#form12 input[type=url] { margin: 0px;}#form12 input[type=email] { margin: 0px;}#form12 input.text { margin: 0px;}#form12 input.title { margin: 0px;}#form12 textarea { margin: 0px;}#form12 select { margin: 0px;}#form12 .form-error { border-color: red !important;}#form12 .form-error:focus { border-color: red !important;}#form12 .wdform-page-and-images:after { width: 100%; content: ''; display: block; height: 17px; background: url(/components/com_formmaker/images/01/0.png) no-repeat center center; position: relative; background-size: cover; top: -17px; left: -50px; padding-left: 100px;}#form12 .wdform-field { display: table-cell; padding: 5px 0px;}#form12 .wdform-label-section{ text-align: left; display: table-cell;}#form12 .wdform-element-section { text-align: left; display: table-cell; min-width: 150px;}#form12 .file-upload input { position: absolute; visibility: hidden;}#form12 .file-upload-status { margin-left: 10px; max-width: 200px; font-weight: bold; font-size: 16px; color: #888; background: #fff; position: absolute; border-radius: 7px; height: 27px; border: 1px solid #ccc; padding-left: 5px; padding-right: 5px; white-space: nowrap; overflow: hidden;//text-overflow: ellipsis;}#form12 .file-picker { width: 38px; height: 34px; background: url(/components/com_formmaker/images/01/upload.png); display: inline-block;}#form12 div.wdform-page-button { color: #414141; cursor: pointer; display: inline-block; height: 36px; line-height: 36px; background: url(/components/com_formmaker/images/01/nextbg.png) no-repeat right center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; border-style: solid; padding: 0px 15px; vertical-align: middle; border-color: transparent;}#form12 div.wdform-page-button:hover { background: url(/components/com_formmaker/images/01/02/next_hoverbg.png) no-repeat right center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;color:#fff;}#form12 .next-page div.wdform-page-button { border-width: 0px 18px 0px 0px; -moz-border-image: url(/components/com_formmaker/images/01/next.png) 0 36 0 0 stretch; -webkit-border-image: url(/components/com_formmaker/images/01/next.png) 0 36 0 0 stretch; -o-border-image: url(/components/com_formmaker/images/01/next.png) 0 36 0 0 stretch; border-image: url(/components/com_formmaker/images/01/next.png) 0 36 0 0 stretch; box-shadow: inset 51px 0px 8px -50px #636363;}#form12 .next-page div.wdform-page-button:hover { -moz-border-image: url(/components/com_formmaker/images/01/02/next_hover.png) 0 36 0 0 stretch; -webkit-border-image: url(/components/com_formmaker/images/01/02/next_hover.png) 0 36 0 0 stretch; -o-border-image: url(/components/com_formmaker/images/01/02/next_hover.png) 0 36 0 0 stretch; border-image: url(/components/com_formmaker/images/01/02/next_hover.png) 0 36 0 0 stretch;}#form12 .next-page:before { content: ''; height: 56px; vertical-align: middle; background: url(/components/com_formmaker/images/01/shadow.png) no-repeat left center; background-size: contain; width: 7px; display: inline-block; position: relative; left: 7px;}#form12 .previous-page div.wdform-page-button { border-width: 0px 0px 0px 18px; -moz-border-image: url(/components/com_formmaker/images/01/previous.png) 0 0 0 36 stretch; -webkit-border-image: url(/components/com_formmaker/images/01/previous.png) 0 0 0 36 stretch; -o-border-image: url(/components/com_formmaker/images/01/previous.png) 0 0 0 36 stretch; border-image: url(/components/com_formmaker/images/01/previous.png) 0 0 0 36 stretch; box-shadow: inset -51px 0px 8px -50px #636363;}#form12 .previous-page div.wdform-page-button:hover { -moz-border-image: url(/components/com_formmaker/images/01/02/previous_hover.png) 0 0 0 36 stretch; -webkit-border-image: url(/components/com_formmaker/images/01/02/previous_hover.png) 0 0 0 36 stretch; -o-border-image: url(/components/com_formmaker/images/01/02/previous_hover.png) 0 0 0 36 stretch; border-image: url(/components/com_formmaker/images/01/02/previous_hover.png) 0 0 0 36 stretch;}#form12 .previous-page:after { content: ''; height: 56px; vertical-align: middle; background: url(/components/com_formmaker/images/01/shadow1.png) no-repeat right center; background-size: contain; width: 7px; display: inline-block; position: relative; left: -7px;}#form12 .button-submit {background: #035192 ;background: -moz-linear-gradient(left, #035192 0%, #0860A9 20%, #0860A9 80%, #035192 100%);background: -webkit-gradient(linear, left top, right top, color-stop(0%, #035192 ), color-stop(20%, #0860A9 ), color-stop(80%, #0860A9 ), color-stop(100%, #035192 ));background: -webkit-linear-gradient(left, #035192 0%, #0860A9 20%, #0860A9 80%, #035192 100%);background: -o-linear-gradient(left, #035192 0%, #0860A9 20%, #0860A9 80%, #035192 100%);background: -ms-linear-gradient(left, #035192 0%, #0860A9 20%, #0860A9 80%, #035192 100%);background: linear-gradient(to right, #035192 0%, #0860A9 20%, #0860A9 80%, #035192 100%);cursor: pointer;font-size: 17px;border-radius: 7px;min-width: 80px;min-height: 34px;color: #fff;border: 1px solid #3A8BCF;margin: 5px;box-shadow: 0px 0px 1px 1px #063A66;font-family: Segoe UI; }#form12 .button-reset { background: transparent; cursor: pointer; font-size: 17px; border-radius: 7px; min-width: 80px; min-height: 34px; color: #787878; border: 1px solid #c9c9c9; margin: 5px; box-shadow: 0px 0px 2px #c9c9c9; font-family: Segoe UI;}#form12 .wdform_page { background: #D1E0F0; padding: 15px; border-radius: 0px; font-family: Segoe UI; border-top: 1px solid #004D8E;}#form12 .wdform_column { border-right: none !important; padding-right: 20px !important; float: left; border-spacing: 2px; border-collapse: separate !important;}#form12 .wdform-field-section-break2 { background: url(/components/com_formmaker/images/01/shadow.png) no-repeat left center; background-size: contain;}#form12 .wdform_section_break2 { margin: 16px 10px 16px 0px; display: inline-block; background: #0559A0 ; /* Old browsers */ background: -moz-linear-gradient(left, #00457F 1%, #0559A0 20%, #0E6AB8 80%, #006CC7 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, right top, color-stop(1%, #00457F ), color-stop(20%, #0559A0 ), color-stop(80%, #0E6AB8 ), color-stop(100%, #006CC7 )); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(left, #00457F 1%, #0559A0 20%, #0E6AB8 80%, #006CC7 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(left, #00457F 1%, #0559A0 20%, #0E6AB8 80%, #006CC7 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(left, #00457F 1%, #0559A0 20%, #0E6AB8 80%, #006CC7 100%); /* IE10+ */background: linear-gradient(to right, #00457F 1%, #0559A0 20%, #0E6AB8 80%, #006CC7 100%); /* W3C */ text-align: left; padding-right: 30px; padding-left: 10px; border-top-left-radius: 0px; border-top-right-radius: 10px; border-bottom-right-radius: 10px; border-bottom-left-radius: 0px; -moz-box-shadow: inset 51px 0px 8px -50px #636363, 4px 0px 7px 0px rgba(0, 0, 0, 0.23); -webkit-box-shadow: inset 51px 0px 8px -50px #636363, 4px 0px 7px 0px rgba(0, 0, 0, 0.23); box-shadow: inset 51px 0px 8px -50px #636363, 4px 0px 7px 0px rgba(0, 0, 0, 0.23);color:#fff;}#form12 .wdform_section_break { margin: 16px 0px;}#form12 .wdform_section { display: table-row;}#form12 select { border-radius: 7px; height: 32px; overflow: hidden; border: 1px solid #ccc; padding-right: 32px; outline: none;}#form12 input[type="text"]{ border-radius: 7px; height: 30px; border: 1px solid #ccc;padding:0 3px !important;}#form12 input[type="password"]{ border-radius: 7px; height: 30px; border: 1px solid #ccc;padding:0 3px !important;}#form12 textarea { border-radius: 7px; height: 30px; border: 1px solid #ccc;padding:0 3px !important;}#form12 input[type="text"]:focus{ border-color: #004D8E; outline: none;box-shadow:none;}#form12 input[type="password"]:focus{ border-color: #004D8E; outline: none;box-shadow:none;}#form12 textarea:focus{ border-color: #004D8E; outline: none;box-shadow:none;}#form12 .input_deactive { color: #999999; font-style: italic;}#form12 .input_active { color: #000000; font-style: normal;}#form12 .am_pm_select { width: 70px; vertical-align: middle;}#form12 .checkbox-div input[type=checkbox] { position : absolute; z-index: -1;}#form12 .checkbox-div { width: 15px; height: 16px; background: #fff; border: 1px solid #ccc; border-radius: 5px; position: relative; display: inline-block;}#form12 .checkbox-div label { cursor: pointer; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); opacity: 0; content: ''; position: absolute; width: 16px; height: 13px; background: url(/components/com_formmaker/images/01/checkbox.png); border-radius: 2px; top: 0px; left: 2px;}#form12 .checkbox-div label:hover { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; filter: alpha(opacity=30); opacity: 0.3;}#form12 .checkbox-div .wdform-ch-rad-label:hover { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; filter: alpha(opacity=30); opacity: 0.3;}#form12 .wdform-ch-rad-label:hover + .checkbox-div label { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; filter: alpha(opacity=30); opacity: 0.3;}#form12 .checkbox-div input[type=checkbox]:checked + label { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter: alpha(opacity=100); opacity: 1;}#form12 .wdform-calendar-button { display:inline-block; background: transparent url(/components/com_formmaker/images/01/date.png) no-repeat left 50%; border: 0px; color: transparent; width: 37px; height: 30px; position: relative; left: -35px; vertical-align: top;}#form12 .wdform-calendar-button:focus { outline:none;}#form12 .radio-div input[type=radio] { position : absolute; z-index: -1;}#form12 .forlabs { float: right; margin-right: 20px;}#form12 .radio-div { width: 15px; height: 16px; background: #fff; border: 1px solid #ccc; border-radius: 5px; position: relative; display: inline-block;}#form12 .radio-div label { cursor: pointer; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); opacity: 0; content: ''; position: absolute; width: 9px; height: 10px; background: #615F60; border-radius: 2px; top: 3px; left: 3px;}#form12 .radio-div label:hover { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; filter: alpha(opacity=30); opacity: 0.3;}#form12 .radio-div .wdform-ch-rad-label:hover { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; filter: alpha(opacity=30); opacity: 0.3;}#form12 .wdform-ch-rad-label:hover + .radio-div label { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; filter: alpha(opacity=30); opacity: 0.3;}#form12 .radio-div input[type=radio]:checked + label { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter: alpha(opacity=100); opacity: 1;}#form12 .if-ie-div-label { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" !important; filter: alpha(opacity=100) !important; opacity: 1 !important;}#form12 .wdform-ch-rad-label { display: inline; margin-right:5px; float: left; color: #000; cursor: pointer}#form12 textarea { padding-top: 5px;}#form12 .wdform-date { display:inline-block; width: 105px}#form12 .wdform_footer { border-top: 1px solid #D8D6D7; padding-top: 5px; margin-top: 15px;}#form12 .page-numbers { vertical-align: middle;}#form12 .time_box { text-align: right; width: 30px; vertical-align: middle}#form12 .mini_label { font-size: 10px; font-family: 'Lucida Grande', Tahoma, Arial, Verdana, sans-serif; color: #000;}#form12 .wdform-label { border: none; color: #000; vertical-align: top; line-height: 17px;}#form12 .wdform_colon { color: #000}#form12 .wdform_separator { font-style: bold; vertical-align: middle; color: #000;}#form12 .wdform_line { color: #000}#form12 .wdform-required { border: none; color: red; vertical-align: top;}#form12 .captcha_img { border-width: 0px; margin: 0px; padding: 0px; cursor: pointer; border-radius: 7px;}#form12 .captcha_refresh { width: 30px; height: 30px; border-width: 0px; margin: 0px; padding: 0px; vertical-align: middle; cursor: pointer; background-image: url(/components/com_formmaker/images/refresh_black.png);}#form12 .captcha_input { height: 20px; border-width: 1px; margin: 0px; padding: 0px; vertical-align: middle;}#form12 .file_upload { border: 0px solid white; border-radius: 0px; margin: 0px; padding: 0px; color: black; background-color: white;}#form12 .page_deactive { color: #0D5492; cursor: pointer; background-color: #7FA6C6; margin: 1px; display: inline-block; height: 20px; text-align: center; vertical-align: bottom; padding-top: 5px; padding: 5px 30px 0px 30px;}#form12 .page_active { color: #fff; cursor: pointer; background-color: #004D8E; margin: 1px; display: inline-block; vertical-align: bottom; height: 25px; text-align: center; padding: 5px 30px 0px 30px;}#form12 .page_percentage_active { padding: 0px; margin: 0px; border-spacing: 0px; height: 25px; line-height: 25px; border-top-left-radius: 17px; font-size: 15px; float: left; text-align: right !important; z-index: 1; position: relative; background: #00559D ; /* Old browsers */ background: -moz-linear-gradient(left, #00559D 0%, #005BA7 67%, #00559D 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, right top, color-stop(0%, #00559D ), color-stop(67%, #005BA7 ), color-stop(100%, #00559D )); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(left, #00559D 0%, #005BA7 67%, #00559D 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(left, #00559D 0%, #005BA7 67%, #00559D 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(left, #00559D 0%, #005BA7 67%, #00559D 100%); /* IE10+ */background: linear-gradient(to right, #00559D 0%, #005BA7 67%, #00559D 100%); vertical-align: middle;}#form12 .page_percentage_deactive { height: 25px; line-height: 25px; background-color: #7FA6C6; text-align: left !important; margin-bottom: 1px; border-top-left-radius: 17px; border-top-right-radius: 17px;}#form12 .page_numbers { font-size: 14px; color: #000;}#form12 .phone_area_code { width: 50px;}#form12 .phone_number { width: 100px;}#form12 button { cursor: pointer;}#form12 .other_input { border-radius: 0px; border-width: 1px; height: 16px; font-size: 12px; padding: 1px; margin: 1px; margin-left: 25px; z-index: 100; position: absolute;}#form12 .wdform_page_navigation { text-align: right !important; margin-bottom: 0px;}#form12 .wdform_page_navigation span:first-child { border-top-left-radius: 17px;}#form12 .wdform_percentage_arrow {display: inline-block;width: 21px;height: 25px;background-color: #0057A0;position: relative;left: -15px;top:-1px;z-index: 0;vertical-align: middle;-moz-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-10deg) skewY(0deg);-webkit-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-25deg) skewY(0deg);-o-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-10deg) skewY(0deg);-ms-transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-10deg) skewY(0deg);transform: scale(1) rotate(0deg) translateX(0px) translateY(0px) skewX(-10deg) skewY(0deg);}#form12 .wdform_percentage_text { margin: 3px -14px 3px 9px; color: #FFFFFF; font-weight: bold;}#form12 .wdform_percentage_title { color: #000000; font-style: italic; margin: 0px 0px 0px 40px; display: inline-block; line-height: 25px; height: 25px; vertical-align: middle;}#form12 .wdform_map { border: 6px solid #fff;}#form12 .wdform_button button { background: #e4e4e4; /* Old browsers */ background: -moz-linear-gradient(top, #e4e4e4 0%, #cccccc 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #e4e4e4), color-stop(100%, #cccccc)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #e4e4e4 0%, #cccccc 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #e4e4e4 0%, #cccccc 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #e4e4e4 0%, #cccccc 100%); /* IE10+ */ background: linear-gradient(to bottom, #e4e4e4 0%, #cccccc 100%); /* W3C */ cursor: pointer; font-size: 17px; border-radius: 7px; min-width: 80px; min-height: 27px; color: #787878; border: 0px; margin: 5px; box-shadow: 0px 0px 2px #c9c9c9; font-family: Segoe UI;}#form12 img { max-width:none; } .mini_label { display: inline; }

BORANG MAKLUMBALAS / FEEDBACK FORM

Bahagian ini menyediakan ruangan kepada orang ramai untuk memberi maklum balas, cadangan atau pandangan terhadap Laman Rasmi Perbadanan Perpustakaan Awam Pulau Pinang dan perkhidmatan. Semua ruangan yang bertanda * adalah wajib diisi. Maklumbalas akan dijawab dalam tempoh 7 hari bekerja. 

This section provides a space for people to provide feedback, suggestions or opinions to the Official Site of Penang Public Library Corporation and service. All fields marked * are mandatory. Feedback will be answered within 7 working days.

Nama / Name:*
Emel / E-Mail:*
Tajuk / Title:*
Maklumbalas / Feedback:*
Captcha:*
JURI_ROOT =''; WDF_GRADING_TEXT ='Your score should be less than'; WDF_INVALID_GRADING = '`grading_label` Total should be less than `grading_total`'; FormCurrency ='$'; FormPaypalTax ='0'; function formOnload12() { if (wdformjQuery.browser.msie && parseInt(wdformjQuery.browser.version, 10) === 8) { wdformjQuery("#form12").find(wdformjQuery("input[type='radio']")).click(function() {wdformjQuery("input[type='radio']+label").removeClass('if-ie-div-label'); wdformjQuery("input[type='radio']:checked+label").addClass('if-ie-div-label')}); wdformjQuery("#form12").find(wdformjQuery("input[type='radio']:checked+label")).addClass('if-ie-div-label'); wdformjQuery("#form12").find(wdformjQuery("input[type='checkbox']")).click(function() {wdformjQuery("input[type='checkbox']+label").removeClass('if-ie-div-label'); wdformjQuery("input[type='checkbox']:checked+label").addClass('if-ie-div-label')}); wdformjQuery("#form12").find(wdformjQuery("input[type='checkbox']:checked+label")).addClass('if-ie-div-label'); } if(wdformjQuery.browser.ie) { wdformjQuery(".wdform-calendar-button").click(function() { var pos = wdformjQuery(this).offset().top; setTimeout(function(){ wdformjQuery(".calendar").each(function (){ if(wdformjQuery(this).css("display") == "block"){ wdformjQuery(this).css("top", parseInt(pos)-wdformjQuery(this).height()+"px"); } }); },300); }); } if(wdformjQuery.browser.msie) { wdformjQuery(".wdform-calendar-button").click(function() { var pos = wdformjQuery(this).offset().top; setTimeout(function(){ wdformjQuery(".calendar").each(function (){ if(wdformjQuery(this).css("display") == "block"){ wdformjQuery(this).css("top", parseInt(pos)-wdformjQuery(this).height()+"px"); } }); },300); }); } wdformjQuery("div[type='type_text'] input, div[type='type_number'] input, div[type='type_phone'] input, div[type='type_name'] input, div[type='type_submitter_mail'] input, div[type='type_paypal_price'] input, div[type='type_textarea'] textarea").focus(function() {delete_value(this)}).blur(function() {return_value(this)}); wdformjQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity").keypress(function(evt) {return check_isnum(evt)}); wdformjQuery("div[type='type_grading'] input").keypress(function() {return check_isnum_or_minus(event)}); wdformjQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function() {set_total_value(12)}); wdformjQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input").change(function() {set_total_value(12)}); wdformjQuery(".wdform-quantity").change(function() {set_total_value(12)}); wdformjQuery("div[type='type_time'] input").blur(function() {add_0(this)}); wdformjQuery('.wdform-element-section').each(function() { if(!wdformjQuery(this).parent()[0].style.width && parseInt(wdformjQuery(this).width())!=0) { if(wdformjQuery(this).css('display')=="table-cell") { if(wdformjQuery(this).parent().attr('type')!="type_captcha") wdformjQuery(this).parent().css('width', parseInt(wdformjQuery(this).width()) + parseInt(wdformjQuery(this).parent().find(wdformjQuery(".wdform-label-section"))[0].style.width)+15); else wdformjQuery(this).parent().css('width', (parseInt(wdformjQuery(this).parent().find(wdformjQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(wdformjQuery(this).parent().find(wdformjQuery(".wdform-label-section"))[0].style.width)+15); } } if(parseInt(wdformjQuery(this)[0].style.width.replace('px', '')) < parseInt(wdformjQuery(this).css('min-width').replace('px', ''))) wdformjQuery(this).css('min-width', parseInt(wdformjQuery(this)[0].style.width.replace('px', ''))-10); }); wdformjQuery('.wdform-label').each(function() { if(parseInt(wdformjQuery(this).height()) >= 2*parseInt(wdformjQuery(this).css('line-height').replace('px', ''))) { wdformjQuery(this).parent().css('max-width',wdformjQuery(this).parent().width()); wdformjQuery(this).parent().css('width',''); } }); (function(wdformjQuery){ wdformjQuery.fn.shuffle = function() { var allElems = this.get(), getRandom = function(max) { return Math.floor(Math.random() * max); }, shuffled = wdformjQuery.map(allElems, function(){ var random = getRandom(allElems.length), randEl = wdformjQuery(allElems[random]).clone(true)[0]; allElems.splice(random, 1); return randEl; }); this.each(function(i){ wdformjQuery(this).replaceWith(wdformjQuery(shuffled[i])); }); return wdformjQuery(shuffled); }; })(wdformjQuery); wdformjQuery("#wd_captcha12").click(function() {captcha_refresh("wd_captcha","12")});wdformjQuery("#_element_refresh12").click(function() {captcha_refresh("wd_captcha","12")});captcha_refresh("wd_captcha", "12");wdformjQuery("").appendTo("#form12") if(window.before_load) { before_load(); } } function formAddToOnload12() { if(formOldFunctionOnLoad12){ formOldFunctionOnLoad12(); } formOnload12(); } function formLoadBody12() { formOldFunctionOnLoad12 = window.onload; window.on-load = formAddToOnload12; } var formOldFunctionOnLoad12 = null; formLoadBody12(); form_view_count12=0; for(i=1; i<=30; i++) { if(document.getElementById('12form_view'+i)) { form_view_count12++; form_view_max12=i; } } if(form_view_count12>1) { for(i=1; i<=form_view_max12; i++) { if(document.getElementById('12form_view'+i)) { first_form_view12=i; break; } } generate_page_nav(first_form_view12, '12', form_view_count12, form_view_max12); } function check_required12(but_type) { if(but_type=='reset') { if(window.before_reset) { before_reset(); } window.location="/index.php/maklumbalas?view=formmaker&id=12"; return; } if(window.before_submit) { before_submit(); } x=wdformjQuery("#form12"); if(x.find(wdformjQuery("div[wdid=11]")).length != 0 && x.find(wdformjQuery("div[wdid=11]")).css("display") != "none") { if(wdformjQuery("#wdform_11_element12").val()=="" || wdformjQuery("#wdform_11_element12").val()=="") { alert("\"Nama / Name:\" field is required."); wdformjQuery("#wdform_11_element12").addClass( "form-error" ); old_bg=x.find(wdformjQuery("div[wdid=11]")).css("background-color"); x.find(wdformjQuery("div[wdid=11]")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); wdformjQuery("#wdform_11_element12").focus(); wdformjQuery("#wdform_11_element12").change(function() { if( wdformjQuery(this).val()!="" ) wdformjQuery(this).removeClass("form-error"); else wdformjQuery(this).addClass("form-error");}); return false; } } if(x.find(wdformjQuery("div[wdid=2]")).length != 0 && x.find(wdformjQuery("div[wdid=2]")).css("display") != "none") { if(wdformjQuery("#wdform_2_element12").val()=="" || wdformjQuery("#wdform_2_element12").val()=="") { alert("\"Emel / E-Mail:\" field is required."); wdformjQuery("#wdform_2_element12").addClass( "form-error" ); old_bg=x.find(wdformjQuery("div[wdid=2]")).css("background-color"); x.find(wdformjQuery("div[wdid=2]")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); wdformjQuery("#wdform_2_element12").focus(); wdformjQuery("#wdform_2_element12").change(function() { if( wdformjQuery(this).val()!="" ) wdformjQuery(this).removeClass("form-error"); else wdformjQuery(this).addClass("form-error");}); return false; } } if(x.find(wdformjQuery("div[wdid=2]")).length != 0 && x.find(wdformjQuery("div[wdid=2]")).css("display") != "none") { if(wdformjQuery("#wdform_2_element12").val()!="" && wdformjQuery("#wdform_2_element12").val().search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1 ) { alert("This is not a valid email address."); old_bg=x.find(wdformjQuery("div[wdid=2]")).css("background-color"); x.find(wdformjQuery("div[wdid=2]")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); wdformjQuery("#wdform_2_element12").focus(); return false; } } if(x.find(wdformjQuery("div[wdid=7]")).length != 0 && x.find(wdformjQuery("div[wdid=7]")).css("display") != "none") { if(wdformjQuery("#wdform_7_element12").val()=="" || wdformjQuery("#wdform_7_element12").val()=="") { alert("\"Tajuk / Title:\" field is required."); wdformjQuery("#wdform_7_element12").addClass( "form-error" ); old_bg=x.find(wdformjQuery("div[wdid=7]")).css("background-color"); x.find(wdformjQuery("div[wdid=7]")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); wdformjQuery("#wdform_7_element12").focus(); wdformjQuery("#wdform_7_element12").change(function() { if( wdformjQuery(this).val()!="" ) wdformjQuery(this).removeClass("form-error"); else wdformjQuery(this).addClass("form-error");}); return false; } } if(x.find(wdformjQuery("div[wdid=8]")).length != 0 && x.find(wdformjQuery("div[wdid=8]")).css("display") != "none") { if(wdformjQuery("#wdform_8_element12").val()=="" || wdformjQuery("#wdform_8_element12").val()=="") { alert("\"Maklumbalas / Feedback:\" field is required."); wdformjQuery("#wdform_8_element12").addClass( "form-error" ); old_bg=x.find(wdformjQuery("div[wdid=8]")).css("background-color"); x.find(wdformjQuery("div[wdid=8]")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); wdformjQuery("#wdform_8_element12").focus(); wdformjQuery("#wdform_8_element12").change(function() { if( wdformjQuery(this).val()!="" ) wdformjQuery(this).removeClass("form-error"); else wdformjQuery(this).addClass("form-error");}); return false; } } if(x.find(wdformjQuery("div[wdid=9]")).length != 0 && x.find(wdformjQuery("div[wdid=9]")).css("display") != "none") { if(wdformjQuery("#wd_captcha_input12").val()=="") { alert("\"Captcha:*\" field is required."); old_bg=x.find(wdformjQuery("div[wdid=9]")).css("background-color"); x.find(wdformjQuery("div[wdid=9]")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); wdformjQuery("#wd_captcha_input12").focus(); return false; } } ; if(a[12]==1) return; var disabled_fields =""; wdformjQuery("div[wdid]").each(function() { if(wdformjQuery(this).css("display")=="none") { disabled_fields += wdformjQuery(this).attr("wdid"); disabled_fields += ","; } if(disabled_fields) wdformjQuery("").appendTo("#form12"); }); a[12]=1; document.getElementById("form"+12).submit(); } function check12(id) { x=wdformjQuery("#12form_view"+id); if(x.find(wdformjQuery("div[wdid=11]")).length != 0 && x.find(wdformjQuery("div[wdid=11]")).css("display") != "none") { if(wdformjQuery("#wdform_11_element12").val()=="" || wdformjQuery("#wdform_11_element12").val()=="") { alert("\"Nama / Name:\" field is required."); wdformjQuery("#wdform_11_element12").addClass( "form-error" ); old_bg=x.find(wdformjQuery("div[wdid=11]")).css("background-color"); x.find(wdformjQuery("div[wdid=11]")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); wdformjQuery("#wdform_11_element12").focus(); wdformjQuery("#wdform_11_element12").change(function() { if( wdformjQuery(this).val()!="" ) wdformjQuery(this).removeClass("form-error"); else wdformjQuery(this).addClass("form-error");}); return false; } } if(x.find(wdformjQuery("div[wdid=2]")).length != 0 && x.find(wdformjQuery("div[wdid=2]")).css("display") != "none") { if(wdformjQuery("#wdform_2_element12").val()=="" || wdformjQuery("#wdform_2_element12").val()=="") { alert("\"Emel / E-Mail:\" field is required."); wdformjQuery("#wdform_2_element12").addClass( "form-error" ); old_bg=x.find(wdformjQuery("div[wdid=2]")).css("background-color"); x.find(wdformjQuery("div[wdid=2]")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); wdformjQuery("#wdform_2_element12").focus(); wdformjQuery("#wdform_2_element12").change(function() { if( wdformjQuery(this).val()!="" ) wdformjQuery(this).removeClass("form-error"); else wdformjQuery(this).addClass("form-error");}); return false; } } if(x.find(wdformjQuery("div[wdid=2]")).length != 0 && x.find(wdformjQuery("div[wdid=2]")).css("display") != "none") { if(wdformjQuery("#wdform_2_element12").val()!="" && wdformjQuery("#wdform_2_element12").val().search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1 ) { alert("This is not a valid email address."); old_bg=x.find(wdformjQuery("div[wdid=2]")).css("background-color"); x.find(wdformjQuery("div[wdid=2]")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); wdformjQuery("#wdform_2_element12").focus(); return false; } } if(x.find(wdformjQuery("div[wdid=7]")).length != 0 && x.find(wdformjQuery("div[wdid=7]")).css("display") != "none") { if(wdformjQuery("#wdform_7_element12").val()=="" || wdformjQuery("#wdform_7_element12").val()=="") { alert("\"Tajuk / Title:\" field is required."); wdformjQuery("#wdform_7_element12").addClass( "form-error" ); old_bg=x.find(wdformjQuery("div[wdid=7]")).css("background-color"); x.find(wdformjQuery("div[wdid=7]")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); wdformjQuery("#wdform_7_element12").focus(); wdformjQuery("#wdform_7_element12").change(function() { if( wdformjQuery(this).val()!="" ) wdformjQuery(this).removeClass("form-error"); else wdformjQuery(this).addClass("form-error");}); return false; } } if(x.find(wdformjQuery("div[wdid=8]")).length != 0 && x.find(wdformjQuery("div[wdid=8]")).css("display") != "none") { if(wdformjQuery("#wdform_8_element12").val()=="" || wdformjQuery("#wdform_8_element12").val()=="") { alert("\"Maklumbalas / Feedback:\" field is required."); wdformjQuery("#wdform_8_element12").addClass( "form-error" ); old_bg=x.find(wdformjQuery("div[wdid=8]")).css("background-color"); x.find(wdformjQuery("div[wdid=8]")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); wdformjQuery("#wdform_8_element12").focus(); wdformjQuery("#wdform_8_element12").change(function() { if( wdformjQuery(this).val()!="" ) wdformjQuery(this).removeClass("form-error"); else wdformjQuery(this).addClass("form-error");}); return false; } } if(x.find(wdformjQuery("div[wdid=9]")).length != 0 && x.find(wdformjQuery("div[wdid=9]")).css("display") != "none") { if(wdformjQuery("#wd_captcha_input12").val()=="") { alert("\"Captcha:*\" field is required."); old_bg=x.find(wdformjQuery("div[wdid=9]")).css("background-color"); x.find(wdformjQuery("div[wdid=9]")).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); wdformjQuery("#wd_captcha_input12").focus(); return false; } } ; return true; } // wdformjQuery('.wdform-element-section select').each(function() { reselect(this,''); })