function Trim(value)
{
    value = value.match(/^\s*(\S+(\s+\S+)*)\s*$/);
    return (value == null) ? "" : value[1];
}

function replace2(s, from1, to1) {
	var p,str;
	str=s;
	p = str.indexOf(from1);
	while (p > -1) {
		str=str.substring(0, p) + to1 + str.substring(p+from1.length);
		p = str.indexOf(from1);
	}
	return str;
}

function toggle(id)
{
	el = document.getElementById(id);
	var display = el.style.display ? '' : 'none';
	el.style.display = display;
}
function toggle2(id)
{
	el = document.getElementById(id);
	var display = el.style.display ? 'none' : '';
	el.style.display = 'none';
}
function pencere(id)
{
	var dest = "print.asp?CID="+id;
	detail_window = window.open(dest, "displayWindow", "width=600,height=400,scrollbars=yes,resizable=no,toolbar=no,location=no,menubar=no,status=yes")
}
function pencere5(id)
{
	var dest = "pic_detay.asp?PID="+id;
	detail_window = window.open(dest, "displayWindow", "scrollbars=no,resizable=no,toolbar=no,location=no,menubar=no,status=yes")
	self.name = "anne";
}

