This forum post was helpful and I resolved my issue.

The issue was due to alternate css I used. Here are the steps that I used to fix:  

Step 1: Reset to default CSS so that template won't include alternate css file:


  Site Actions > Site Settings > Master Page


Alternate CSS URL:
Select option: Use Microsoft SharePoint Foundation default styles
Check :  Reset all subsites to inherit this alternate CSS URL
Hit OK  

Step 2: Create site template
(This template will work fine now)

Step 3: Set back to your alternate CSS from Master Page settings

SharePoint 2010: Application Pages Throwing Error
Is it possible to integrate a javascript into a hyperlink? Or make it into some sort of batch script or whatnot, so when the page has loaded it calls the javascript which is a button on the page?

To explain it further:

We have this page:
http://work.acceptance.XXXX.com/XXXX_Raffle/Lists/Raffle/overview.aspx

The sharepoint page has a survey on it.
To get the "popup" window to show, so you can answer a question in the survey, you need to press a button which calls this script:

javascript:__doPostBack('ctl00$m$g_e999ab40_719f_42fb_bd61_d986f232bdd5$ctl01$ctl00$toolBarTbl$RptControls$ctl00$diidIONewItem','');


So, is it possible to somehow combine the page + the javascript, so all they have to do is press one link or alternatively, a hyperlink which goes to a file on a server which triggers all this, so they instantly get to the page + the javascript automatically pops so they dont have to press the button?

Keep in mind, when I say "hyperlink" I mean the kind of hyperlink you would see in an email. A simple link to a website or a server location.

I'm not very good at everything that has to do with programming and webdesign, but I do have access to the sharepoint, though I'd need serious guiding in how to add anything there other than simple webparts. It's SharePoint Server 2010.

Here is a picture of the button and what happens when you press it.
http://i.stack.imgur.com/gKCG5.jpg
