function f_add(author,auth1)
	{
		//author=document.form1.author_v;
		//auth1=document.form1.auth1_v;
	var i=1;
	if(author.value=="")
	{
	alert("Please Select value from the Author box first.");
	}
	else
	{
		var str_main="";
		for(i=0;i<author.length;i++)
			{
				if(author[i].selected==true)
				{					
				flag=0;
					for(j=0;j<auth1.length;j++)
					{
						if(auth1[j].text==author[i].text)
						{flag=1;						}
					}
					if(flag==0)
					{
					
					  var newOpt = new Option(author[i].text, author[i].value);
					  var selLength = auth1.length;
					  auth1.options[selLength] = newOpt;
  					
					}
					
				}
			}
			
	}
		
	}
	function f_add1(author,auth1)
	{
	var i=1;
		var str_main="";
		for(i=0;i<author.length;i++)
			{
									
				flag=0;
					for(j=0;j<auth1.length;j++)
					{
						if(auth1[j].text==author[i].text)
						{flag=1;						}
					}
					if(flag==0)
					{
					
					  var newOpt = new Option(author[i].text, author[i].value);
					  var selLength = auth1.length;
					  auth1.options[selLength] = newOpt;
  					
					}
	}
		
	}
	
	function removed(theSel)
	{
	//theSel=document.form1.add_subject;
  		var selIndex = theSel.selectedIndex;
  		if (selIndex != -1) {
  		  for(i=theSel.length-1; i>=0; i--)
   			 {
    		 	 if(theSel.options[i].selected)
      				{
        				theSel.options[i] = null;
     				 }
   			 }
    if (theSel.length > 0) {
      theSel.selectedIndex = selIndex == 0 ? 0 : selIndex - 1;
    	}
  	}
	}
	function removed1(theSel)
	{
	
  		  for(i=theSel.length-1; i>=0; i--)
   			 {
    		 	
        				theSel.options[i] = null;
   			 }
    if (theSel.length > 0) {
      theSel.selectedIndex = selIndex == 0 ? 0 : selIndex - 1;
    	}
	}
