	function imgSwap(oImg)
{
   var strOver  = "_on"    // image to be used with mouse over
   var strOff = "_off"     // normal image
   var strImg = oImg.src
   if (strImg.indexOf(strOver) != -1) 
      oImg.src = strImg.replace(strOver,strOff)
   else
      oImg.src = strImg.replace(strOff,strOver)
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}


				function onWebBoardOpen() {
			var selectedEffect ='blind';
			var options = {};
			
		jQuery("#loder_board").show(selectedEffect,options,500);
		jQuery("#lond_close").show();
		jQuery("#lond_open").hide();


		}	
		
						function onWebBoardClose() {
			var selectedEffect ='blind';
			var options = {};
			
		jQuery("#loder_board").hide(selectedEffect,options,500);
		jQuery("#lond_close").hide();
		jQuery("#lond_open").show();
						}

				function onAskQ(inputValueComment,inputValueqid,inputValueCreateBy,inputValueCreateByID,inputValuebyemail) {
		jQuery("#load_imgwait").show();

		var TYPE="POST";
		var URL="insert-comment.php";
		var dataSet={ ValueComment: inputValueComment, Valueqid: inputValueqid, ValueCreateBy: inputValueCreateBy, ValueCreateByID: inputValueCreateByID, Valuebyemail: inputValuebyemail };
		jQuery.ajax({type:TYPE,url:URL,data:dataSet,
			success:function(html){
				jQuery("#load_comment").show();
				jQuery("#load_comment").html(html)
				jQuery("#load_imgwait").hide();
			}
		}); 
		}	
		
		function onAskAll(inputValueComment,inputValueCreateBy,inputValueCreateByID,inputValuebyemail) {
		jQuery("#load_imgwait").show();

		var TYPE="POST";
		var URL="all-comment.php";
		var dataSet={ ValueComment: inputValueComment, ValueCreateBy: inputValueCreateBy, ValueCreateByID: inputValueCreateByID, Valuebyemail: inputValuebyemail };
		jQuery.ajax({type:TYPE,url:URL,data:dataSet,
			success:function(html){
				jQuery("#load_comment").show();
				jQuery("#load_comment").html(html)
				jQuery("#load_imgwait").hide();
			}
		}); 
		}	
		
				function onAskDelete(inputValueComment,inputValueCreateBy,inputValueCreateByID,inputValuebyemail,inputValueCommentID) {
		jQuery("#load_imgwait").show();

		var TYPE="POST";
		var URL="delete-comment.php";
		var dataSet={ ValueComment: inputValueComment, ValueCreateBy: inputValueCreateBy, ValueCreateByID: inputValueCreateByID, Valuebyemail: inputValuebyemail , ValueCommentID : inputValueCommentID };
		jQuery.ajax({type:TYPE,url:URL,data:dataSet,
			success:function(html){
				jQuery("#load_comment").show();
				jQuery("#load_comment").html(html)
				jQuery("#load_imgwait").hide();
			}
		}); 
		}	
		
						function onDeleteAQ(inputValueMessage,inputValuedeleteid) {
		jQuery("#load_deletewait").show();

		var TYPE="POST";
		var URL="insert-redelete.php";
		var dataSet={ ValueMessage: inputValueMessage, Valuedeleteid: inputValuedeleteid };
		jQuery.ajax({type:TYPE,url:URL,data:dataSet,
			success:function(html){
				jQuery("#load_deletere").show();
				jQuery("#load_deletere").html(html)
				jQuery("#load_deletewait").hide();
			}
		}); 
		}	
							function onDeleteQ(inputValueMessage,inputValuedeleteid) {
		jQuery("#load_deletewait").show();

		var TYPE="POST";
		var URL="insert-redeleteq.php";
		var dataSet={ ValueMessage: inputValueMessage, Valuedeleteid: inputValuedeleteid };
		jQuery.ajax({type:TYPE,url:URL,data:dataSet,
			success:function(html){
				jQuery("#load_deletere").show();
				jQuery("#load_deletere").html(html)
				jQuery("#load_deletewait").hide();
			}
		}); 
		}		
		
									function onVoteInsert(inputValueVote,inputValueVoteID) {
		jQuery("#load_vote").hide();
		jQuery("#loder_ajax").show();
		
		var TYPE="POST";
		var URL="insert-vote.php";
		var dataSet={ ValueVote: inputValueVote, ValueVoteID: inputValueVoteID };
		jQuery.ajax({type:TYPE,url:URL,data:dataSet,
			success:function(html){
				jQuery("#load_vote").show();
				jQuery("#load_vote").html(html)
				jQuery("#loder_ajax").hide();
			}
		});
		}	
		
		
