function preload()
	{
	if (document.images)
		{
		var imgsrc = preload.arguments;
		arr = new Array(imgsrc.length);
		for (var j=0; j<imgsrc.length; j++)
			{
			arr[j] = new Image();
			arr[j].src = imgsrc[j];
			}
		}
	}
function ChangeImg(arg1, arg2)
	{
	if(document.images)
		{
		eval("document.images['" + arg1 + "'].src=('" + arg2 + "')");
		}
	}

function CommonEditWin(URL)
{
    top_  = screen.height/2 - 300;	
    left_ = screen.width/2  - 250;    
    str   = 'left=' + parseInt(left_) + ',top=' + parseInt(top_) + ',width=670,height=520,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=1';
    //alert(str);
    //w = window.open(URL,'CommonEditWin','left=screen.height/2,top=screen.width/2,width=650,height=500,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=1');
    w = window.open(URL,'CommonEditWin', str);
    w.focus();
}

