/*** 198 ***/


var scoid=parent.scoid;
var direction = '<P><FONT face=Tahoma size=6>อ่านเรื่องบันทึกของน้องกล้วย แล้วเลือกคำตอบที่ถูกต้อง</FONT> </P>';
var direction_sound = '';
var showanswer = true;
var showanswer_no = 1;
var offline = parent.offline;
var shuffle_question = false;
var score_save = true;
var score = 0;
var testformat= 1;
var thai = parent.thai;
var system_message = parent.system_message;
var random_choice = false;
var random_question = 0;

var tf_label_true = 'True';
var tf_label_false = 'False';

var suspend_data = 0;
if((parent.usescorm) && (showanswer) && (showanswer_no > 0)){
	suspend_data = parent.doLMSGetValue("cmi.suspend_data");

	if(isNaN(suspend_data) || (suspend_data == null) || (suspend_data=='')) suspend_data = 0;
	suspend_data++;

	if(suspend_data){
		/*
		if((!isNaN(suspend_data)) && (suspend_data != null) && (suspend_data != ''))
			showanswer = (showanswer_no <= parseInt(suspend_data))?true:false;
		else
			showanswer = false;
		*/
		showanswer = ((!isNaN(suspend_data)) && (suspend_data != null) && (suspend_data != ''))?((showanswer_no <= parseInt(suspend_data))?true:false):false;
	}
	else
		showanswer = false;
}
else{
	if(showanswer_no > 1) showanswer = false;
}




var question = new Array();
var question_score = new Array();
var choice = new Array();
var question_comment = new Array();


//* Question: 1********************
question[0] = '<FONT face=Tahoma size=6>จากเรื่องที่อ่าน<FONT color=#990000>วันนี้</FONT>เป็นวันที่เท่าใด</FONT>';
question_score[0] = '1';
choice[0] = new Array();

//* Question: 2********************
question[1] = '<FONT face=Tahoma size=6>จากเรื่องทีอ่าน<FONT color=#990000>เมื่อวานนี้</FONT>เป็นวันที่เท่าใด</FONT>';
question_score[1] = '1';
choice[1] = new Array();

//* Question: 3********************
question[2] = '<FONT size=6><FONT face=Tahoma><FONT color=#990000>ปีนี้</FONT>น้องกล้วยมีอายุเท่าไร</FONT></FONT> ';
question_score[2] = '1';
choice[2] = new Array();

//* Question: 4********************
question[3] = '<FONT face=Tahoma size=6>ถ้าวันนี้เป็นวันที่ ๑๕ กุมภาพันธ์ วันเกิดน้องกล้วยคือเมื่อใด</FONT>';
question_score[3] = '1';
choice[3] = new Array();

//* Question: 5********************
question[4] = '<FONT face=Tahoma size=6><FONT color=#990000>เมื่อปีที่แล้ว</FONT>น้องกล้วยมีอายุเท่าไร</FONT>';
question_score[4] = '1';
choice[4] = new Array();

//* Question: 6********************
question[5] = '<FONT face=Tahoma size=6>จากเรื่องที่อ่าน <FONT color=#990000>ปัจจุบัน</FONT>น้องกล้วยเรียนอยู่ชั้นอะไร</FONT>';
question_score[5] = '1';
choice[5] = new Array();

//* Question: 7********************
question[6] = '<FONT face=Tahoma size=6><FONT color=#990000>เมื่อปีที่แล้ว</FONT>น้องกล้วยเรียนอยู่ชั้นอะไร</FONT>';
question_score[6] = '1';
choice[6] = new Array();

//* Question: 8********************
question[7] = '<FONT face=Tahoma><FONT size=6><FONT color=#990000>ปีหน้า</FONT>น้องกล้วยจะมีอายุเท่าไร</FONT></FONT>';
question_score[7] = '1';
choice[7] = new Array();

//* Question: 9********************
question[8] = '<FONT face=Tahoma size=6>จากเรื่องที่อ่านน้องกล้วยปิดเทอมเมื่อใด</FONT>';
question_score[8] = '1';
choice[8] = new Array();

//* Question: 10********************
question[9] = '<FONT face=Tahoma size=6><FONT color=#990000>ปีที่แล้ว</FONT>น้องกล้วยได้ของขวัญเป็นอะไร</FONT>';
question_score[9] = '1';
choice[9] = new Array();

