window.onload = function(){
    var pic = new Image();
    pic.src = "http://images.mmosite.com/sro/images/db/loading1.gif";
}
function getVal(){
	document.getElementById("results").style.display="block";
	document.getElementById("results").innerHTML = "<img src = 'http://images.mmosite.com/sro/images/db/loading1.gif'>&nbsp;Loading...";
  var para;
  para={
	  weapon:document.getElementById("weapon_1").value,
	  plus:document.getElementById("plus").value,
	  phys:document.getElementById("phys").value,
	  mag:document.getElementById("mag").value,
	  dura:document.getElementById("dura").value,
	  attr:document.getElementById("attr").value,
	  crit:document.getElementById("crit").value,
	  physr:document.getElementById("physr").value,
	  magr:document.getElementById("magr").value};
  for(index in para){
	 

   if(!para[index]){
      para[index]=0;
    }
  }
  $.ajax({
		 url:"/tools/weapon/del.php",
		 data:para,
		 success:function(p_msg){
      document.getElementById("results").style.display="block";
      document.getElementById("results").innerHTML=p_msg;
    }});
}

