function getrates(sid, fnt)
{
debugger
var rate=3.6
			if (fnt == null)
			{fnt = '';}
			if(sid==1)
			{
				str='<div class="bodytext' + fnt + '" align="left">';
				str+='(*) 1 KD is equivalant to about '
				str+=rate;
				str+= ' US Dollars';
			}
			else{
				str='<div class="bodytext" align="right">';
				str+='(*) 1 د.ك. يعادل حوالي '
				str+=rate;
				str+= ' دولار أمريكي'
			}
				str+= '</div>';
return(str);
}		
function imgSelect(editbox,path,sid,file)
{
	var loc;
	var strindx;
	try{
	   
		loc=new String("../Admin/imediamanager.aspx?editorname=" + editbox + "&mediapath=" + path + "&sid=" + sid + "&file=" + file);
		// alert(loc)
		strindx=loc.lastIndexOf(".aspx");
		window.open(loc,"preview","WIDTH=525,height=430,top=10,screenY=10,left=250,screenX=357,resizable,scrollbars=yes,toolbar=none",'');
	}
		catch(exception){
		alert("Currently this functionality is not available");
	}
}
function imgUserSelect(editbox,path,sid,file)
{
	var loc;
	var strindx;
	try{
		loc=new String("Admin/imediamanager.aspx?editorname=" + editbox + "&mediapath=" + path + "&sid=" + sid + "&file=" + file);
		strindx=loc.lastIndexOf(".aspx");
		window.open(loc,"preview","WIDTH=525,height=430,top=10,screenY=10,left=250,screenX=357,resizable,scrollbars=yes,toolbar=none",'');
	}
		catch(exception){
		alert("Currently this functionality is not available");
	}
}