//* Question: 11********************
question[10] = '<FONT face=Tahoma size=6><FONT color=#990000>ปีนี้</FONT>น้องกล้วยได้อะไรเป็นของขวัญ</FONT>';
question_score[10] = '1';
choice[10] = new Array();

//* Question: 12********************
question[11] = '<FONT face=Tahoma size=6><FONT color=#990000>ปีหน้า</FONT>คุณพ่อจะให้อะไรเป็นของขวัญกับน้องกล้วย</FONT>';
question_score[11] = '1';
choice[11] = new Array();

//* Question: 13********************
question[12] = '<FONT face=Tahoma size=6><FONT color=#990000>เดือนนี้</FONT>น้องกล้วยต้องทำอะไร</FONT>';
question_score[12] = '1';
choice[12] = new Array();

//* Question: 14********************
question[13] = '<FONT face=Tahoma size=6>น้องกล้วยได้เรียนกฎจราจรจากโรงเรียนเมื่อใด</FONT>';
question_score[13] = '1';
choice[13] = new Array();

//* Question: 15********************
question[14] = '<FONT face=Tahoma size=6><FONT color=#990000>ปีหน้า</FONT>น้องกล้วยจะเรียนอยู่ชั้นอะไร</FONT>';
question_score[14] = '1';
choice[14] = new Array();
choice[0][0] = new Array();
choice[0][0][0] = '<P><FONT face=Tahoma size=6>๑๓ กุมภาพันธ์ พ.ศ. ๒๕๕๔</FONT></P>';
choice[0][0][1] = '0';

choice[0][1] = new Array();
choice[0][1][0] = '<P><FONT face=Tahoma size=6>๑๔ กุมภาพันธ์ พ.ศ. ๒๕๕๔</FONT></P>';
choice[0][1][1] = '1';

choice[0][2] = new Array();
choice[0][2][0] = '<P><FONT face=Tahoma size=6>๑๕ กุมภาพันธ์ พ.ศ. ๒๕๕๔</FONT></P>';
choice[0][2][1] = '0';

choice[1][0] = new Array();
choice[1][0][0] = '<P><FONT face=Tahoma size=6>๑๓ กุมภาพันธ์ พ.ศ. ๒๕๕๔</FONT></P>';
choice[1][0][1] = '1';

choice[1][1] = new Array();
choice[1][1][0] = '<P><FONT face=Tahoma size=6>๑๔ กุมภาพันธ์ พ.ศ. ๒๕๕๔</FONT></P>';
choice[1][1][1] = '0';

choice[1][2] = new Array();
choice[1][2][0] = '<P><FONT face=Tahoma size=6>๑๕ กุมภาพันธ์ พ.ศ. ๒๕๕๔</FONT></P>';
choice[1][2][1] = '0';

choice[2][0] = new Array();
choice[2][0][0] = '<FONT face=Tahoma size=6>๖ ปี</FONT>';
choice[2][0][1] = '0';

choice[2][1] = new Array();
choice[2][1][0] = '<FONT face=Tahoma size=6>๗ ปี</FONT>';
choice[2][1][1] = '1';

choice[2][2] = new Array();
choice[2][2][0] = '<FONT face=Tahoma size=6>๘ ปี</FONT>';
choice[2][2][1] = '0';

choice[3][0] = new Array();
choice[3][0][0] = '<P><FONT face=Tahoma size=6>เมื่อวานนี้</FONT></P>';
choice[3][0][1] = '1';

choice[3][1] = new Array();
choice[3][1][0] = '<FONT face=Tahoma size=6>วันนี้</FONT>';
choice[3][1][1] = '0';

choice[3][2] = new Array();
choice[3][2][0] = '<FONT face=Tahoma size=6>พรุ่งนี้</FONT>';
choice[3][2][1] = '0';

choice[4][0] = new Array();
choice[4][0][0] = '<FONT face=Tahoma size=6>๖ ปี</FONT>';
choice[4][0][1] = '1';

choice[4][1] = new Array();
choice[4][1][0] = '<FONT face=Tahoma size=6>๗ ปี</FONT>';
choice[4][1][1] = '0';

