1. <script language="javascript">
function toggle_it (id1,id2) {
$('#'+id2).hide('fast');
$('#'+id1).show('slow');
}
function ventilation (r) {
if(r=='y') {
$('#ventilation').show('slow');
}
if (r=='n') {
$('#ventilation').hide('slow');
}
}
function space (r) {
if(r=='y') {
$('#space').show('slow');
}
if (r=='n') {
$('#space').hide('slow');
}
}
function solar (r) {
if(r=='y') {
$('#solar1').show('slow');
$('#solar2').show('slow');
}
if (r=='n') {
$('#solar1').hide('slow');
$('#solar2').hide('slow');
}
}
function formSend () {
$.post("http://www.evoheat.com.au/process_form", $("#questionnaries-
form").serialize(), function (data) {
scroll(0,0);
var frm = $("#questionnaries-form") ;
clear_form_elements (frm);
$("#message").html('Thank you ! Your request has been posted.');
$("#message").show('slow');
} );
}
function clear_form_elements(ele) {
$(ele).find(':input').each(function() {
switch(this.type) {
case 'password':
case 'select-multiple':
case 'select-one':
case 'text':
case 'textarea':
$(this).val('');
break;
case 'checkbox':
case 'radio':
this.checked = false;
}
});
}