function GoBack()
{
	history.back();
}

	function JumpTo(targ,selObj,restore)
	{ //v3.0
		if (selObj.selectedIndex == 0) return;
		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    	if (restore) selObj.selectedIndex=0;
	}


var NS4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) < 5);

function addOption(theSel, theText, theValue)
{
  var newOpt = new Option(theText, theValue);
  var selLength = theSel.length;
  theSel.options[selLength] = newOpt;
}

function deleteOption(theSel, theIndex)
{ 
  var selLength = theSel.length;
  if(selLength>0)
  {
    theSel.options[theIndex] = null;
  }
}

function moveOptions(theSelFrom, theSelTo)
{
  
  var selLength = theSelFrom.length;
  var selectedText = new Array();
  var selectedValues = new Array();
  var selectedCount = 0;
  
  var i;
  
  // Find the selected Options in reverse order
  // and delete them from the 'from' Select.
  for(i=selLength-1; i>=0; i--)
  {
    if(theSelFrom.options[i].selected)
    {
      selectedText[selectedCount] = theSelFrom.options[i].text;
      selectedValues[selectedCount] = theSelFrom.options[i].value;
      deleteOption(theSelFrom, i);
      selectedCount++;
    }
  }
  
  // Add the selected text/values in reverse order.
  // This will add the Options to the 'to' Select
  // in the same order as they were in the 'from' Select.
  for(i=selectedCount-1; i>=0; i--)
  {
    addOption(theSelTo, selectedText[i], selectedValues[i]);
  }
  
  if(NS4) history.go(0);
}







	function MoveToRight(combo1, combo2)
	{
		if (combo1.selectedIndex < 0) return;
		
		var newopt,i=0;
		var optext, opval;

		optext = combo1.options[combo1.selectedIndex].text;
		opval = combo1.options[combo1.selectedIndex].value;
		
		if (checkItem(combo2,opval)) return;
				
		if (navigator.appName=="Netscape")
		{
			i = combo2.options.length;
			newopt = new Option(optext, opval);
			combo2.options[i] = newopt;			
			combo1.options[combo1.selectedIndex]=null;
			//history.go(0);
		}
		else
		{
			i = getIndex(combo2,optext);
			newopt = document.createElement("OPTION");
			newopt.text = optext;
			newopt.value = opval;
			combo2.add(newopt,i);
			combo1.remove(combo1.selectedIndex);
		}
	}

	function MoveToLeft(combo1, combo2)
	{
		if (combo2.selectedIndex < 0) return;
		
		var newopt,i=0;
		var optext, opval;

		optext = combo2.options[combo2.selectedIndex].text;
		opval = combo2.options[combo2.selectedIndex].value;
		
		if (checkItem(combo1,opval)) return;

		if (navigator.appName=="Netscape")
		{
			i = combo1.options.length;
			newopt = new Option(optext, opval);
			combo1.options[i] = newopt;			
			combo2.options[combo2.selectedIndex]=null;
			//history.go(0);
		}
		else
		{
			i = getIndex(combo1,optext);
			newopt = document.createElement("OPTION");
			newopt.text = optext;
			newopt.value = opval;
			combo1.add(newopt,i);
			combo2.remove(combo2.selectedIndex);
		}
	}

	function AddOption(opval, optext, combo)
	{
		if (checkItem(combo,opval)) return;
		
		if (navigator.appName=="Netscape")
		{
			i = combo.options.length;
			newopt = new Option(optext, opval);
			combo.options[i] = newopt;			
			//history.go(0);
		}
		else
		{
			i = getIndex(combo,optext);
			newopt = document.createElement("OPTION");
			newopt.text = optext;
			newopt.value = opval;
			combo.add(newopt,i);
		}
	}
	
	function DeleteOption(combo)
	{
		if (combo.selectedIndex < 0) return;
		
		if (navigator.appName=="Netscape")
		{
			combo.options[combo.selectedIndex]=null;
			//history.go(0);
		}
		else
		{
			combo.remove(combo.selectedIndex);
		}
	}

	function getIndex(combo, strItem)
	{
		var i=0;
		
		for (i=0; i<combo.options.length;i++)
			if (strItem > combo.options[i].text)
				i++;
			else
				return i;
				
	}
	
	function checkItem(combo, strVal)
	{
		for (i=0; i<combo.options.length;i++)
			if (strVal == combo.options[i].value)
				return true;
			else
				continue;
				
		return false;
	}
	
	function confirmDelete(str)
	{
		return confirm(str + "... silinecek..!\n\n Silme İşlemine Devam Etmek İstiyor Musunuz?");
	}
	

	function FillCombo(cmb, valList, txtList, n)
	{
		var i;
		var opt;
		
		cmb.options.length = 0;

		for (i = 0; i < n; i++)
		{
			cmb.options[i] = new Option(txtList[i], valList[i]);
		}
		
		if (navigator.appName == "Netscape") {
			//history.go(0)
		}
	}
	

	function setVariables() {
		if (navigator.appName == "Netscape") {
			v	= ".top=";
			dS	= "document.";
			sD	= "";
			y	= "window.pageYOffset";
		}
		else {
			v	= ".pixelTop=";
			dS	= "";
			sD	= ".style";
			y	= "document.body.scrollTop";
		}
	}

	function checkLocation() {
		setVariables();
		object	= "object1";
		yy		= eval(y);
		eval(dS+object+sD+v+yy);
		//setTimeout("checkLocation()",10);
	}