choice[4][2] = new Array();
choice[4][2][0] = '<FONT face=Tahoma size=6>๘ ปี</FONT>';
choice[4][2][1] = '0';

choice[5][0] = new Array();
choice[5][0][0] = '<P><FONT face=Tahoma size=6>ป. ๑</FONT></P>';
choice[5][0][1] = '0';

choice[5][1] = new Array();
choice[5][1][0] = '<P><FONT face=Tahoma size=6>ป. ๒</FONT></P>';
choice[5][1][1] = '1';

choice[5][2] = new Array();
choice[5][2][0] = '<P><FONT face=Tahoma size=6>ป. ๓</FONT></P>';
choice[5][2][1] = '0';

choice[6][0] = new Array();
choice[6][0][0] = '<FONT face=Tahoma size=6>ป. ๓</FONT>';
choice[6][0][1] = '0';

choice[6][1] = new Array();
choice[6][1][0] = '<FONT face=Tahoma size=6>ป. ๒</FONT>';
choice[6][1][1] = '0';

choice[6][2] = new Array();
choice[6][2][0] = '<FONT face=Tahoma size=6>ป. ๑</FONT>';
choice[6][2][1] = '1';

choice[7][0] = new Array();
choice[7][0][0] = '<P><FONT face=Tahoma size=6>๖ ปี</FONT></P>';
choice[7][0][1] = '0';

choice[7][1] = new Array();
choice[7][1][0] = '<P><FONT face=Tahoma size=6>๗&nbsp;ปี</FONT></P>';
choice[7][1][1] = '0';

choice[7][2] = new Array();
choice[7][2][0] = '<P><FONT face=Tahoma size=6>๘&nbsp;ปี</FONT></P>';
choice[7][2][1] = '1';

choice[8][0] = new Array();
choice[8][0][0] = '<FONT face=Tahoma size=6>เดือนที่แล้ว</FONT>';
choice[8][0][1] = '0';

choice[8][1] = new Array();
choice[8][1][0] = '<FONT face=Tahoma size=6>เดือนนี้</FONT>';
choice[8][1][1] = '0';

choice[8][2] = new Array();
choice[8][2][0] = '<FONT face=Tahoma size=6>เดือนหน้า</FONT> ';
choice[8][2][1] = '1';

choice[9][0] = new Array();
choice[9][0][0] = '<FONT face=Tahoma size=6>รถจักรยาน</FONT>';
choice[9][0][1] = '0';

choice[9][1] = new Array();
choice[9][1][0] = '<FONT face=Tahoma size=6>ตุ๊กตาหมี</FONT>';
choice[9][1][1] = '1';

choice[9][2] = new Array();
choice[9][2][0] = '<P><FONT face=Tahoma size=6>เที่ยวสวนสนุก</FONT></P>';
choice[9][2][1] = '0';

choice[10][0] = new Array();
choice[10][0][0] = '<P><FONT face=Tahoma size=6>เที่ยวสวนสนุก</FONT></P>';
choice[10][0][1] = '0';

choice[10][1] = new Array();
choice[10][1][0] = '<FONT face=Tahoma size=6>ตุ๊กตาหมี</FONT>';
choice[10][1][1] = '0';

choice[10][2] = new Array();
choice[10][2][0] = '<FONT face=Tahoma size=6>รถจักรยาน</FONT>';
choice[10][2][1] = '1';

choice[11][0] = new Array();
choice[11][0][0] = '<P><FONT face=Tahoma size=6>เที่ยวสวนสนุก</FONT></P>';
choice[11][0][1] = '1';

choice[11][1] = new Array();
choice[11][1][0] = '<FONT face=Tahoma size=6>ตุ๊กตาหมี</FONT>';
choice[11][1][1] = '0';

choice[11][2] = new Array();
choice[11][2][0] = '<FONT face=Tahoma size=6>รถจักรยาน</FONT>';
choice[11][2][1] = '0';

choice[12][0] = new Array();
choice[12][0][0] = '<FONT face=Tahoma size=6>อ่านหนังสือสอบ</FONT>';
choice[12][0][1] = '1';

choice[12][1] = new Array();
choice[12][1][0] = '<FONT face=Tahoma size=6>ขี่จักรยาน</FONT>';
choice[12][1][1] = '0';

