// JavaScript Document


function addMore()
{

var mytable=document.getElementById("atable")
for (var i=0; i<1; i++){ //add 3 new rows with content to the end of a table
var newrow=mytable.insertRow(-1) //add new row to end of table

var qty_blank=newrow.insertCell(0)  //insert new cell to row
qty_blank.innerHTML='Qnty:'

var qty=newrow.insertCell(1)  //insert new cell to row
qty.innerHTML='<input name="qty[]" type="text" style="width: 22px" value="" />'

var blank=newrow.insertCell(2)  //insert new cell to row
blank.innerHTML='&nbsp;'

var color_blank=newrow.insertCell(3)  //insert new cell to row
color_blank.innerHTML='Color: '

var color=newrow.insertCell(4)  //insert new cell to row
color.innerHTML='<?=$color_superstr?>'

var blank=newrow.insertCell(5)  //insert new cell to row
blank.innerHTML='&nbsp;'

var size_blank=newrow.insertCell(6)  //insert new cell to row
size_blank.innerHTML='Size: '

var size=newrow.insertCell(7)  //insert new cell to row
size.innerHTML='<?=$size_superstr?>'

if (mytable.rows.length > 1) 
{
	var size=newrow.insertCell(8)  //insert new cell to row
	size.innerHTML='<a href="javascript: delRow();">Delete</a>'
}	

document.getElementById('hid_count').value++;

}
}
//////////////////////category///////////////////
  function postVote(str)
   {
		document.getElementById('DivPostVote').innerHTML='<img src="images/ajax_loader2.gif"/>';
			new Ajax.Updater('DivPostVote', "city.php?state_id="+str, {asynchronous:true, evalScripts:true });
   }
	 
   function postVoteState(str)
   {
	//	document.getElementById('DivPostVoteState').innerHTML='<img src="images/ajax_loader2.gif"/>';
	 // new Ajax.Updater('DivPostVoteState', "city1.php?state_id="+str, {asynchronous:true, evalScripts:true });
	 
	 document.form1.submit();
	 
	 }
	 