// JavaScript Document
//By unique milad jahromi
var divnum;
function show(i)
{
	n=divnum;
	document.getElementById('div'+i).style.display='block';
    document.getElementById('btn'+i).style.backgroundImage="url('images/buttonon.jpg')";
	for(j=1;j<=n;j++)
	{
		if(j==i)
		continue;
		document.getElementById('div'+j).style.display='none';
        document.getElementById('btn'+j).style.backgroundImage="url('images/button.jpg')";
		
	}
}
function MYWindow(path,wWidth,wHeight,wName)
{
    leftpos=(screen.availWidth-wWidth) / 2;
    toppos=(screen.availHeight-wHeight) / 2;
    mywindow=window.open('admin/'+path,wName,'location=0,status=0,scrollbars=1,width='+wWidth+',height='+wHeight+',left='+leftpos+',top='+toppos);
}