choice[12][2] = new Array();
choice[12][2][0] = '<P><FONT face=Tahoma size=6>ไปสวนสนุก</FONT></P>';
choice[12][2][1] = '0';

choice[13][0] = new Array();
choice[13][0][0] = '<P><FONT face=Tahoma size=6>ปีที่แล้ว</FONT></P>';
choice[13][0][1] = '0';

choice[13][1] = new Array();
choice[13][1][0] = '<P><FONT face=Tahoma size=6>ปีนี้</FONT></P>';
choice[13][1][1] = '1';

choice[13][2] = new Array();
choice[13][2][0] = '<P><FONT face=Tahoma size=6>ปีหน้า</FONT></P>';
choice[13][2][1] = '0';

choice[14][0] = new Array();
choice[14][0][0] = '<FONT face=Tahoma size=6>ป. ๒</FONT>';
choice[14][0][1] = '0';

choice[14][1] = new Array();
choice[14][1][0] = '<FONT face=Tahoma size=6>ป. ๓</FONT>';
choice[14][1][1] = '1';

choice[14][2] = new Array();
choice[14][2][0] = '<FONT face=Tahoma size=6>ป. ๔</FONT>';
choice[14][2][1] = '0';




var fb_range = [];
var cNo=new Array("๐","๑","๒","๓","๔","๕","๖","๗","๘","๙","๑๐");






function genQuestion(no,a,chkans,ans){
	var txtq = '<table width="100%" border="0" cellspacing="0" cellpadding="4">';
	if(question[a]){
		
		txtq += '<tr bgcolor="#F5F5F5"> ';
		txtq += '<td width="25" align="right" valign=top><strong>';
		txtq += '<font size="6" face="MS Sans Serif, Tahoma, sans-serif">'+cNo[no]+'.</font></strong></td>';

		txtq += '<td valign="top"><strong><font size="3" face="MS Sans Serif, Tahoma, sans-serif">';
		txtq += question[a];
		txtq += '</font></strong></td>';
		txtq += '</tr>';

		var correct = false;
		var txtch = '<table width="100%" border="0" cellspacing="0" cellpadding="2">';
		for(c=0;c<choice[a].length;c++)
		{
			txtch += '<tr> ';
			txtch += '<td width="25" align="center" valign="top">';
			
			var ch_radio = '<input type="radio" name="ch_'+no+'" value="'+c+'"';
			if(chkans){
				if(ans==c){
					ch_radio +=' checked';

					if(choice[a][c][1] == 1){
						score+=parseInt(question_score[a]);
						correct = true;
					}

				}
				else
				{
					ch_radio += ' disabled';
					if(showanswer){
						if(choice[a][c][1] == 1){
							ch_radio = '<img src=asset/arrow.gif';
							choice[a][c][0] = '<font color=#FF0000>'+choice[a][c][0]+'</font>';
						}
					}
				}
			}

			ch_radio += '>';
			
			var answer_icon = '';
			if(chkans){
				answer_icon = '<img src=asset/';
				answer_icon += (correct)?'1':'0';
				answer_icon += '.gif>';
			}
		
			txtch += ch_radio;
			txtch += '</td>';
			txtch += '<td><font size="3" face="MS Sans Serif, Tahoma, sans-serif">';
			txtch += choice[a][c][0];
			txtch += '</font></td>';
			txtch += '</tr>';
		}
		txtch += '</table>';

		txtq += '<tr><td align="center">'+answer_icon+'</td>';
		txtq += '<td valign="top">';
		txtq += txtch;
		txtq += '</td></tr>';
	}

	txtq += '</table><br>';

	return txtq;
}





						function checkAnswer(frm){
							if(checkRadio(frm))
							{

								var el = frm.elements; 
								var sel = '';
								var sel2 = new Array();
								var s = 0;
								for(var i = 0 ; i < el.length ; ++i) { 
									if(el[i].type == "radio") {   
										var radiogroup = el[el[i].name];   
										sel2[s] = el[i].name;
										var itemchecked = false;  
										for(var j = 0 ; j < radiogroup.length ; ++j) {    
											if(radiogroup[j].checked) {	 

												if(s > 0)
												{
													if(sel2[(s-1)] != el[i].name)
													{										
														if(sel == '') sel = radiogroup[j].value; else sel += ':'+radiogroup[j].value;
													}
												}
												else
												{
													if(sel == '') sel = radiogroup[j].value; else sel += ':'+radiogroup[j].value;
												}
												s++;
											}   
										}   
									} 
								} 
							
								if(sel == '')
								{
									alert(system_message['mustdoquiz']);
								}
								else
								{
									var sel3 = sel.split(':');
									var text_ans = '';
									var e = 1;
									var txt_show = '';
									var divtst = document.getElementById("divTest");
									divtst.innerHTML = "";
									document.write('<center><strong><font size=3 face="MS Sans Serif, Tahoma, sans-serif"><U>'+system_message['chkanswer']+'</U>&nbsp;&nbsp; </font></strong></center><p>');

									if(showanswer)
										document.write('<font size=1 face="MS Sans Serif, Tahoma, sans-serif" color=#FF0000>'+system_message['remark']+'</font><br>&nbsp;');

									for(e=0;e<random_question;e++){
										document.write(genQuestion((e+1),e,true,sel3[e]));	
									}

									displayMsg(score,sel3.length);

								}
							}
							else
							{
								alert(system_message['mustdoquiz']);
							}
						}
						
				function checkRadio(frm) { var el = frm.elements; for(var i = 0 ; i < el.length ; ++i) {  if(el[i].type == "radio") {   var radiogroup = el[el[i].name];   var itemchecked = false;   for(var j = 0 ; j < radiogroup.length ; ++j) {    if(radiogroup[j].checked) {	 itemchecked = true;	 break;	}   }   if(!itemchecked) {    return false;   }  } } return true;} 


				


