Event.observe(window,"load",function(){
		var askME = readCookie("askME");

		if(askME == 'true'){
		var test = getVar('test');
		if(test == 1){
		askME = null;
		}
		}


		if(askME == null){
		createCookie("askME",true,365);
		Dialog.info('<div id="survey-popup">\n<div class="content">\n<img src="site-resources/images/survey-popup/header.gif" alt="Advice for Life website survey" height="90" />\n<p class="divider" style="margin-top:0;"><strong>We\'re looking for site visitors to help us improve the Advice for Life website.</strong></p>\n<p>You can participate by answering a few questions as you enter the site (should take no more than 30 seconds), and a few more after you have completed your visit.</p>\n<p><strong>Will you help us out?</strong></p>\n<p class="buttons divider">\n  <input name="button" type="submit" class="survey-button" id="surveyButton" value="I\'ll Help" />\n  &nbsp;&nbsp;<input name="button2" type="submit" class="survey-button" id="surveyButton2" value="No Thanks" />\n  <br /><br />\n  This survey is being conducted by Organik, a market research company<br />\non behalf of Bayer Schering Pharma.<br />\n<a href="http://survey.dev.askme.net/StaticPages/privacy/x6Q3QhYNr5eScH48ig==" target="_blank">Privacy Statement</a><br />\n<br />\nPlease Note: Children under the age of 16 are not eligible to participate in this survey.<br />\n</p>\n</div>\n<div class="footer">\n  <p class="hide">Organik&trade; is a trusted survey partner of Bayer Schering Pharma</p>\n</div>\n</div>\n', {width:572, height:507} );
		Event.observe('surveyButton','click',showSurvey);
		Event.observe('surveyButton2','click',function(){Dialog.closeInfo();});
		}
		});


function showSurvey(){
	var test = getVar('test');
	if(test == 1){
		window.open('http://survey.askme.net/Participants/testSurvey/148','','width=760,height=800,scrollbars=1');
	}else{
		window.open('http://survey.askme.net/Participants/startSurvey/148','','width=760,height=800,scrollbars=1');
	}
	Dialog.closeInfo();
}


