function openprompt(){
if ( $("#bridionVideo").length > 0 ) {
// do nothing
} else {
						
				var temp = {
					state0: {
						html:'<img src="/Images/spLogo_red_black_tcm879-122195.jpg" align="left"><br/><br/><h1>Welcome to the www.schering-plough.com survey</h1><h2>This is a very brief questionnaire that consists of 4 questions. Please participate in our survey to help us improve our website further.</h2>',									buttons: { Cancel: false, Next: true },
						focus: 1,
						submit:function(v,m,f){ 
							if(!v)
								{$("#bridionVideo").fadeIn();$BTB.trackEvent('survey_done');$.prompt.close();}
							else $.prompt.goToState('state1');//go forward
							return false; 
						}
					},
					state1: {
						html:'<p>1/4 Which of the following best describes the primary purpose of your visit:</p><div class="field"><input type="radio" name="Q1" id="rate_purpose" value="A1" class="radioinput" /><label for="rate_purpose">Product information</label></div><div class="field"><input type="radio" name="Q1" id="rate_purpose" value="A2" class="radioinput" /><label for="rate_purpose">Safety and tolerability</label></div><div class="field"><input type="radio" name="Q1" id="rate_purpose" value="A3" class="radioinput" /><label for="rate_purpose">Dosing information</label></div><div class="field"><input type="radio" name="Q1" id="rate_purpose" value="A4" class="radioinput" /><label for="rate_purpose">Contact info</label></div><div class="field"><input type="radio" name="Q1" id="rate_purpose" value="A5" class="radioinput" /><label for="rate_purpose">Others</label></div>',															buttons: {Next: true },
						focus: 0,
						submit:function(v,m,f){ 
							if(!v)
								$.prompt.close();
							else $.prompt.goToState('state2');//go forward
							return false; 
						}
					},
					state2: {
						html:'<p>2/4 Where you able to complete the purpose of your visit today?</p><div class="field"><input type="radio" name="Q2" id="rate_complete" value="A1" class="radioinput" /><label for="rate_complete">++</label></div><div class="field"><input type="radio" name="Q2" id="rate_complete" value="A2" class="radioinput" /><label for="rate_complete">+</label></div><div class="field"><input type="radio" name="Q2" id="rate_complete" value="A3" class="radioinput" /><label for="rate_complete">+/-</label></div><div class="field"><input type="radio" name="Q2" id="rate_complete" value="A4" class="radioinput" /><label for="rate_complete">-</label></div><div class="field"><input type="radio" name="Q2" id="rate_complete" value="A5" class="radioinput" /><label for="rate_complete">--</label></div>',
						buttons: {Next: 1 },
						focus: 0,
						submit:function(v,m,f){
							if (v==0) 
								$.prompt.close()
							else if(v==1)
								$.prompt.goToState('state3');//go forward
							else if(v=-1)
								$.prompt.goToState('state1');//go back
							return false; 
						}
					},
					state3: {
						html:'<p>3/4 Based on todays visit, how would you rate your site experience overall?</p><div class="field"><input type="radio" name="Q3" id="rate_experience" value="A1" class="radioinput" /><label for="rate_experience">++</label></div><div class="field"><input type="radio" name="Q3" id="rate_experience" value="A2" class="radioinput" /><label for="rate_experience">+</label></div><div class="field"><input type="radio" name="Q3" id="rate_experience" value="A3" class="radioinput" /><label for="rate_experience">+/-</label></div><div class="field"><input type="radio" name="Q3" id="rate_experience" value="A4" class="radioinput" /><label for="rate_experience">-</label></div><div class="field"><input type="radio" name="Q3" id="rate_experience" value="A5" class="radioinput" /><label for="rate_experience">--</label></div>',
						buttons: {Next: 1 },
						focus: 0,
						submit: function(v, m, f){
							if (v == 0) 
								$.prompt.close()
							else 
								if (v == 1) 
									$.prompt.goToState('state4');//go forward
								else 
									if (v = -1) 
										$.prompt.goToState('state2');//go back
							return false;
						}
					},
					state4: {
						html:'<p>4/4 Would you recommend this site to others?</p><div class="field"><input type="radio" name="Q4" id="rate_recommend" value="A1" class="radioinput" /><label for="rate_recommend">Yes, and I already did</label></div><div class="field"><input type="radio" name="Q4" id="rate_recommend" value="A2" class="radioinput" /><label for="rate_recommend">Yes, when applicable</label></div><div class="field"><input type="radio" name="Q4" id="rate_recommend" value="A3" class="radioinput" /><label for="rate_recommend">Maybe</label></div><div class="field"><input type="radio" name="Q4" id="rate_recommend" value="A4" class="radioinput" /><label for="rate_recommend">No, probably not</label></div><div class="field"><input type="radio" name="Q4" id="rate_recommend" value="A5" class="radioinput" /><label for="rate_recommend">No, definitely not</label></div>',	
						buttons: {Finish: 1 },
						focus: 0,
						submit:function(v,m,f){ 
							if(v==0) 
								$.prompt.close()
							else if(v==1)								
								return true; //we're done
							else if(v=-1)
								$.prompt.goToState('state3');//go back
							return false; 
						}
					}
				}
				
				$.prompt(temp,{
					callback: function(v,m,f){
						var virtualpage = "/VoCSurvey/";
						$.each(f,function(i,obj){
							virtualpage += obj + "_";
						});

						virtualpage = virtualpage.substr(0,virtualpage.length-1);
						virtualpage += "&site="+location.hostname;
						var customTracker = _gat._getTracker("UA-9023283-2");
						customTracker._trackPageview(virtualpage);
						$BTB.trackEvent('survey_done'); 
						var thankyou = '<p>Thanks for participating</p>';
						$.prompt(thankyou);
						//$("#bridionVideo").fadeIn();
					}
				});
}

			}