if(random_question <= 0) random_question = question.length;

//function RandomQuestion(){		Temp = new Array();		TempCh = new Array();		var Len = random_question;		var j = Len;		for (var i=0; i<Len; i++){				Temp[i] = question[i];			TempCh[i] = choice[i];		}			for (i=0; i<Len; i++){				Num = Math.floor(j  *  Math.random());				question[i] = Temp[Num];					choice[i] = TempCh[Num];				for (var k=Num; k < j; k++) {						Temp[k] = Temp[k+1];						TempCh[k] = TempCh[k+1];				}				j--;				}		}

function RandomQuestion(){
	var Len = random_question;
	var j = question.length;
	var num = new Array();
	
	for (i=0; i<Len; i++){
		n = Math.floor(j  *  Math.random());
		if(num[n]) 
			i--;
		else
			num[n] = 1;
	}

	var q = new Array();
	var ch = new Array();
	var i = 0;
	for(var id in num){
		q[i] = question[id];
		ch[i] = choice[id];
		i++;
	}

	question = q;
	choice = ch;
}

function RandomSuit(suit){		
	Temp = new Array();		
	TempCh = new Array();		
	var Len = suit.length;		
	var j = Len;		
	
	for (var i=0; i<Len; i++)
	{				
		Temp[i] = suit[i];			
	}			
	
	for (i=0; i<Len; i++)
	{				
		Num = Math.floor(j  *  Math.random());				
		suit[i] = Temp[Num];					
		for (var k=Num; k < j; k++) 
		{						
			Temp[k] = Temp[k+1];						
		}				
		
		j--;				
	}		

	return suit;
}


//if(direction == '') direction = '????????????????';
if(direction == '') direction = system_message['direction'];


document.write('<a name="top"></a>');
document.write('<form name="frmexam" method="post">');				
document.write('<div id="divTest" style="position:absolute;z-index:1; ">');
document.write('<p>'+direction+'</p>');

if(testformat==2){
	document.write('<table width="100%" border="0" cellspacing="0" cellpadding="2">');
	document.write('  <tr bgcolor=#FBFBFB> ');
	document.write('    <td  width=50 align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>'+tf_label_true+'</strong></font></td>');
	document.write('    <td  width=50 align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>'+tf_label_false+'</strong></font></td>');
	document.write('    <td  align="center">&nbsp;</td>');
	document.write('  </tr>');
}

if(shuffle_question) RandomQuestion();

for(i=0;i<random_question;i++){
	if(random_choice) choice[i] = RandomSuit(choice[i]);
	document.write(genQuestion((i+1),i,false,0));
}

