You can take the code from the advancedsearch.tpl with fetch(content,search,...) function and place it in your custom tpl. So you don't do the content/advancedsearch action but call the same page with search values in view_parameters.
If your form is in content part of site then you need to disable the view cache in that custom template to make this work.