function initRight(nev) {

	var temp = parent.document.amb_title;
	//alert(temp);
	var name = 'img/cim_'+nev+'.jpg';

	if (nev !='main')
	{
		temp.src = name;
	}
	else 
	{
		temp.src = 'img/bg_leftback.gif';
	}

}


function transferview(nev,typer,x,y) {

var gomb="'Click to close this window'";
var image = "pic/"+typer+".jpg";
var scroll=0;

y=y+59;

p_width = x+30;
p_height = y-25;

if (screen.width<x){
p_width=screen.width-10;
scroll=1;
}

if (screen.height<y){
p_height=screen.height-35;
scroll=1;
}


cond1="width="+(p_width+0)+"";
cond2="height="+(p_height+0)+"";

LeftPosition = (screen.width-p_width)/2;
TopPosition = (screen.height-p_height)/2;


 var s1 ="<TITLE>Image</TITLE>"

 var s2="<BODY onLoad='window.focus()' BGCOLOR='#000000' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>"
 var s3="<table width='100%' height='100%' border='0' align='center'><tr><td height='15' align='center'><font color='#FFFFFF' size='2' face='Tahoma, Verdana, Arial, sans-serif'><strong>"+nev+"</font></td></tr>"
 var s5 ="<tr><td width='100%' align='center' valign='top'><a href='javascript:window.close();'><IMG SRC='"+image+"' ID='pic' NAME='pic' BORDER=0 title="+gomb+"></a></td></tr></table></BODY>"

//alert(String(image).substring(image.length-8,image.length-4));

ImageWindow=window.open("",String(image).substring(image.length-8,image.length-4),"toolbar=no,scrollbars="+scroll+",status=no, menubar=no,"+cond1+","+cond2,'top='+TopPosition+',left='+LeftPosition);
 ImageWindow.document.write(s1+s2+s3+s5);
 ImageWindow.document.close();
}