document.write('<p align=center><input type="button" name="Submit" value="Check Answer" onclick="checkAnswer(document.frmexam)"></p>&nbsp;<p>&nbsp;');
document.write('</div>');
document.write('</form>');


/*
var fb_range = new Array();
fb_range[0] = new Array();
fb_range[0][0] = 0;
fb_range[0][1] = 100;
fb_range[0][2] = 'aaaaa';
fb_range[0][3] = 'asset/';
fb_range[0][4] = 'aaaaaa.wma';

document.write(codeMediaFeedback('55'));
*/




function Feedback(score){
	var show = '';
	var scr = Math.floor(score);
	if(!isNaN(scr)){
		if(typeof(fb_range) != 'undefined'){

			for(var i=0;i<fb_range.length;i++){
				if((fb_range[i][0] == scr) || (fb_range[i][1] == 1) || ((fb_range[i][0] <= scr) && (fb_range[i][1] >= scr))){

					if(fb_range[i][4] != ''){
						var fb_sound = fb_range[i][3]+fb_range[i][4];
						var fb_sound_holder = sound(fb_sound);
						var fb_layer = drawLayer(fb_sound_holder,'ContentHolderFB',0, 0, 0, 0, 2, 0);
						document.body.innerHTML += fb_layer;
					}

					if(fb_range[i][2] != ''){ 
//						alert(fb_range[i][2]);
						show = fb_range[i][2];
					}

					break;
				}
			}
		}
	}

//	return (show)?true:false;
	return show;
}


function codeMediaFeedback(v){
	var fb_sound = fb_range[v][3]+fb_range[v][4];
	
	var s = '';
	s += '<OBJECT ID="MediaPlayerFB'+v+'" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" ';
	s += 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ';
	s += 'standby="Loading Microsoft? Windows? Media Player components..." ';
	s += 'type="application/x-oleobject" width="1" height="1">';
	s += '<PARAM NAME="FileName" value="'+fb_sound+'">';
	s += '<param name="ShowControls" value="1">';
	s += '<param name="ShowPositionControls" value="0">';
	s += '<param name="ShowAudioControls" value="1">';
	s += '<param name="ShowTracker" value="0">';
	s += '<param name="ShowDisplay" value="0">';
	s += '<param name="ShowStatusBar" value="1">';
	s += '<param name="AutoSize" value="0">';
	s += '<param name="ShowGotoBar" value="0">';
	s += '<param name="ShowCaptioning" value="0">';
	s += '<param name="AutoStart" value="0">';
	s += '<param name="AnimationAtStart" value="0">';
	s += '<param name="TransparentAtStart" value="0">';
	s += '<param name="AllowScan" value="1">';
	s += '<param name="EnableContextMenu" value="1">';
	s +='<param name="Volume" value="100">';
	s += '<param name="ClickToPlay" value="0">';
	s += '<EMBED type="application/x-mplayer2" ';
	s += 'pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" ';
	s += 'src="'+fb_sound+'"	';
	s += 'name="MediaPlayerFB'+v+'"	';
	s += 'width=1	';
	s += 'height=1	';
	s += 'autostart=0 ';
	s +='Volume=100 ';
	s += 'showcontrols=1	showpositioncontrols=0	showstatusbar=0	showcaptioning=0>';
	s += '</EMBED>';
	s += '</OBJECT>';

	return s;
}



function displayMsg(score,total){
	var test_result = "failed";
	var scr = Math.floor((score/total)*100);

	/*
	var msg = '?????????? '+score+' ???\n??????t '+total+' ???';
	msg+='\n???? '+scr+'%';

	if(!thai) msg = 'Your mark is '+scr+' %';
	*/
	
	var msg = system_message['score'];
	msg = parent.replaceAll(msg, '{score}', score);
	msg = parent.replaceAll(msg, '{total_score}', total);
	msg = parent.replaceAll(msg, '{pc_score}', scr);

	if(parent.usescorm){
		if(score_save){
			parent.doLMSSetValue("cmi.core.score.raw",scr);
			parent.doLMSSetValue("cmi.suspend_data",suspend_data);
			parent.doLMSCommit();
		}
	}

	var fb_msg = Feedback(scr);
	if(fb_msg != '') msg = fb_msg + '\n\n'+msg;

	alert(msg);


}
